diff --git a/exempi-no-shave.patch b/exempi-no-shave.patch new file mode 100644 index 0000000..1db0171 --- /dev/null +++ b/exempi-no-shave.patch @@ -0,0 +1,32 @@ +--- configure.ac.orig ++++ configure.ac +@@ -10,6 +10,7 @@ dnl the same distribution terms as the r + AC_PREREQ(2.50) + AC_INIT(exempi/xmp.h) + AM_INIT_AUTOMAKE(exempi, 2.1.1) ++m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) + AM_MAINTAINER_MODE + + dnl --------------------------------------------------------------------------- +@@ -74,7 +75,7 @@ AC_SUBST(pkgconfigdir) + + AC_CONFIG_MACRO_DIR([m4]) + +-AC_PROG_CC ++AC_PROG_CC_STDC + AC_PROG_CXX + AC_PROG_LIBTOOL + +@@ -197,12 +198,8 @@ dnl due to stupid m4 I had to double the + fi + AC_SUBST(VALGRIND) + +-SHAVE_INIT +- + AC_OUTPUT([ + Makefile +-shave +-shave-libtool + third-party/Makefile + third-party/MD5/Makefile + source/Makefile diff --git a/exempi.changes b/exempi.changes index 1910425..1b1b726 100644 --- a/exempi.changes +++ b/exempi.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Dec 9 01:04:53 UTC 2010 - cristian.rodriguez@opensuse.org + +- run make check +- Disable usage of "shave-libtool" that messes up post build checks + provide --disable-silent-rules + ------------------------------------------------------------------- Tue Sep 7 23:50:28 CEST 2010 - vuntz@opensuse.org diff --git a/exempi.spec b/exempi.spec index 5ab43f1..bdce256 100644 --- a/exempi.spec +++ b/exempi.spec @@ -32,6 +32,7 @@ License: BSD3c(or similar) Group: Development/Libraries/C and C++ Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch0: exempi-no-shave.patch %define debug_package_requires libexempi3 = %{version} %description @@ -48,7 +49,8 @@ XMP parsing and IO library %package -n libexempi-devel License: BSD3c(or similar) Summary: XMP support library -Requires: libexempi3 = %{version} glibc-devel +Requires: libexempi3 = %{version} +Requires: glibc-devel Group: Development/Libraries/C and C++ %description -n libexempi-devel @@ -56,16 +58,20 @@ XMP parsing and IO library %prep %setup -q - +%patch0 %build +autoreconf -fiv export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" -%configure --disable-static +%configure --disable-silent-rules --disable-static %__make %{?jobs:-j%jobs} %install %makeinstall %{__rm} -f %{buildroot}%{_libdir}/*.la +%check +make check + %post -n libexempi3 -p /sbin/ldconfig %postun -n libexempi3 -p /sbin/ldconfig