%define skindir %(rpm -ql xine | grep '/skins$' || echo %{_datadir}/xine/skins)
Summary: Collection of skins for the Xine multimedia player
Name: xine-skins
Version: 1.11
Release: 1
# For each skin's own license, see their individual "skinconfig" file
# Nearly all are GPLv2, only a couple only mention GPL without a version
License: GPLv2 and GPL+
Group: Applications/Multimedia
URL: http://xinehq.de/
Source0: http://www.xinehq.de/index.php/force-download/skins/Galaxy.tar.gz
Source1: http://www.xinehq.de/index.php/force-download/skins/CelomaChrome.tar.gz
Source2: http://www.xinehq.de/index.php/force-download/skins/CelomaGold.tar.gz
#Source3: http://www.xinehq.de/index.php/force-download/skins/CelomaMdk.tar.gz - No license info
Source4: http://www.xinehq.de/index.php/force-download/skins/Centori.tar.gz
Source5: http://www.xinehq.de/index.php/force-download/skins/Crystal.tar.gz
#Source6: http://www.xinehq.de/index.php/force-download/skins/Keramic.tar.gz - No license info
#Source7: http://www.xinehq.de/index.php/force-download/skins/cloudy.tar.gz - Unfinished
#Source8: http://www.xinehq.de/index.php/force-download/skins/concept.tar.gz - Unfinished
#Source9: http://www.xinehq.de/index.php/force-download/skins/lcd.tar.gz - No license info
#Source10: http://www.xinehq.de/index.php/force-download/skins/mp2k.tar.gz - No license info
#Source11: http://www.xinehq.de/index.php/force-download/skins/pitt.tar.gz - Unfinished
#Source12: http://www.xinehq.de/index.php/force-download/skins/xinetic.tar.gz - Already in the main package
Source13: http://www.xinehq.de/index.php/force-download/skins/mplayer.tar.gz
#Source14: http://www.xinehq.de/index.php/force-download/skins/KeramicRH8.tar.gz - No license info
Source15: http://www.xinehq.de/index.php/force-download/skins/OMS_legacy.tar.gz
#Source16: http://www.xinehq.de/index.php/force-download/skins/Sunset.tar.gz - No license info
#Source17: http://www.xinehq.de/index.php/force-download/skins/blackslim2.tar.gz - No license info
#Source18: http://www.xinehq.de/index.php/force-download/skins/caramel.tar.gz - No license info
Source19: http://www.xinehq.de/index.php/force-download/skins/Bambino-Blue.tar.gz
Source20: http://www.xinehq.de/index.php/force-download/skins/Antares.tar.gz
Source21: http://www.xinehq.de/index.php/force-download/skins/Polaris.tar.gz
#Source22: http://www.xinehq.de/index.php/force-download/skins/Bluton.tar.gz - No license info
#Source23: http://www.xinehq.de/index.php/force-download/skins/xinium.tar.gz - No license info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: xine >= 0.99.0
BuildRequires: xine >= 0.99.0
BuildArch: noarch
%description
This package contains a collection of additional skins for the original
Xine video player frontend. Install this package if you wish to change the
appeareance of Xine.
%prep
%setup -q -c %{name}-%{version} -a1 -a2 -a4 -a5 -a13 -a15 -a19 -a20 -a21
# Clean up the uncompressed skins
%{__rm} -rf */CVS */.xvpics */*.sh */fonts.dir */*.pcf.gz */*.svg */*.xcf
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{skindir}
%{__cp} -a * %{buildroot}%{skindir}/
%clean
%{__rm} -rf %{buildroot}
%files
# Force all files and directory modes to sane values
%defattr(0644,root,root,0755)
%{skindir}/*
%changelog
* Mon Aug 27 2007 Matthias Saou 1.11-1
- Disable all skins which don't contain information about their license, and
only keep the ones that do, which happen to all be GPLv2 or GPL+.
- Further clean up the installed skins.
* Wed Aug 31 2005 Matthias Saou 1.10-2
- Default %%skindir to %%{_datadir}/xine/skins instead of nothing if the nested
rpm query to get the skindir from the xine package fails.
* Sun Apr 17 2005 Matthias Saou 1.10-1
- Added xinium skin.
* Thu Jan 13 2005 Matthias Saou 1.9-1
- Added Polaris and Bluton skins.
* Tue Jul 6 2004 Matthias Saou 1.8-1
- Added blackslim2, caramel, Bambino-Blue (no more, it's big) and Antarès.
* Mon Jan 5 2004 Matthias Saou 1.7-1
- Removed cloudy (included in xine-ui).
- Added Sunset.
* Fri Nov 7 2003 Matthias Saou 1.6-2
- Rebuild for Fedora Core 1.
* Tue Aug 26 2003 Matthias Saou
- Updated all skins.
- Disabled pitt and concept : wrong versions.
- New correct skindir detection thanks to Dam's.
* Mon Mar 31 2003 Matthias Saou
- Rebuilt for Red Hat Linux 9.
* Fri Mar 21 2003 Matthias Saou
- Updated many skins to 0.9.19 versions from Jérôme.
* Thu Feb 27 2003 Matthias Saou
- Added Keramic_rh8 and oms_legacy, thanks Jérôme!
* Thu Jan 30 2003 Matthias Saou
- Updated all skins to theur current versions (4.0 mostly).
- Added Keramic and Crystal.
- Removed the "concept" skin as it's *still* not near being finished :-(
* Wed Nov 6 2002 Matthias Saou
- Updated concept4, CelomaChrome251002 and CelomaGold271002.
- Added Centori_alpha and Keramic_alpha.
* Sun Aug 4 2002 Matthias Saou
- Updated the concept skin to version 3 and rebuilt for Red Hat Linux 8.0.
* Sun Aug 4 2002 Matthias Saou
- Removed cloudy and xinetic that got back into the main xine.
* Wed Jul 31 2002 Matthias Saou
- Initial RPM release.