[packages/tinyalsa] - updated to 1.1.1 - removed obsolete soname patch - added opt patch (don't override optimization op
qboosh
qboosh at pld-linux.org
Sat Dec 23 12:54:51 CET 2017
commit b6f2dc26d7eaa920e3b8c4a3e42ebd7e6a052c80
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 23 12:56:17 2017 +0100
- updated to 1.1.1
- removed obsolete soname patch
- added opt patch (don't override optimization options with -O2)
- added trigger for libtinyalsa.so.1 file->symlink transition
tinyalsa-opt.patch | 10 ++++++++++
tinyalsa-soname.patch | 12 ------------
tinyalsa.spec | 21 +++++++++++++--------
3 files changed, 23 insertions(+), 20 deletions(-)
---
diff --git a/tinyalsa.spec b/tinyalsa.spec
index 80f6145..70abe6a 100644
--- a/tinyalsa.spec
+++ b/tinyalsa.spec
@@ -1,14 +1,14 @@
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.0.2
+Version: 1.1.1
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/tinyalsa/tinyalsa/releases
-Source0: https://github.com/tinyalsa/tinyalsa/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 174ca31afec04c91eab0a194df7dd0b4
-Patch0: %{name}-soname.patch
+Source0: https://github.com/tinyalsa/tinyalsa/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: ec5c1cc175fcb8c9d3d0adcececf10a9
+Patch0: %{name}-opt.patch
URL: https://github.com/tinyalsa/tinyalsa
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -70,9 +70,9 @@ Programy narzędziowe do biblioteki tinyalsa.
%patch0 -p1
%build
+CFLAGS="%{rpmcflags}" \
%{__make} \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags}" \
CPPFLAGS="%{rpmcppflags}" \
LDFLAGS="%{rpmldflags}"
@@ -90,17 +90,22 @@ 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.1
+%attr(755,root,root) %{_libdir}/libtinyalsa.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtinyalsa.so.1
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtinyalsa.so
%{_includedir}/tinyalsa
-%{_mandir}/man3/tinyalsa-mixer.3*
-%{_mandir}/man3/tinyalsa-pcm.3*
+%{_mandir}/man3/libtinyalsa-mixer.3*
+%{_mandir}/man3/libtinyalsa-pcm.3*
%files static
%defattr(644,root,root,755)
diff --git a/tinyalsa-opt.patch b/tinyalsa-opt.patch
new file mode 100644
index 0000000..326a6e1
--- /dev/null
+++ b/tinyalsa-opt.patch
@@ -0,0 +1,10 @@
+--- 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
+
diff --git a/tinyalsa-soname.patch b/tinyalsa-soname.patch
deleted file mode 100644
index d1094dc..0000000
--- a/tinyalsa-soname.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- tinyalsa-1.0.2/src/Makefile.orig 2016-10-02 20:37:16.000000000 +0200
-+++ tinyalsa-1.0.2/src/Makefile 2016-10-08 10:50:08.565287510 +0200
-@@ -30,7 +30,8 @@
- $(AR) $(ARFLAGS) $@ $^
-
- libtinyalsa.so.1: $(OBJECTS)
-- $(LD) $(LDFLAGS) -shared $^ -o $@
-+ $(LD) $(LDFLAGS) -shared $^ -o $@ -Wl,-soname=$@
-+ ln -sf $@ libtinyalsa.so
-
- .PHONY: clean
- clean:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tinyalsa.git/commitdiff/b6f2dc26d7eaa920e3b8c4a3e42ebd7e6a052c80
More information about the pld-cvs-commit
mailing list