File qmmp-skins-winamp.spec of Package qmmp-skins-winamp
#
# spec file for package qmmp-skins-winamp
#
# 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/
#
%define _name winamp-classified
Name: qmmp-skins-winamp
Version: 5.51
Release: 0
Summary: Winamp classified skins for Qmmp
License: CC-BY-4.0
Group: Productivity/Multimedia/Sound/Players
Url: https://software.opensuse.org/package/qmmp-skins-winamp
Source: %{_name}-%{version}.tar.xz
Requires: qmmp
BuildArch: noarch
%description
This package provides Winamp classified skins for Qmmp.
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse})
%package -n audacious-skins-winamp
Summary: Winamp classified skins for Audacious
Group: System/GUI/Other
Requires: audacious
BuildArch: noarch
%description -n audacious-skins-winamp
This package provides Winamp classified skins for Audacious.
%endif
%prep
%setup -q -n %{_name}-%{version}
%build
# Nothing to build.
%install -n %{_name}-%{version}
mkdir -p %{buildroot}%{_datadir}/qmmp/skins/ %{buildroot}%{_datadir}/audacious/Skins/
for skin in Winamp2 Winamp3 Winamp5 Bento; 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
%files
%defattr(-,root,root)
%doc COPYING README
%{_datadir}/qmmp/
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse})
%files -n audacious-skins-winamp
%defattr(-,root,root)
%doc COPYING README
%{_datadir}/audacious/
%endif
%changelog