[packages/libresidfp] - new

qboosh qboosh at pld-linux.org
Thu Oct 29 05:59:28 CET 2026


commit 3018ad8c0167aabd7a8b4490c0a3f9aff15fbb52
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 29 05:59:56 2026 +0100

    - new

 libresidfp.spec | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 125 insertions(+)
---
diff --git a/libresidfp.spec b/libresidfp.spec
new file mode 100644
index 0000000..9004bf0
--- /dev/null
+++ b/libresidfp.spec
@@ -0,0 +1,125 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+%bcond_without	static_libs	# static libraries
+#
+Summary:	Cycle exact SID emulation library
+Summary(pl.UTF-8):	Biblioteka emulacji SID z dokładnością do cykli
+Name:		libresidfp
+Version:	1.2.3
+Release:	1
+License:	GPL v2+
+Group:		Libraries
+Source0:	https://downloads.sourceforge.net/sidplay-residfp/%{name}-%{version}.tar.gz
+# Source0-md5:	945eb2f621cf8f8f7054656799360242
+URL:		https://github.com/libsidplayfp/libresidfp
+%if %{with apidocs}
+BuildRequires:	doxygen
+BuildRequires:	graphviz
+%endif
+# C++11 obligatory, 14/17/20/23 optional
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	rpm-build >= 4.6
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project is meant to replicate the SID as faithfully as possible
+while keeping good performance for realtime use. It is not intended to
+expose the chip internal state or adding fancy effects. Both the 6581
+and the 8580 models are emulated.
+
+%description -l pl.UTF-8
+Projekt ma na celu odtworzenie układu SID najwierniej, jak to możliwe,
+zachowując dobrą wydajność do zastosowań czasu rzeczywistego. Celem
+nie jest udostępnienie wewnętrznego stanu układu czy dodawanie
+fantazyjnych efektów. Emulowane są modele 6581 i 8580.
+
+%package devel
+Summary:	Header files for reSIDfp library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki reSIDfp
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel%{?_isa} >= 6:4.7
+
+%description devel
+Header files for reSIDfp library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki reSIDfp.
+
+%package static
+Summary:	Static reSIDfp library
+Summary(pl.UTF-8):	Statyczna biblioteka reSIDfp
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static reSIDfp library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka reSIDfp.
+
+%package apidocs
+Summary:	API documentation for reSIDfp library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki reSIDfp
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for reSIDfp library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki reSIDfp.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--disable-silent-rules \
+	%{!?with_static_libs:--disable-static} \
+	--with-simd=runtime
+%{__make}
+
+%if %{with apidocs}
+%{__make} doc
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkgconfig
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libresidfp.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS.md README.md
+%{_libdir}/libresidfp.so.*.*.*
+%ghost %{_libdir}/libresidfp.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libresidfp.so
+%{_includedir}/residfp
+%{_pkgconfigdir}/libresidfp.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libresidfp.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/html/*.{css,html,js,png}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libresidfp.git/commitdiff/3018ad8c0167aabd7a8b4490c0a3f9aff15fbb52



More information about the pld-cvs-commit mailing list