File qmmp-skins-old.spec of Package qmmp-skins-old

#
# spec file for package qmmp-skins-old
#
# Copyright (c) 2014 SUSE LINUX 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/
#


Name:           qmmp-skins-old
Version:        0.6
Release:        0
Summary:        Old skins for Qmmp
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            https://software.opensuse.org/package/qmmp-skins-old
Source:         %{name}-%{version}.tar.xz
BuildRequires:  fdupes
Requires:       qmmp
BuildArch:      noarch

%description
qmmp-skins-old is a collection of skins for Qmmp that do not impose
any restriction in terms of usage or redistribution, found all
over the Internet.
It was created specifically for Debian by the previous maintainer of
this package.

%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse})
%package -n audacious-skins-old
Summary:        Old skins for Audacious
Group:          System/GUI/Other
Requires:       audacious
BuildArch:      noarch

%description -n audacious-skins-old
audacious-skins-old is a collection of skins for Audacious that do not impose
any restriction in terms of usage or redistribution, found all
over the Internet.
It was created specifically for Debian by the previous maintainer of
this package.
%endif

%prep
%setup -q

%build
# Nothing to build.

%install
mkdir -p %{buildroot}%{_datadir}/qmmp/skins/ %{buildroot}%{_datadir}/audacious/Skins/
for skin in Absolute-Blue Cherry-Best Cobalt Colder Eclipse FB2 Helix-Marco minEguE Plume SpiffMedia Titanium; do
    cp -a $skin %{buildroot}%{_datadir}/qmmp/skins/$skin
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse})
    cp -a $skin %{buildroot}%{_datadir}/audacious/Skins/$skin
%endif
done
%fdupes %{buildroot}%{_datadir}/qmmp/
%fdupes %{buildroot}%{_datadir}/audacious/

%files
%defattr(-,root,root)
%doc COPYING
%{_datadir}/qmmp/

%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse})
%files -n audacious-skins-old
%defattr(-,root,root)
%doc COPYING
%{_datadir}/audacious/
%endif

%changelog
openSUSE Build Service is sponsored by