diff --git a/lilv-0.4.2-pc.patch b/lilv-0.4.2-pc.patch new file mode 100644 index 0000000..4d658f7 --- /dev/null +++ b/lilv-0.4.2-pc.patch @@ -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 diff --git a/lilv.spec b/lilv.spec index d028607..e5afa08 100644 --- a/lilv.spec +++ b/lilv.spec @@ -31,6 +31,7 @@ Source3: lv2_shaded_blue.svg Patch0: lilv-0.4.2-lserd.patch Patch1: lilv-0.4.2-serdlib.patch Patch2: lilv-0.4.2-sordlib.patch +Patch3: lilv-0.4.2-pc.patch #Icon: lv2_shaded_blue.svg BuildRequires: python-base glib2-devel BuildRequires: doxygen graphviz fdupes @@ -95,6 +96,7 @@ chmod --verbose 0644 %{S:3} %patch0 %patch1 %patch2 +%patch3 # Create serd .pc file with macros for the build echo "prefix=%{buildir}/serd-%{version}">serd.pc @@ -118,7 +120,7 @@ echo "">>sord.pc echo "Name: Sord">>sord.pc echo "Version: %{version}">>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 "">>sord.pc export PKG_CONFIG_PATH=${PWD} @@ -151,6 +153,7 @@ fi if test $? != 0; then exit 1 fi +/sbin/ldconfig -vn build/ } pushd serd-%{version} @@ -171,10 +174,11 @@ pushd sord-%{version} popd ./waf install --destdir=%{buildroot} find %{buildroot} -name '*.la' -exec rm -f {} ';' +chmod -c 0755 %{buildroot}%{_libdir}/*.so.%{version} documents="AUTHORS ChangeLog COPYING README" for i in ${documents}; do - cp $i %{buildroot}%{_docdir}/%{name}/ + cp $i %{buildroot}%{_docdir}/%{name}/ cp serd-%{version}/$i %{buildroot}%{_docdir}/serd/ cp sord-%{version}/$i %{buildroot}%{_docdir}/sord/ done