Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.

About project

LibCMIS is a C++ client library for the CMIS interface. This allows C++ applications to connect to any ECM behaving as a CMIS server like Alfresco, Nuxeo for the open source ones.

Last commit

avatar
victorr2007 has added 340d22623d
Updated libcmis.spec

Files in

100644 | 110 lines (87 sloc) | 3.03 KB
%define api 0.5
%define major 5
%define libname %mklibname cmis %{api} %{major}
%define libcmis_c %mklibname cmis-c %{api} %{major}
%define devname %mklibname -d cmis

Summary:	A C++ client library for the CMIS interface
Name:		libcmis
Version:	0.5.2
Release:	5
License:	GPLv2+ or LGPLv2+ or MPLv1.1
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libcmis/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
# Patches taken from LibreOffice tarball, v7.2.0.3
Patch100:	0001-rename-class-GetObject-to-avoid-name-clash-on-Window.patch
Patch101:	libcmis-libxml2_compatibility.patch
Patch102:	libcmis_onedrive.patch
Patch103:	libcmis_oauth_pw_as_refreshtoken.patch.1
Patch104:	libcmis_gdrive.patch.1
BuildRequires:	docbook2x
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
#BuildRequires:	xmlto

%description
LibCMIS is a C++ client library for the CMIS interface. This allows C++
applications to connect to any ECM behaving as a CMIS server like
Alfresco, Nuxeo for the open source ones.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text categorization library
Group:		System/Libraries

%description -n %{libname}
LibCMIS is a C++ client library for the CMIS interface. This allows C++
applications to connect to any ECM behaving as a CMIS server like
Alfresco, Nuxeo for the open source ones.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcmis_c}
Summary:	Text categorization library
Group:		System/Libraries

%description -n %{libcmis_c}
This package contains a shared library for %{name}.

%files -n %{libcmis_c}
%{_libdir}/%{name}-c-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libcmis_c} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING.GPL COPYING.LGPL COPYING.MPL NEWS
%{_includedir}/%{name}-%{api}
%{_includedir}/%{name}-c-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/%{name}-c-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-c-%{api}.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Command line tool to access CMIS
Group:		Publishing

%description tools
The %{name}-tools package contains a tool for accessing CMIS from the
command line.

%files tools
%{_bindir}/cmis-client
#{_mandir}/manx/cmis-client.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e 's/docbook-to-man/db2x_docbook2man/' configure

%build
%configure \
	--disable-static \
	--disable-tests \
	--disable-werror \
	--with-man=no

%make

%install
%makeinstall_std