[packages/libdts] - updated to 0.0.7 - added link patch (fix libdts.a symlink) - drop .la file

qboosh qboosh at pld-linux.org
Mon May 18 22:14:07 CEST 2020


commit 5c582cd136d259ea82c9046ca0b70e6f32d2427f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 18 22:14:40 2020 +0200

    - updated to 0.0.7
    - added link patch (fix libdts.a symlink)
    - drop .la file

 libdts-link.patch | 11 +++++++++++
 libdts.spec       | 10 +++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/libdts.spec b/libdts.spec
index 627751c..848c337 100644
--- a/libdts.spec
+++ b/libdts.spec
@@ -6,13 +6,14 @@
 Summary:	DTS Coherent Acoustics streams decoder
 Summary(pl.UTF-8):	Dekoder strumieni DTS Coherent Acoustics
 Name:		libdts
-Version:	0.0.6
+Version:	0.0.7
 Release:	1
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://download.videolan.org/pub/videolan/libdca/%{version}/libdca-%{version}.tar.bz2
-# Source0-md5:	eb65623c2b9b4417aada8013760b090a
+# Source0-md5:	68916db60e3017d92841f77908518a11
 Patch0:		%{name}-opt.patch
+Patch1:		%{name}-link.patch
 URL:		http://www.videolan.org/developers/libdca.html
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake >= 1.5
@@ -77,6 +78,7 @@ Narzędzia dekodera strumieni DTS Coherent Acoustics.
 %prep
 %setup -q -n libdca-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -94,6 +96,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdca.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -110,7 +115,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc doc/libdca.txt
 %attr(755,root,root) %{_libdir}/libdca.so
-%{_libdir}/libdca.la
 %{_includedir}/dca.h
 %{_includedir}/dts.h
 %{_pkgconfigdir}/libdca.pc
diff --git a/libdts-link.patch b/libdts-link.patch
new file mode 100644
index 0000000..ea31738
--- /dev/null
+++ b/libdts-link.patch
@@ -0,0 +1,11 @@
+--- libdca-0.0.7/libdca/Makefile.am.orig	2020-03-26 15:08:37.000000000 +0100
++++ libdca-0.0.7/libdca/Makefile.am	2020-05-18 22:12:27.885718393 +0200
+@@ -12,7 +12,7 @@
+ pkgconfig_DATA = libdca.pc libdts.pc
+ 
+ install-exec-hook:
+-	$(LN_S)f "$(DESTDIR)$(libdir)/libdca.a" "$(DESTDIR)$(libdir)/libdts.a"
++	$(LN_S)f "libdca.a" "$(DESTDIR)$(libdir)/libdts.a"
+ 
+ uninstall-hook:
+ 	unlink "$(DESTDIR)$(libdir)/libdts.a"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdts.git/commitdiff/5c582cd136d259ea82c9046ca0b70e6f32d2427f



More information about the pld-cvs-commit mailing list