3 %bcond_without static_libs # static library
5 Summary: A C++ client library for the CMIS interface
6 Summary(pl.UTF-8): Biblioteka klienta C++ dla inferfejsu CMIS
10 License: GPL v2+ or LGPL v2+ or MPL v1.1
12 #Source0Download: https://github.com/tdf/libcmis/releases
13 Source0: https://github.com/tdf/libcmis/releases/download/v%{version}/%{name}-%{version}.tar.xz
14 # Source0-md5: 3653bc54e1bcd17ae09a1a7086daa38b
15 #Source0: http://downloads.sourceforge.net/libcmis/%{name}-%{version}.tar.gz
16 URL: http://sourceforge.net/projects/libcmis/
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake >= 1:1.10
19 BuildRequires: boost-devel >= 1.36
20 BuildRequires: cppunit-devel >= 1.12
21 BuildRequires: curl-devel >= 7.12.3
22 BuildRequires: docbook2X >= 0.8.8-4
23 BuildRequires: libstdc++-devel >= 6:4.7
24 BuildRequires: libtool >= 2:2
25 BuildRequires: libxml2-devel >= 2.0
26 BuildRequires: pkgconfig
27 BuildRequires: tar >= 1:1.22
29 Requires: curl-libs >= 7.12.3
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 LibCMIS is a C++ client library for the CMIS interface. This allows
34 C++ applications to connect to any ECM behaving as a CMIS server like
35 Alfresco, Nuxeo for the open source ones.
37 %description -l pl.UTF-8
38 LibCMIS to biblioteka klienta C++ dla interfejsu CMIS. Pozwala ona
39 aplikacjom C++ na łączenie się z każdym ECM zachowującym się jako
40 serwer CMIS, taki jak Alfresco, Nuxeo (biorąc pod uwagę implementacje
41 o otwartych źródłach).
44 Summary: Development files for CMIS library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CMIS
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: boost-devel >= 1.36
49 Requires: curl-devel >= 7.12.3
50 Requires: libstdc++-devel
51 Requires: libxml2-devel >= 2.0
54 This package contains the header files for developing applications
55 that use CMIS library.
57 %description devel -l pl.UTF-8
58 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
62 Summary: Static CMIS library
63 Summary(pl.UTF-8): Statyczna biblioteka CMIS
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
70 %description static -l pl.UTF-8
71 Statyczna biblioteka CMIS.
74 Summary: Command line tool to access CMIS
75 Summary(pl.UTF-8): Narzędzie wiersza poleceń dla CMIS
76 Group: Applications/Publishing
77 Requires: %{name} = %{version}-%{release}
80 This package contains a tool for accessing CMIS from the command line.
82 %description tools -l pl.UTF-8
83 Ten pakiet zawiera narzędzie do łączenia się do CMIS z wiersza
95 DOCBOOK2MAN=/usr/bin/docbook2X2man \
96 --disable-silent-rules \
97 %{!?with_static_libs:--disable-static} \
104 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT
109 # obsoleted by pkg-config
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS
121 %attr(755,root,root) %{_libdir}/libcmis-0.5.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libcmis-0.5.so.5
123 %attr(755,root,root) %{_libdir}/libcmis-c-0.5.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libcmis-c-0.5.so.5
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libcmis-0.5.so
129 %attr(755,root,root) %{_libdir}/libcmis-c-0.5.so
130 %{_includedir}/libcmis-0.5
131 %{_includedir}/libcmis-c-0.5
132 %{_pkgconfigdir}/libcmis-0.5.pc
133 %{_pkgconfigdir}/libcmis-c-0.5.pc
135 %if %{with static_libs}
137 %defattr(644,root,root,755)
138 %{_libdir}/libcmis-0.5.a
139 %{_libdir}/libcmis-c-0.5.a
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/cmis-client
145 %{_mandir}/man1/cmis-client.1*