diff --git a/cmis-client.changes b/cmis-client.changes index c8cc64f..297f507 100644 --- a/cmis-client.changes +++ b/cmis-client.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 8 10:18:47 UTC 2016 - tchvatal@suse.com + +- Simplify autoreconf call and add patch to mark Makefile as foreign: + * declare-automake-foreign.patch + ------------------------------------------------------------------- Fri Mar 4 13:36:58 UTC 2016 - tchvatal@suse.com diff --git a/cmis-client.spec b/cmis-client.spec index 90d3fb7..90b0628 100644 --- a/cmis-client.spec +++ b/cmis-client.spec @@ -26,17 +26,19 @@ Summary: Sample CMIS client License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ Group: Development/Libraries/C and C++ Url: https://github.com/tdf/libcmis -Source0: https://github.com/tdf/%_name/releases/download/v%{version}/%_name-%{version}.tar.gz -BuildRequires: boost-devel >= 1.42 +Source0: https://github.com/tdf/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM: declare automake foreign +Patch0: declare-automake-foreign.patch +BuildRequires: boost-devel >= 1.36 BuildRequires: docbook2X BuildRequires: gcc-c++ BuildRequires: intltool BuildRequires: libcppunit-devel -BuildRequires: libcurl-devel BuildRequires: libtool -BuildRequires: libxml2-devel BuildRequires: libxslt -BuildRequires: pkg-config +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libxml-2.0) Requires: %{_name}-%{soname} = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -80,22 +82,21 @@ This allows C applications to connect to any CMIS-enabled repositories. It is on %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 %build -libtoolize --force --copy -aclocal -I m4 -automake -a -c --foreign -autoconf +autoreconf -fvi export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)" export CXXFLAGS="%{optflags} $(getconf LFS_CFLAGS)" %configure \ + --disable-silent-rules \ --disable-long-tests \ --disable-static \ --disable-werror -make %{?_smp_mflags} V=1 +make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +make %{?_smp_mflags} DESTDIR=%{buildroot} install find %{buildroot} -type f -name "*.la" -delete -print %check @@ -107,17 +108,14 @@ make check %{?_smp_mflags} %endif %post -n %{_name}-%{soname} -p /sbin/ldconfig - %post -n %{_name}-c-%{soname} -p /sbin/ldconfig - %postun -n %{_name}-%{soname} -p /sbin/ldconfig - %postun -n %{_name}-c-%{soname} -p /sbin/ldconfig %files %defattr(-, root, root) %{_bindir}/cmis-client -%doc %{_mandir}/man1/cmis-client.1.gz +%{_mandir}/man1/cmis-client.1.* %files -n %{_name}-%{soname} %defattr(-, root, root) diff --git a/declare-automake-foreign.patch b/declare-automake-foreign.patch new file mode 100644 index 0000000..dfffd81 --- /dev/null +++ b/declare-automake-foreign.patch @@ -0,0 +1,13 @@ +Index: libcmis-0.5.1/configure.ac +=================================================================== +--- libcmis-0.5.1.orig/configure.ac ++++ libcmis-0.5.1/configure.ac +@@ -10,7 +10,7 @@ m4_define([libcmis_version],[libcmis_api + + AC_PREREQ([2.63]) + AC_INIT([libcmis], [libcmis_version]) +-AM_INIT_AUTOMAKE() ++AM_INIT_AUTOMAKE([1.10 foreign dist-xz]) + m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) + + # Checks for programs.