[packages/tinyalsa] - updated to 2.0.0 (new soname)
qboosh
qboosh at pld-linux.org
Mon Mar 24 18:53:15 CET 2025
commit 235b5bb348d21d10c8c69cb096f7d7a6163b3a7a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 24 18:33:11 2025 +0100
- updated to 2.0.0 (new soname)
tinyalsa-opt.patch | 10 ----------
tinyalsa.spec | 43 +++++++++++++++++++++++++------------------
2 files changed, 25 insertions(+), 28 deletions(-)
---
diff --git a/tinyalsa.spec b/tinyalsa.spec
index 70abe6a..fbf58eb 100644
--- a/tinyalsa.spec
+++ b/tinyalsa.spec
@@ -1,15 +1,18 @@
Summary: Small library to interface with ALSA in the Linux kernel
Summary(pl.UTF-8): Mała biblioteka do współpracy z podsystemem ALSA w jądrze Linuksa
Name: tinyalsa
-Version: 1.1.1
+Version: 2.0.0
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/tinyalsa/tinyalsa/releases
-Source0: https://github.com/tinyalsa/tinyalsa/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: ec5c1cc175fcb8c9d3d0adcececf10a9
-Patch0: %{name}-opt.patch
+Source0: https://github.com/tinyalsa/tinyalsa/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 65ed885a68d37fa49f693792c6c5d877
URL: https://github.com/tinyalsa/tinyalsa
+BuildRequires: doxygen
+BuildRequires: meson >= 0.48.0
+BuildRequires: ninja >= 1.5
+BuildRequires: rpmbuild(macros) >= 2.042
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -67,22 +70,29 @@ Programy narzędziowe do biblioteki tinyalsa.
%prep
%setup -q
-%patch0 -p1
%build
-CFLAGS="%{rpmcflags}" \
-%{__make} \
- CC="%{__cc}" \
- CPPFLAGS="%{rpmcppflags}" \
- LDFLAGS="%{rpmldflags}"
+%meson \
+ -Ddocs=enabled \
+ -Dexamples=disabled \
+ -Dutils=enabled
+
+%meson_build
+
+%{__make} -C doxygen
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%meson_install
+
+# missing in meson (present in cmake)
+cp -p include/tinyalsa/{attributes,plugin}.h $RPM_BUILD_ROOT%{_includedir}/tinyalsa
+
+# man3 pages, not handled in meson
+%{__make} -C doxygen install \
DESTDIR=$RPM_BUILD_ROOT \
- PREFIX=%{_prefix} \
- LIBDIR=%{_libdir}
+ PREFIX=%{_prefix}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -90,20 +100,17 @@ rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%triggerpostun -- tinyalsa < 1.1.0
-rm -f %{_libdir}/libtinyalsa.so.1
-/sbin/ldconfig
-
%files
%defattr(644,root,root,755)
%doc NOTICE README.md
%attr(755,root,root) %{_libdir}/libtinyalsa.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtinyalsa.so.1
+%attr(755,root,root) %ghost %{_libdir}/libtinyalsa.so.2
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtinyalsa.so
%{_includedir}/tinyalsa
+%{_pkgconfigdir}/tinyalsa.pc
%{_mandir}/man3/libtinyalsa-mixer.3*
%{_mandir}/man3/libtinyalsa-pcm.3*
diff --git a/tinyalsa-opt.patch b/tinyalsa-opt.patch
deleted file mode 100644
index 326a6e1..0000000
--- a/tinyalsa-opt.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- tinyalsa-1.1.1/utils/Makefile.orig 2017-05-24 06:23:57.000000000 +0200
-+++ tinyalsa-1.1.1/utils/Makefile 2017-12-23 12:34:34.937476795 +0100
-@@ -9,7 +9,6 @@
- CFLAGS += -Wall -Wextra -Werror -Wfatal-errors
- CFLAGS += -I ../include
- CFLAGS += -L ../src
--CFLAGS += -O2
-
- VPATH = ../src:../include/tinyalsa
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tinyalsa.git/commitdiff/235b5bb348d21d10c8c69cb096f7d7a6163b3a7a
More information about the pld-cvs-commit
mailing list