File libsidplay1.spec of Package libsidplay1
#
# spec file for package libsidplay1
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define _name libsidplay
Name: libsidplay1
Version: 1.36.59
Release: 0
Summary: A Library for C64 Music Files
License: GPL-2.0-or-later
Group: System/Libraries
URL: https://web.archive.org/web/20061202103201/http://www.geocities.com/SiliconValley/Lakes/5147/sidplay/
Source: %{_name}-%{version}.tar.bz2
Source99: baselibs.conf
Patch0: libsidplay-gcc43.patch
BuildRequires: gcc-c++
BuildRequires: libtool
%description
This package allows you to create packages able to play music from C64
games and demos on your PC.
You can find a comprehensive archive on the WWW at:
http://www.hvsc.c64.org/
%package devel
Summary: A Library for C64 Music Files
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libstdc++-devel
%description devel
This package allows you to create packages able to play music from C64
games and demos on your PC.
You can find a comprehensive archive on the WWW at:
http://www.hvsc.c64.org/
%prep
%autosetup -n %{_name}-%{version}
%build
autoreconf -fvi
export CFLAGS="%{optflags} -Wno-narrowing"
export CXXFLAGS="%{optflags} -Wno-narrowing"
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS DEVELOPER
%{_libdir}/*.so.*
%files devel
%{_includedir}/sidplay
%{_libdir}/*.so
%changelog