File gtk2-metatheme-sonar.spec of Package gtk2-metatheme-sonar
#
# spec file for package gtk2-metatheme-sonar (Version 11.2.9)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gtk2-metatheme-sonar
Version: 11.2.9
Release: 1.<RELEASE2>
%define _icon_version 11.2.2
Group: System/GUI/GNOME
License: GPL v2 or later
Summary: GTK+ and Metacity Sonar Theme
Source0: metatheme-Sonar-%{version}.tar.bz2
Source1: icon-theme-sonar-%{_icon_version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: icon-naming-utils
BuildRequires: pkg-config
Enhances: gtk2
Requires: gtk2 gtk2-engines gtk2-engine-murrine
Suggests: sonar-icon-theme
%description
GTK+ and Metacity theme created for openSUSE 11.2.
%package -n sonar-icon-theme
Version: %{_icon_version}
Release: 1.<RELEASE2>
License: GPL v2 or later
Summary: Sonar Icon Theme
Group: System/GUI/GNOME
Requires: gnome-icon-theme hicolor-icon-theme
Recommends: gtk2-metatheme-sonar
# Needed for old not-in-factory package
Provides: icon-theme-sonar = 11.2.0
Obsoletes: icon-theme-sonar < 11.2.0
%description -n sonar-icon-theme
Sonar icon theme based on GNOME Colors, created for openSUSE 11.2.
%prep
%setup -q -a1 -n Sonar
%build
pushd icon-theme-sonar-%{_icon_version}
%configure
%__make %{?jobs:-j%jobs}
popd
%install
mkdir -p %{buildroot}%{_datadir}/themes/Sonar
cp -a gtk-2.0 metacity-1 index.theme %{buildroot}%{_datadir}/themes/Sonar
# install icons
pushd icon-theme-sonar-%{_icon_version}
%makeinstall
popd
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS
%{_datadir}/themes/Sonar
%files -n sonar-icon-theme
%defattr (644, root, root, 755)
%doc icon-theme-sonar-%{_icon_version}/AUTHORS icon-theme-sonar-%{_icon_version}/COPYING icon-theme-sonar-%{_icon_version}/NEWS icon-theme-sonar-%{_icon_version}/README
%{_datadir}/icons/Sonar
%changelog