forked from pool/cmis-client
332f529d26
- 433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch Fix problem with big endian architectures. bnc#866716 OBS-URL: https://build.opensuse.org/request/show/224660 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cmis-client?expand=0&rev=22
140 lines
4.4 KiB
RPMSpec
140 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package cmis-client
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define soname 0_4-4
|
|
%define incname 0.4
|
|
%define _name libcmis
|
|
Name: cmis-client
|
|
Version: 0.4.1
|
|
Release: 0
|
|
Summary: Sample CMIS client
|
|
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://sourceforge.net/projects/libcmis/
|
|
Source0: %{_name}-%{version}.tar.gz
|
|
|
|
# Upstream patches
|
|
Patch0: 433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch
|
|
|
|
BuildRequires: boost-devel >= 1.42
|
|
BuildRequires: docbook2X
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: intltool
|
|
BuildRequires: libcppunit-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libxslt
|
|
BuildRequires: pkg-config
|
|
Requires: %{_name}-%{soname} = %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Sample client to access CMIS-enabled repositories using libcmis.
|
|
|
|
%package -n %{_name}-%{soname}
|
|
Summary: Library for accessing CMIS-enabled servers
|
|
Group: System/Libraries
|
|
|
|
%description -n %{_name}-%{soname}
|
|
LibCMIS is a C++ client library for the CMIS (Content Management
|
|
Interoperability Services) interface. This allows C++ applications to
|
|
connect to any CMIS-enabled repositories.
|
|
|
|
%package -n %{_name}-devel
|
|
Summary: Libcmis development files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{_name}-%{soname} = %{version}
|
|
|
|
%description -n %{_name}-devel
|
|
Development files for libcmis. LibCMIS is a C++ client library for the CMIS interface.
|
|
This allows C++ applications to connect to any CMIS-enabled repositories.
|
|
|
|
%package -n %{_name}-c-%{soname}
|
|
Summary: C Wrapper for libcmis, a library for accessing CMIS-enabled servers
|
|
Group: System/Libraries
|
|
|
|
%description -n %{_name}-c-%{soname}
|
|
libcmis-c is a C client library for the CMIS interface. This allows C applications to connect to any CMIS-enabled repositories.
|
|
It is only a wrapper for its C++ sister libcmis.
|
|
|
|
%package -n %{_name}-c-devel
|
|
Summary: Libcmis-c development files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{_name}-c-%{soname} = %{version}
|
|
|
|
%description -n %{_name}-c-devel
|
|
Development files for libcmis-c. Libcmis-c is a C client library for the CMIS interface.
|
|
This allows C applications to connect to any CMIS-enabled repositories. It is only a wrapper for its C++ sister libcmis.
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
|
|
export CXXFLAGS="%{optflags} $(getconf LFS_CFLAGS)"
|
|
%configure \
|
|
--disable-long-tests \
|
|
--disable-static \
|
|
--disable-werror
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%check
|
|
make check %{?_smp_mflags}
|
|
|
|
%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
|
|
|
|
%files -n %{_name}-%{soname}
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS README
|
|
%{_libdir}/%{_name}-%{incname}.so.*
|
|
|
|
%files -n %{_name}-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/%{_name}-%{incname}
|
|
%{_libdir}/pkgconfig/%{_name}-%{incname}.pc
|
|
%{_libdir}/%{_name}-%{incname}.so
|
|
|
|
%files -n %{_name}-c-%{soname}
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING.LGPL COPYING.MPL COPYING.GPL NEWS README
|
|
%{_libdir}/%{_name}-c-%{incname}.so.*
|
|
|
|
%files -n %{_name}-c-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/%{_name}-c-%{incname}
|
|
%{_libdir}/pkgconfig/%{_name}-c-%{incname}.pc
|
|
%{_libdir}/%{_name}-c-%{incname}.so
|
|
|
|
%changelog
|