01845cc
%global apiversion 0.6
2aa8190
ae3bb1f
Name: libcmis
9abd90a
Version: 0.6.2
5aa9780
Release: %autorelease
6102628
Summary: A C/C++ client library for CM interfaces
ae3bb1f
4239354
License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1
c1c174e
URL: https://github.com/tdf/libcmis
d761d44
Source: https://github.com/tdf/libcmis/releases/download/v%{version}/%{name}-%{version}.tar.xz
ae3bb1f
ae3bb1f
BuildRequires: boost-devel
b487499
BuildRequires: gcc-c++
b4b8494
BuildRequires: pkgconfig(cppunit)
b4b8494
BuildRequires: pkgconfig(libcurl)
b4b8494
BuildRequires: pkgconfig(libxml-2.0)
144e49b
BuildRequires: xmlto
d645860
BuildRequires: make
ae3bb1f
ae3bb1f
%description
6102628
LibCMIS is a C/C++ client library for working with CM (content management)
24f9c38
interfaces. The primary supported interface (which gave the library its
24f9c38
name) is CMIS, which allows applications to connect to any ECM behaving
24f9c38
as a CMIS server (Alfresco or Nuxeo are examples of open source ones).
24f9c38
Another supported interface is Google Drive.
ae3bb1f
ae3bb1f
%package devel
ae3bb1f
Summary: Development files for %{name}
ae3bb1f
Requires: %{name}%{?_isa} = %{version}-%{release}
ae3bb1f
ae3bb1f
%description devel
ae3bb1f
The %{name}-devel package contains libraries and header files for
ae3bb1f
developing applications that use %{name}.
ae3bb1f
ae3bb1f
%package tools
ae3bb1f
Summary: Command line tool to access CMIS
ae3bb1f
Requires: %{name}%{?_isa} = %{version}-%{release}
ae3bb1f
ae3bb1f
%description tools
ae3bb1f
The %{name}-tools package contains a tool for accessing CMIS from the
ae3bb1f
command line.
ae3bb1f
ae3bb1f
%prep
e846439
%autosetup -p1
ae3bb1f
ae3bb1f
%build
85f85c4
%configure --disable-silent-rules --disable-static --disable-werror \
c1c174e
    DOCBOOK2MAN='xmlto man'
ae3bb1f
sed -i \
ae3bb1f
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
ae3bb1f
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
ae3bb1f
    libtool
3fb8083
%make_build
ae3bb1f
ae3bb1f
%install
3fb8083
%make_install
ae3bb1f
rm -f %{buildroot}/%{_libdir}/*.la
ae3bb1f
16f3bdb
%ldconfig_scriptlets
ae3bb1f
85f85c4
%check
85f85c4
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
3fb8083
%make_build check
85f85c4
ae3bb1f
%files
c1c174e
%doc AUTHORS NEWS
218252b
%license COPYING.*
2aa8190
%{_libdir}/%{name}-%{apiversion}.so.*
2aa8190
%{_libdir}/%{name}-c-%{apiversion}.so.*
ae3bb1f
ae3bb1f
%files devel
b5a6196
%doc ChangeLog
2aa8190
%{_includedir}/%{name}-%{apiversion}
2aa8190
%{_includedir}/%{name}-c-%{apiversion}
2aa8190
%{_libdir}/%{name}-%{apiversion}.so
2aa8190
%{_libdir}/%{name}-c-%{apiversion}.so
2aa8190
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
2aa8190
%{_libdir}/pkgconfig/%{name}-c-%{apiversion}.pc
ae3bb1f
ae3bb1f
%files tools
ae3bb1f
%{_bindir}/cmis-client
4aa3fea
%{_mandir}/man1/cmis-client.1*
ae3bb1f
ae3bb1f
%changelog
5aa9780
%autochangelog