1 |
Summary: GNOME default icons |
2 |
Name: gnome-icon-theme |
3 |
Version: 3.1.90 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv2+ |
6 |
Group: Graphical desktop/GNOME |
7 |
URL: http://www.gnome.org/ |
8 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz |
9 |
BuildRequires: intltool |
10 |
BuildRequires: hicolor-icon-theme |
11 |
BuildRequires: icon-naming-utils >= 0.8.7 |
12 |
BuildArch: noarch |
13 |
Requires: hicolor-icon-theme |
14 |
Requires(post): gtk+2.0 >= 2.6.0 |
15 |
Requires(postun):gtk+2.0 >= 2.6.0 |
16 |
|
17 |
%description |
18 |
GNOME default icons |
19 |
|
20 |
%prep |
21 |
%setup -q |
22 |
|
23 |
%build |
24 |
%configure2_5x --enable-icon-mapping |
25 |
%make |
26 |
|
27 |
%install |
28 |
rm -rf $RPM_BUILD_ROOT |
29 |
|
30 |
%makeinstall_std |
31 |
touch %buildroot%{_datadir}/icons/gnome/icon-theme.cache |
32 |
|
33 |
# automatic gtk icon cache update on rpm installs/removals |
34 |
# (see http://wiki.mandriva.com/en/Rpm_filetriggers) |
35 |
install -d %buildroot%{_var}/lib/rpm/filetriggers |
36 |
cat > %buildroot%{_var}/lib/rpm/filetriggers/gtk-icon-cache-gnome.filter << EOF |
37 |
^./usr/share/icons/gnome/ |
38 |
EOF |
39 |
cat > %buildroot%{_var}/lib/rpm/filetriggers/gtk-icon-cache-gnome.script << EOF |
40 |
#!/bin/sh |
41 |
if [ -x /usr/bin/gtk-update-icon-cache ]; then |
42 |
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/gnome |
43 |
fi |
44 |
EOF |
45 |
chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/gtk-icon-cache-gnome.script |
46 |
|
47 |
|
48 |
%clean |
49 |
rm -rf $RPM_BUILD_ROOT |
50 |
|
51 |
%post |
52 |
%update_icon_cache gnome |
53 |
|
54 |
%postun |
55 |
%clean_icon_cache gnome |
56 |
|
57 |
%files |
58 |
%defattr(-,root,root,-) |
59 |
%doc README TODO |
60 |
%dir %{_datadir}/icons/gnome |
61 |
%{_datadir}/icons/gnome/*x* |
62 |
%_datadir/pkgconfig/%name.pc |
63 |
%ghost %{_datadir}/icons/gnome/icon-theme.cache |
64 |
%{_var}/lib/rpm/filetriggers/gtk-icon-cache-gnome.* |