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