libcmis/libcmis.spec

134 lines
3.8 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: libcmis
Version: 0.6.0
Release: 1mamba
Summary: Allows C++ applications to connect to any ECM behaving as a CMIS server
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/libcmis/
Source: https://github.com/tdf/libcmis.git/v%{version}/libcmis-%{version}.tar.bz2
Patch0: libcmis-0.5.0-libboost.patch
License: GPL, LGPL, MPL 1.1
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libboost-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
BuildRequires: docbook-utils
%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 devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Development/Tools
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q
touch README
touch ChangeLog
autoreconf -f -i
%build
%configure \
--disable-silent-rules \
--disable-static \
--disable-werror \
DOCBOOK2MAN='xmlto man'
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
libtool
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libcmis-%{majver}.so.*
%{_libdir}/libcmis-c-%{majver}.so.*
%doc AUTHORS
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libcmis-%{majver}
%dir %{_includedir}/libcmis-%{majver}/libcmis
%{_includedir}/libcmis-%{majver}/libcmis/*
%dir %{_includedir}/libcmis-c-%{majver}/libcmis-c
%{_includedir}/libcmis-c-%{majver}/libcmis-c/*.h
%{_libdir}/libcmis-%{majver}.so
%{_libdir}/libcmis-c-%{majver}.so
%{_libdir}/pkgconfig/libcmis-%{majver}.pc
%{_libdir}/pkgconfig/libcmis-c-%{majver}.pc
%doc ChangeLog README
%files tools
%defattr(-,root,root)
%{_bindir}/cmis-client
%{_mandir}/man1/cmis-client.1*
%changelog
* Sun Oct 15 2023 Automatic Build System <autodist@mambasoft.it> 0.6.0-1mamba
- automatic version update by autodist
* Sun Sep 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.2-2mamba
- rebuilt
* Wed Jan 09 2019 Automatic Build System <autodist@mambasoft.it> 0.5.2-1mamba
- automatic version update by autodist
* Fri May 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-1mamba
- update to 0.5.1
* Sat Jan 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-2mamba
- rebuil with gcc 5.3
* Fri Jan 02 2015 Automatic Build System <autodist@mambasoft.it> 0.5.0-1mamba
- automatic update by autodist
* Mon Mar 03 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-2mamba
- rebuilt with libboost 1.55
* Thu Aug 08 2013 Automatic Build System <autodist@mambasoft.it> 0.4.1-1mamba
- automatic update by autodist
* Mon Feb 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-1mamba
- update to 0.3.1
* Sat Jul 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.3-1mamba
- update to 0.2.3
* Sat Mar 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.0-1mamba
- package created by autospec