SHA256
1
0
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:
Dominique Leuenberger 2016-05-13 07:21:53 +00:00 committed by Git OBS Bridge
commit 92d5e07ceb
3 changed files with 32 additions and 15 deletions

View File

@ -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

View File

@ -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)

View 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.