libsidplay2/libsidplay2.spec

108 lines
3.4 KiB
RPMSpec

Name: libsidplay2
Version: 2.1.1
Release: 2mamba
Summary: A Commodore 64 music player and SID chip emulator library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://sidplay2.sourceforge.net/
Source: http://downloads.sourceforge.net/project/sidplay2/sidplay2/sidplay-libs-%{version}/sidplay-libs-%{version}.tar.gz
Patch0: %{name}-2.1.1-gcc-4.0.patch
Patch1: %{name}-2.1.1-pkgconfig.patch
Patch2: libsidplay2-2.1.1-m4-tests.patch
Patch3: libsidplay2-2.1.1-operator.patch
Patch4: libsidplay2-2.1.1-includes.patch
Patch5: libsidplay2-2.1.1-gcc-6.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: pkg-config
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This library provides the Sound Interface Device (SID) chip emulator engine that is used by music player programs like SIDPLAY. With it you can play musics from Commodore 64 (or compatible) programs.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version}
%description devel
This library provides the Sound Interface Device (SID) chip emulator engine that is used by music player programs like SIDPLAY. With it you can play musics from Commodore 64 (or compatible) programs.
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q -n sidplay-libs-%{version}
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," \
unix/config.sub libsidplay/unix/config.sub builders/hardsid-builder/unix/config.sub \
builders/resid-builder/unix/config.sub libsidutils/unix/config.sub resid/config.sub
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%configure CPPFLAGS="-fpermissive"
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libsidplay2.so.*
%{_libdir}/libsidutils.so.*
%doc libsidplay/AUTHORS libsidplay/COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/sidplay
%{_includedir}/sidplay/*.h
%dir %{_includedir}/sidplay/builders
%{_includedir}/sidplay/builders/*.h
%dir %{_includedir}/sidplay/utils
%{_includedir}/sidplay/utils/*.h
%{_libdir}/libsidplay2.a
%{_libdir}/libsidplay2.la
%{_libdir}/libsidplay2.so
%{_libdir}/libsidutils.a
%{_libdir}/libsidutils.la
%{_libdir}/libsidutils.so
%dir %{_libdir}/sidplay/builders
%{_libdir}/sidplay/builders/libhardsid-builder.a
%{_libdir}/sidplay/builders/libhardsid-builder.la
%{_libdir}/sidplay/builders/libresid-builder.a
%{_libdir}/sidplay/builders/libresid-builder.la
%{_libdir}/pkgconfig/libsidplay2.pc
%{_libdir}/pkgconfig/libsidutils.pc
%doc libsidplay/README libsidplay/TODO
%changelog
* Wed Jan 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.1-2mamba
- rebuilt with debug package and aarch64 build fix
* Sat Jul 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.1-1mamba
- update to 2.1.1
* Sun Oct 19 2008 gil <puntogil@libero.it> 1.36.59-2mamba
- rebuild
- fix: source; url; packager,
* Tue Jun 14 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.36.59-1qilnx
- package created by autospec