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 Source0: http://downloads.sourceforge.net/libcmis/%{name}-%{version}.tar.gz
13 # Source0-md5: 5821b806a98e6c38370970e682ce76e8
14 Patch0: %{name}-boost-gcc.patch
15 URL: http://sourceforge.net/projects/libcmis/
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake
18 BuildRequires: boost-devel
19 BuildRequires: cppunit-devel >= 1.12
20 BuildRequires: curl-devel >= 7.12.3
21 BuildRequires: docbook2X >= 0.8.8-4
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool >= 2:2
24 BuildRequires: libxml2-devel >= 2.0
25 BuildRequires: pkgconfig
26 BuildRequires: sed >= 4.0
27 Requires: curl-libs >= 7.12.3
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 LibCMIS is a C++ client library for the CMIS interface. This allows
32 C++ applications to connect to any ECM behaving as a CMIS server like
33 Alfresco, Nuxeo for the open source ones.
35 %description -l pl.UTF-8
36 LibCMIS to biblioteka klienta C++ dla interfejsu CMIS. Pozwala ona
37 aplikacjom C++ na łączenie się z każdym ECM zachowującym się jako
38 serwer CMIS, taki jak Alfresco, Nuxeo (biorąc pod uwagę implementacje
39 o otwartych źródłach).
42 Summary: Development files for CMIS library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CMIS
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
47 Requires: curl-devel >= 7.12.3
48 Requires: libstdc++-devel
49 Requires: libxml2-devel >= 2.0
52 This package contains the header files for developing applications
53 that use CMIS library.
55 %description devel -l pl.UTF-8
56 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
60 Summary: Static CMIS library
61 Summary(pl.UTF-8): Statyczna biblioteka CMIS
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
68 %description static -l pl.UTF-8
69 Statyczna biblioteka CMIS.
72 Summary: Command line tool to access CMIS
73 Summary(pl.UTF-8): Narzędzie wiersza poleceń dla CMIS
74 Group: Applications/Publishing
75 Requires: %{name} = %{version}-%{release}
78 This package contains a tool for accessing CMIS from the command line.
80 %description tools -l pl.UTF-8
81 Ten pakiet zawiera narzędzie do łączenia się do CMIS z wiersza
88 #%{__sed} -i -e 's/docbook-to-man/docbook2X2man/' configure.ac
96 DOCBOOK2MAN=/usr/bin/docbook2X2man \
97 --disable-silent-rules \
98 %{!?with_static_libs:--disable-static} \
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 # obsoleted by pkg-config
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog NEWS README
122 %attr(755,root,root) %{_libdir}/libcmis-0.5.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libcmis-0.5.so.5
124 %attr(755,root,root) %{_libdir}/libcmis-c-0.5.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libcmis-c-0.5.so.5
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/libcmis-0.5.so
130 %attr(755,root,root) %{_libdir}/libcmis-c-0.5.so
131 %{_includedir}/libcmis-0.5
132 %{_includedir}/libcmis-c-0.5
133 %{_pkgconfigdir}/libcmis-0.5.pc
134 %{_pkgconfigdir}/libcmis-c-0.5.pc
136 %if %{with static_libs}
138 %defattr(644,root,root,755)
139 %{_libdir}/libcmis-0.5.a
140 %{_libdir}/libcmis-c-0.5.a
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_bindir}/cmis-client
146 %{_mandir}/man1/cmis-client.1*