ALT Linux repos
Group :: Graphical desktop/GNOME
RPM: gnome-icon-theme
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define gtk_api_ver 2.0
%undefine _configure_target
%define ver_major 2.22
Name: gnome-icon-theme
Version: %ver_major.0
Release: alt1.1.M41.1
Summary: A set of icons for GNOME 2 desktop
License: LGPL
Group: Graphical desktop/GNOME
Url: http://www.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
BuildArch: noarch
Source0: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch0: gnome-icon-theme-2.18.0-alt-index.theme.patch
Provides: icon-theme-gnome = %version-%release
%define icon_naming_utils_ver 0.8.1
Requires: icon-naming-utils >= %icon_naming_utils_ver
# From configure.in
BuildPreReq: intltool >= 0.35.0
BuildPreReq: pkgconfig >= 0.19
BuildPreReq: gnome-common >= 2.8.0
BuildPreReq: icon-naming-utils >= %icon_naming_utils_ver
BuildRequires: intltool perl-XML-Parser
BuildRequires: rpm-build-compat >= 0.95
%description
The standard set of icons for Gnome.
%prep
%setup -q
#%patch0 -p1
%build
%configure
%make_build
%install
%make_install DESTDIR=%buildroot install
%__ln_s gnome %buildroot%_iconsdir/default.gnome
%find_lang %name
%define conf_string gtk-icon-theme-name = \"gnome\"
%define gtkrc %_sysconfdir/gtk-%{gtk_api_ver}/gtkrc
%post
if [ -f %gtkrc ]; then
grep -qs '^%conf_string$' %gtkrc ||
echo '%conf_string' >> %gtkrc
fi
%postun
[ $1 = 0 ] || exit 0
if [ -f %gtkrc ]; then
subst '/%conf_string/d' %gtkrc
fi ||:
%triggerin -- libgtk+2-common
if [ -f %gtkrc ]; then
grep -qs '^%conf_string$' %gtkrc ||
echo '%conf_string' >> %gtkrc
fi
%triggerpostun -- libgtk+2-common < 2.12.11-alt1
[ $2 != 0 ] || exit 0
if [ -f %gtkrc ]; then
grep -qs '^%conf_string$' %gtkrc ||
echo '%conf_string' >> %gtkrc
fi
%files -f %name.lang
%dir %_iconsdir/gnome
%_iconsdir/gnome/*
%_iconsdir/default.gnome
%_datadir/pkgconfig/*
%doc ChangeLog NEWS
%changelog
…
Full changelog you can see here
%undefine _configure_target
%define ver_major 2.22
Name: gnome-icon-theme
Version: %ver_major.0
Release: alt1.1.M41.1
Summary: A set of icons for GNOME 2 desktop
License: LGPL
Group: Graphical desktop/GNOME
Url: http://www.gnome.org
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
BuildArch: noarch
Source0: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch0: gnome-icon-theme-2.18.0-alt-index.theme.patch
Provides: icon-theme-gnome = %version-%release
%define icon_naming_utils_ver 0.8.1
Requires: icon-naming-utils >= %icon_naming_utils_ver
# From configure.in
BuildPreReq: intltool >= 0.35.0
BuildPreReq: pkgconfig >= 0.19
BuildPreReq: gnome-common >= 2.8.0
BuildPreReq: icon-naming-utils >= %icon_naming_utils_ver
BuildRequires: intltool perl-XML-Parser
BuildRequires: rpm-build-compat >= 0.95
%description
The standard set of icons for Gnome.
%prep
%setup -q
#%patch0 -p1
%build
%configure
%make_build
%install
%make_install DESTDIR=%buildroot install
%__ln_s gnome %buildroot%_iconsdir/default.gnome
%find_lang %name
%define conf_string gtk-icon-theme-name = \"gnome\"
%define gtkrc %_sysconfdir/gtk-%{gtk_api_ver}/gtkrc
%post
if [ -f %gtkrc ]; then
grep -qs '^%conf_string$' %gtkrc ||
echo '%conf_string' >> %gtkrc
fi
%postun
[ $1 = 0 ] || exit 0
if [ -f %gtkrc ]; then
subst '/%conf_string/d' %gtkrc
fi ||:
%triggerin -- libgtk+2-common
if [ -f %gtkrc ]; then
grep -qs '^%conf_string$' %gtkrc ||
echo '%conf_string' >> %gtkrc
fi
%triggerpostun -- libgtk+2-common < 2.12.11-alt1
[ $2 != 0 ] || exit 0
if [ -f %gtkrc ]; then
grep -qs '^%conf_string$' %gtkrc ||
echo '%conf_string' >> %gtkrc
fi
%files -f %name.lang
%dir %_iconsdir/gnome
%_iconsdir/gnome/*
%_iconsdir/default.gnome
%_datadir/pkgconfig/*
%doc ChangeLog NEWS
%changelog
…
Full changelog you can see here