forked from pool/cmis-client
Accepting request 394225 from devel:libraries:c_c++
- Simplify autoreconf call and add patch to mark Makefile as foreign: * declare-automake-foreign.patch OBS-URL: https://build.opensuse.org/request/show/394225 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmis-client?expand=0&rev=18
This commit is contained in:
commit
92d5e07ceb
@ -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
|
Fri Mar 4 13:36:58 UTC 2016 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -26,17 +26,19 @@ Summary: Sample CMIS client
|
|||||||
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://github.com/tdf/libcmis
|
Url: https://github.com/tdf/libcmis
|
||||||
Source0: https://github.com/tdf/%_name/releases/download/v%{version}/%_name-%{version}.tar.gz
|
Source0: https://github.com/tdf/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.gz
|
||||||
BuildRequires: boost-devel >= 1.42
|
# PATCH-FIX-UPSTREAM: declare automake foreign
|
||||||
|
Patch0: declare-automake-foreign.patch
|
||||||
|
BuildRequires: boost-devel >= 1.36
|
||||||
BuildRequires: docbook2X
|
BuildRequires: docbook2X
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: libcppunit-devel
|
BuildRequires: libcppunit-devel
|
||||||
BuildRequires: libcurl-devel
|
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libxml2-devel
|
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
Requires: %{_name}-%{soname} = %{version}
|
Requires: %{_name}-%{soname} = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -80,22 +82,21 @@ This allows C applications to connect to any CMIS-enabled repositories. It is on
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
libtoolize --force --copy
|
autoreconf -fvi
|
||||||
aclocal -I m4
|
|
||||||
automake -a -c --foreign
|
|
||||||
autoconf
|
|
||||||
export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
|
export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
|
||||||
export CXXFLAGS="%{optflags} $(getconf LFS_CFLAGS)"
|
export CXXFLAGS="%{optflags} $(getconf LFS_CFLAGS)"
|
||||||
%configure \
|
%configure \
|
||||||
|
--disable-silent-rules \
|
||||||
--disable-long-tests \
|
--disable-long-tests \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-werror
|
--disable-werror
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -107,17 +108,14 @@ make check %{?_smp_mflags}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post -n %{_name}-%{soname} -p /sbin/ldconfig
|
%post -n %{_name}-%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n %{_name}-c-%{soname} -p /sbin/ldconfig
|
%post -n %{_name}-c-%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{_name}-%{soname} -p /sbin/ldconfig
|
%postun -n %{_name}-%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{_name}-c-%{soname} -p /sbin/ldconfig
|
%postun -n %{_name}-c-%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_bindir}/cmis-client
|
%{_bindir}/cmis-client
|
||||||
%doc %{_mandir}/man1/cmis-client.1.gz
|
%{_mandir}/man1/cmis-client.1.*
|
||||||
|
|
||||||
%files -n %{_name}-%{soname}
|
%files -n %{_name}-%{soname}
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
13
declare-automake-foreign.patch
Normal file
13
declare-automake-foreign.patch
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user