Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37041684
en ru br
ALT Linux repos
S:3.12.0-alt1.1
5.0: 2.26.0-alt1
4.1: 2.22.0-alt1.1.M41.1
4.0: 2.17.90-alt1
3.0: 2.10.1-alt1

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.26

Name: gnome-icon-theme
Version: %ver_major.0
Release: alt1

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.7

Requires: icon-naming-utils >= %icon_naming_utils_ver

# From configure.in

BuildPreReq: intltool >= 0.40.0
BuildPreReq: pkgconfig >= 0.19
BuildPreReq: icon-naming-utils >= %icon_naming_utils_ver
BuildRequires: perl-XML-Parser

%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

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin