File gtk2-metatheme-equinox.spec of Package gtk2-metatheme-equinox

#
# spec file for package gtk2-metatheme-equinox
#
# Copyright (c) 2011 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/
#


%define _version 1.30
# Unfortunately, the tarballs are not properly versioned. The real
# version has to be found on the website...

Name:           gtk2-metatheme-equinox
Version:        1.30.2
Release:        2
License:        GPLv2+
Summary:        Equinox Metathemes for GTK+
Url:            http://gnome-look.org/content/show.php/Equinox+GTK+Engine?content=121881
Group:          System/GUI/GNOME
Source:         http://gnome-look.org/CONTENT/content-files/121881-equinox-%{_version}.tar.bz2
# PATCH-FIX-UPSTREAM equinox-no-return-value.patch
Patch0:         equinox-no-return-value.patch
BuildRequires:  fdupes
BuildRequires:  pkgconfig(gtk+-2.0)
Requires:       gtk2-engine-equinox
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides a set of elegant GTK+ themes that use the Equinox
engine.

%package -n gtk2-engine-equinox
License:        GPLv2+
Summary:        Equinox GTK+ Theme Engine
Group:          System/GUI/GNOME
Recommends:     gtk2-metatheme-equinox

%description -n gtk2-engine-equinox
Equinox is a theme engine for GTK+. It is a heavily modified derivative
of the Aurora engine (version 1.40).

%prep
%setup -q -c %{name}-%{_version}
tar xzf equinox-gtk-engine.tar.gz
pushd equinox-%{_version}
%patch0 -p0
for file in AUTHORS ChangeLog COPYING NEWS README; do
  chmod -x $file
done
popd
mkdir themes
pushd themes
tar xzf ../equinox-themes.tar.gz
popd

%build
pushd equinox-%{_version}
%configure --enable-animation
make %{?_smp_mflags}
popd

%install
pushd equinox-%{_version}
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
popd
pushd themes
install -d %{buildroot}%{_datadir}/themes
for file in Equinox "Equinox Classic" "Equinox Classic Glass" "Equinox Evolution" "Equinox Evolution Light" "Equinox Evolution Rounded" "Equinox Evolution Squared" "Equinox Glass" "Equinox Light" "Equinox Light Glass" "Equinox Wide"; do
  cp -a "$file" "%{buildroot}%{_datadir}/themes/"
done
popd
%fdupes -s %{buildroot}%{_datadir}/themes/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%doc themes/userChrome.css
# We use wildcards because of spaces in filenames
%doc themes/Equinox*Evolution.crx
%{_datadir}/themes/*

%files -n gtk2-engine-equinox
%defattr(-,root,root)
%doc equinox-%{_version}/AUTHORS equinox-%{_version}/ChangeLog equinox-%{_version}/COPYING equinox-%{_version}/NEWS equinox-%{_version}/README
%{_libdir}/gtk-2.*/2.*.*/engines/libequinox.so

%changelog
openSUSE Build Service is sponsored by