SHA256
1
0
forked from pool/lilv

Accepting request 72854 from home:plater

Update .pc files

OBS-URL: https://build.opensuse.org/request/show/72854
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lilv?expand=0&rev=2
This commit is contained in:
Dave Plater 2011-06-07 09:12:26 +00:00 committed by Git OBS Bridge
parent 543995b499
commit 62c6d03fa8
2 changed files with 17 additions and 2 deletions

11
lilv-0.4.2-pc.patch Normal file
View File

@ -0,0 +1,11 @@
Index: lilv.pc.in
===================================================================
--- lilv.pc.in.orig 2011-06-06 22:57:35.000000000 +0200
+++ lilv.pc.in 2011-06-06 23:00:04.880949663 +0200
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: Lilv
Version: @LILV_VERSION@
Description: Simple C library for hosting LV2 plugins
-Libs: -L${libdir} -l@LIB_LILV@ -ldl
+Libs: -L${libdir} -l@LIB_LILV@ -ldl -lserd -lsord
Cflags: -I${includedir}/lilv

View File

@ -31,6 +31,7 @@ Source3: lv2_shaded_blue.svg
Patch0: lilv-0.4.2-lserd.patch Patch0: lilv-0.4.2-lserd.patch
Patch1: lilv-0.4.2-serdlib.patch Patch1: lilv-0.4.2-serdlib.patch
Patch2: lilv-0.4.2-sordlib.patch Patch2: lilv-0.4.2-sordlib.patch
Patch3: lilv-0.4.2-pc.patch
#Icon: lv2_shaded_blue.svg #Icon: lv2_shaded_blue.svg
BuildRequires: python-base glib2-devel BuildRequires: python-base glib2-devel
BuildRequires: doxygen graphviz fdupes BuildRequires: doxygen graphviz fdupes
@ -95,6 +96,7 @@ chmod --verbose 0644 %{S:3}
%patch0 %patch0
%patch1 %patch1
%patch2 %patch2
%patch3
# Create serd .pc file with macros for the build # Create serd .pc file with macros for the build
echo "prefix=%{buildir}/serd-%{version}">serd.pc echo "prefix=%{buildir}/serd-%{version}">serd.pc
@ -118,7 +120,7 @@ echo "">>sord.pc
echo "Name: Sord">>sord.pc echo "Name: Sord">>sord.pc
echo "Version: %{version}">>sord.pc echo "Version: %{version}">>sord.pc
echo "Description: A lightweight C library for storing RDF statements in memory.">>sord.pc echo "Description: A lightweight C library for storing RDF statements in memory.">>sord.pc
echo "Libs: -L\${libdir} -lsord">>sord.pc echo "Libs: -L%{buildir}/serd-%{version}/build -lserd -L\${libdir} -lsord">>sord.pc
echo "Cflags: -I\${includedir}">>sord.pc echo "Cflags: -I\${includedir}">>sord.pc
echo "">>sord.pc echo "">>sord.pc
export PKG_CONFIG_PATH=${PWD} export PKG_CONFIG_PATH=${PWD}
@ -151,6 +153,7 @@ fi
if test $? != 0; then if test $? != 0; then
exit 1 exit 1
fi fi
/sbin/ldconfig -vn build/
} }
pushd serd-%{version} pushd serd-%{version}
@ -171,6 +174,7 @@ pushd sord-%{version}
popd popd
./waf install --destdir=%{buildroot} ./waf install --destdir=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';' find %{buildroot} -name '*.la' -exec rm -f {} ';'
chmod -c 0755 %{buildroot}%{_libdir}/*.so.%{version}
documents="AUTHORS ChangeLog COPYING README" documents="AUTHORS ChangeLog COPYING README"
for i in ${documents}; do for i in ${documents}; do