gcolor2/gcolor2.spec
2020-08-28 11:21:22 +08:00

56 lines
1.4 KiB
RPMSpec

Name: gcolor2
Version: 0.4
Release: 17%{?dist}
Summary: A simple color selector for GTK+2
License: GPLv2
URL: http://gcolor2.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
# Patch extracted from
# http://patch-tracker.debian.org/patch/nondebian/dl/gcolor2/0.4-2.1
Patch0: %{name}-0.4-missing-includes.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=716100
# bugs.debian.org/cgi-bin/bugreport.cgi?bug=634606
Patch1: %{name}-0.4-ftbfs.patch
BuildRequires: gcc
BuildRequires: gtk2-devel perl(XML::Parser) desktop-file-utils
%description
gcolor2 is a simple color selector that was originally based on gcolor,
ported to use GTK+2, and now has a completely new UI.
%prep
%setup -q
%patch0 -p1 -b .missing
%patch1 -p1 -b .ftbfs
# make sure path to icon is correct
sed -i 's!/usr/share!%{_datadir}!' %{SOURCE1}
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALL="install -p"
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}
%files
%doc AUTHORS ChangeLog COPYING
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}/
%{_datadir}/applications/%{name}.desktop
%changelog
* Thu Jan 31 2019 iSoft <isoft@isoft-linux.com> - 0.4-17
- Rebuilt by iSoft for iSoft