]>
Commit | Line | Data |
---|---|---|
d9ec69a2 ZU |
1 | # TODO: |
2 | # - check x86_64 arch, and when needed, please apply this patch: | |
3 | # http://repos.archlinux.org/wsvn/community/gcolor2/trunk/gcolor2-0.4-amd64.patch | |
4 | Summary: gcolor2 is a simple color selector | |
5 | Name: gcolor2 | |
6 | Version: 0.4 | |
24035256 | 7 | Release: 2 |
d9ec69a2 ZU |
8 | License: GPL v2 |
9 | Group: X11/Applications/Graphics | |
10 | Source0: http://dl.sourceforge.net/project/gcolor2/gcolor2/0.4/%{name}-%{version}.tar.bz2 | |
11 | # Source0-md5: 223a126b8a87234d1552be4be4140789 | |
12 | Source1: %{name}.desktop | |
24035256 | 13 | Patch0: %{name}-missing-includes.patch |
d9ec69a2 | 14 | URL: http://gcolor2.sourceforge.net/ |
c97eb02e | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
d9ec69a2 ZU |
17 | BuildRequires: cairo-devel |
18 | BuildRequires: freetype-devel | |
70c5ae5c | 19 | BuildRequires: gettext-tools |
c97eb02e | 20 | BuildRequires: gtk+2-devel |
21 | BuildRequires: intltool | |
d9ec69a2 | 22 | BuildRequires: libpng-devel |
c97eb02e | 23 | BuildRequires: libtool |
d9ec69a2 | 24 | BuildRequires: pango-devel |
c97eb02e | 25 | BuildRequires: pkgconfig |
d9ec69a2 ZU |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | gcolor2 is a simple color selector that was originally based on | |
30 | gcolor, ported to use GTK+2, and now has a completely new UI. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
24035256 | 34 | %patch0 -p1 |
d9ec69a2 ZU |
35 | |
36 | %build | |
37 | %{__intltoolize} | |
38 | %{__libtoolize} | |
39 | %{__aclocal} | |
40 | %{__autoheader} | |
41 | %{__autoconf} | |
42 | %{__automake} | |
43 | %configure | |
24035256 | 44 | |
d9ec69a2 ZU |
45 | %{__make} |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS ChangeLog | |
62 | %attr(755,root,root) %{_bindir}/%{name} | |
63 | %{_pixmapsdir}/%{name} | |
64 | %{_desktopdir}/%{name}.desktop |