[libresample] Fix pkgconfig --libs and --cflags (#550885).

Michael Schwendt mschwendt at fedoraproject.org
Mon Apr 11 18:00:47 UTC 2011


commit 7601e5e36210b362a1a4b7f8c0dc2a1fd1b8cc3c
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Mon Apr 11 20:00:46 2011 +0200

    Fix pkgconfig --libs and --cflags (#550885).

 libresample-0.1.3-shlib-cmake-pkgconfig.patch |   11 +++++++++++
 libresample.spec                              |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/libresample-0.1.3-shlib-cmake-pkgconfig.patch b/libresample-0.1.3-shlib-cmake-pkgconfig.patch
new file mode 100644
index 0000000..dd09555
--- /dev/null
+++ b/libresample-0.1.3-shlib-cmake-pkgconfig.patch
@@ -0,0 +1,11 @@
+diff -Nur libresample-0.1.3-orig/libresample.pc.in libresample-0.1.3/libresample.pc.in
+--- libresample-0.1.3-orig/libresample.pc.in	2011-04-11 19:55:24.906645789 +0200
++++ libresample-0.1.3/libresample.pc.in	2011-04-11 19:54:45.018036947 +0200
+@@ -3,5 +3,5 @@
+ Name: libresample
+ Description: A real-time library for audio sampling rate conversion
+ Version: 0.1.3
+-Cflags: ${CMAKE_C_FLAGS}
+-Libs: ${CMAKE_SHARED_LINKER_FLAGS} -lm
++Cflags:
++Libs: ${CMAKE_SHARED_LINKER_FLAGS} -lresample -lm
diff --git a/libresample.spec b/libresample.spec
index 4e1c1ed..3732bea 100644
--- a/libresample.spec
+++ b/libresample.spec
@@ -1,12 +1,13 @@
 Summary: A real-time library for audio sampling rate conversion
 Name: libresample
 Version: 0.1.3
-Release: 13%{?dist}
+Release: 14%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://ccrma-www.stanford.edu/~jos/resample/Free_Resampling_Software.html
 Source0: http://ccrma.stanford.edu/~jos/gz/libresample-%{version}.tgz
 Patch0: libresample-0.1.3-shlib-cmake.patch
+Patch1: libresample-0.1.3-shlib-cmake-pkgconfig.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: cmake >= 2.4
 BuildRequires: doxygen
@@ -48,6 +49,7 @@ Development files for libresample.
 %prep
 %setup0 -q
 %patch0 -p1
+%patch1 -p1 -b .pkgconfig
 
 %build
 %cmake .
@@ -82,6 +84,9 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/libresample.pc
 
 %changelog
+* Mon Apr 11 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 0.1.3-14
+- Fix pkgconfig --libs and --cflags (#550885).
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.3-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list