diff --git a/corosync.spec b/corosync.spec index 9adcd38..20dfa57 100644 --- a/corosync.spec +++ b/corosync.spec @@ -3,11 +3,12 @@ Name: corosync Summary: The Corosync Cluster Engine and Application Programming Interfaces Version: 0.95 -Release: 1%{?alphatag:.%{alphatag}}%{?dist} +Release: 2%{?alphatag:.%{alphatag}}%{?dist} License: BSD Group: System Environment/Base URL: http://www.openais.org Source0: http://developer.osdl.org/dev/openais/downloads/corosync-%{version}/corosync-%{version}.tar.gz +Patch0: fix-pkgconfig.diff # Runtime bits Requires: corosynclib = %{version}-%{release} @@ -30,6 +31,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %prep %setup -q -n corosync-%{version} +%patch0 -p1 %if %{buildtrunk} if [ ! -f configure ]; then @@ -207,6 +209,10 @@ The Corosync Cluster Engine APIs. %{_mandir}/man8/coroipc_overview.8* %changelog +* Mon Mar 30 2009 Fabio M. Di Nitto - 0.95-2 +- Backport svn commit 1913 to fix pkgconfig files generation + and unbreak lvm2 build. + * Tue Mar 24 2009 Fabio M. Di Nitto - 0.95-1 - New upstream release - spec file updates: diff --git a/fix-pkgconfig.diff b/fix-pkgconfig.diff new file mode 100644 index 0000000..94503cf --- /dev/null +++ b/fix-pkgconfig.diff @@ -0,0 +1,24 @@ +diff -Naurd corosync-0.95.orig/pkgconfig/Makefile.am corosync-0.95/pkgconfig/Makefile.am +--- corosync-0.95.orig/pkgconfig/Makefile.am 2009-03-22 19:44:33.000000000 +0100 ++++ corosync-0.95/pkgconfig/Makefile.am 2009-03-30 08:48:32.000000000 +0200 +@@ -44,7 +44,7 @@ + -e 's#@PREFIX@#$(exec_prefix)#g' \ + -e 's#@LIBDIR@#$(libdir)#g' \ + -e 's#@LIBVERSION@#$(VERSION)#g' \ +- -e 's#@LIB@#'$@'#g' \ ++ -e 's#@LIB@#'$(@:lib%=%)'#g' \ + > $@.pc; + touch $@ + +diff -Naurd corosync-0.95.orig/pkgconfig/Makefile.in corosync-0.95/pkgconfig/Makefile.in +--- corosync-0.95.orig/pkgconfig/Makefile.in 2009-03-23 23:14:38.000000000 +0100 ++++ corosync-0.95/pkgconfig/Makefile.in 2009-03-30 08:48:56.000000000 +0200 +@@ -353,7 +353,7 @@ + -e 's#@PREFIX@#$(exec_prefix)#g' \ + -e 's#@LIBDIR@#$(libdir)#g' \ + -e 's#@LIBVERSION@#$(VERSION)#g' \ +- -e 's#@LIB@#'$@'#g' \ ++ -e 's#@LIB@#'$(@:lib%=%)'#g' \ + > $@.pc; + touch $@ +