libsidplayfp/libsidplayfp.spec
Takashi Iwai 85bdb4ace9 Accepting request 953834 from home:dirkmueller:Factory
- update to 2.3.1:
  * VIC II: check badline enabled condition on raster Y increment. Fixes CPU/shxy/shx-test
  * Disable digiboost for residfp when not required (issue #37)
  * residfp: fixed some PVS-Studio warnings. (issues #20 #21 #23 #28)
  * residfp: share dac tables between voices, saves a few Kb and some initialization time (issues #34 #26)
  * CIA: rework interrupt implementation based on Denise emu code, fixes CIA/dd0dtest/dd0dtest (issue #29)
  * c64: return pseudo random numbers when reading from the I/O Area as the VIC fetches are not emulated.
	 Fixes C64/openio/gauntlet test
  * VIC-II: fix lightpen X coordinate calculation. Makes VICII/split-tests/lightpen/lightpen test pass
  * songlengthdb: fix possible corrupted data (issue #32)
  * VIC-II: fix NTSC badline timing and improve cycle skipping
  * CIA: minor refactoring
  * Fixed a few minor PVS-Studio flagged issues 
  * reSIDfp: added NEON (by Christopher Snowhill) and SSE2 version of convolution function
    the configure option has been changed to --with-simd=<sse2/mmx/neon/none>
  * Exposed last values written to the SID registers. Based on patch by Stian Skjelstad
  * API additions:
    - Splitted ROM functions
    - Added CIA 6526 4485 model setting, mostly for testing
    - Added function for loading database from unicode path on Windows
    - Added function for loading tunes using a custom loader callback
- enable SIMD on aarch64/x86_64

OBS-URL: https://build.opensuse.org/request/show/953834
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsidplayfp?expand=0&rev=10
2022-02-13 09:26:14 +00:00

113 lines
3.2 KiB
RPMSpec

#
# spec file for package libsidplayfp
#
# Copyright (c) 2022 SUSE LLC
#
# 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 soname 6
%define stilview_soname 0
Name: libsidplayfp
Version: 2.3.1
Release: 0
Summary: A library to play Commodore 64 music
License: GPL-2.0-or-later
Group: System/Libraries
URL: https://sourceforge.net/projects/sidplay-residfp/
Source0: https://sourceforge.net/projects/sidplay-residfp/files/libsidplayfp/2.3/libsidplayfp-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libgcrypt-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libftdi1)
%description
A library to play Commodore 64 music based on libsidplay2.
%package -n libsidplayfp%{soname}
Summary: A library to play Commodore 64 music
Group: System/Libraries
%description -n libsidplayfp%{soname}
A library to play Commodore 64 music based on libsidplay2.
%package devel
Summary: Development files for libsidplayfp
Group: Development/Libraries/C and C++
Requires: libsidplayfp%{soname} = %{version}
%description devel
This package contains headers and libraries required to build applications that
use libsidplayfp.
%package -n libstilview%{stilview_soname}
Summary: A library to play Commodore 64 music
Group: System/Libraries
%description -n libstilview%{stilview_soname}
A library to play Commodore 64 music based on libsidplay2.
%package -n libstilview-devel
Summary: Development files for libstilview
Group: Development/Libraries/C and C++
Requires: libstilview%{stilview_soname} = %{version}
%description -n libstilview-devel
This package contains headers and libraries required to build applications that
use libstilview.
%prep
%setup -q
%build
%ifarch x86_64
EXTRA="--with-simd=sse2"
%endif
%ifarch aarch64
EXTRA="--with-simd=neon"
%endif
%configure --disable-static $EXTRA
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libsidplayfp%{soname} -p /sbin/ldconfig
%postun -n libsidplayfp%{soname} -p /sbin/ldconfig
%post -n libstilview%{stilview_soname} -p /sbin/ldconfig
%postun -n libstilview%{stilview_soname} -p /sbin/ldconfig
%files -n libsidplayfp%{soname}
%license COPYING
%{_libdir}/libsidplayfp.so.%{soname}*
%files -n libstilview%{stilview_soname}
%license COPYING
%{_libdir}/libstilview.so.%{stilview_soname}*
%files devel
%doc AUTHORS NEWS README TODO
%{_libdir}/libsidplayfp.so
%{_includedir}/sidplayfp/
%{_libdir}/pkgconfig/libsidplayfp.pc
%files -n libstilview-devel
%doc AUTHORS NEWS README TODO
%{_libdir}/libstilview.so
%{_includedir}/stilview/
%{_libdir}/pkgconfig/libstilview.pc
%changelog