]>
Commit | Line | Data |
---|---|---|
a25e2f47 JB |
1 | # |
2 | # Conditonal build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
0b0b294e | 5 | Summary: A C++ client library for the CMIS interface |
e4746041 | 6 | Summary(pl.UTF-8): Biblioteka klienta C++ dla inferfejsu CMIS |
0b0b294e | 7 | Name: libcmis |
3f1338e1 | 8 | Version: 0.4.1 |
dc6ea868 | 9 | Release: 3 |
a25e2f47 | 10 | License: GPL v2+ or LGPL v2+ or MPL v1.1 |
0b0b294e | 11 | Group: Libraries |
0b0b294e | 12 | Source0: http://downloads.sourceforge.net/libcmis/%{name}-%{version}.tar.gz |
3f1338e1 | 13 | # Source0-md5: 22f8a85daf4a012180322e1f52a7563b |
a25e2f47 | 14 | URL: http://sourceforge.net/projects/libcmis/ |
3a43359e JB |
15 | BuildRequires: autoconf >= 2.63 |
16 | BuildRequires: automake | |
0b0b294e | 17 | BuildRequires: boost-devel |
3f1338e1 | 18 | BuildRequires: cppunit-devel >= 1.12 |
13097481 | 19 | BuildRequires: curl-devel >= 7.12.3 |
3a43359e | 20 | BuildRequires: docbook2X >= 0.8.8-4 |
a25e2f47 | 21 | BuildRequires: libstdc++-devel |
3f1338e1 | 22 | BuildRequires: libtool >= 2:2 |
13097481 JB |
23 | BuildRequires: libxml2-devel >= 2.0 |
24 | BuildRequires: pkgconfig | |
3a43359e | 25 | BuildRequires: sed >= 4.0 |
13097481 | 26 | Requires: curl-libs >= 7.12.3 |
102a9631 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0b0b294e AM |
28 | |
29 | %description | |
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. | |
33 | ||
e4746041 | 34 | %description -l pl.UTF-8 |
a25e2f47 JB |
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). | |
e4746041 | 39 | |
0b0b294e | 40 | %package devel |
a25e2f47 JB |
41 | Summary: Development files for CMIS library |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CMIS | |
0b0b294e AM |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
a25e2f47 | 45 | Requires: boost-devel |
13097481 | 46 | Requires: curl-devel >= 7.12.3 |
a25e2f47 | 47 | Requires: libstdc++-devel |
13097481 | 48 | Requires: libxml2-devel >= 2.0 |
0b0b294e AM |
49 | |
50 | %description devel | |
a25e2f47 JB |
51 | This package contains the header files for developing applications |
52 | that use CMIS library. | |
0b0b294e | 53 | |
e4746041 | 54 | %description devel -l pl.UTF-8 |
a25e2f47 JB |
55 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na |
56 | bibliotece CMIS | |
57 | ||
58 | %package static | |
59 | Summary: Static CMIS library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka CMIS | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static CMIS library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka CMIS. | |
e4746041 | 69 | |
0b0b294e AM |
70 | %package tools |
71 | Summary: Command line tool to access CMIS | |
e4746041 | 72 | Summary(pl.UTF-8): Narzędzie wiersza poleceń dla CMIS |
0b0b294e AM |
73 | Group: Applications/Publishing |
74 | Requires: %{name} = %{version}-%{release} | |
75 | ||
76 | %description tools | |
a25e2f47 | 77 | This package contains a tool for accessing CMIS from the command line. |
0b0b294e | 78 | |
e4746041 | 79 | %description tools -l pl.UTF-8 |
a25e2f47 JB |
80 | Ten pakiet zawiera narzędzie do łączenia się do CMIS z wiersza |
81 | poleceń. | |
e4746041 | 82 | |
0b0b294e AM |
83 | %prep |
84 | %setup -q | |
3a43359e | 85 | |
3f1338e1 | 86 | #%{__sed} -i -e 's/docbook-to-man/docbook2X2man/' configure.ac |
0b0b294e AM |
87 | |
88 | %build | |
3a43359e JB |
89 | %{__libtoolize} |
90 | %{__aclocal} -I m4 | |
91 | %{__autoconf} | |
92 | %{__automake} | |
0b0b294e | 93 | %configure \ |
3f1338e1 | 94 | DOCBOOK2MAN=/usr/bin/docbook2X2man \ |
3a43359e | 95 | --disable-silent-rules \ |
a25e2f47 | 96 | %{!?with_static_libs:--disable-static} \ |
0b0b294e AM |
97 | --disable-tests \ |
98 | --disable-werror | |
99 | ||
100 | %{__make} | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
a25e2f47 | 108 | # obsoleted by pkg-config |
102a9631 | 109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
0b0b294e AM |
110 | |
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
102a9631 ER |
114 | %post -p /sbin/ldconfig |
115 | %postun -p /sbin/ldconfig | |
0b0b294e AM |
116 | |
117 | %files | |
118 | %defattr(644,root,root,755) | |
13097481 | 119 | %doc AUTHORS ChangeLog NEWS README |
3f1338e1 JB |
120 | %attr(755,root,root) %{_libdir}/libcmis-0.4.so.*.*.* |
121 | %attr(755,root,root) %ghost %{_libdir}/libcmis-0.4.so.4 | |
122 | %attr(755,root,root) %{_libdir}/libcmis-c-0.4.so.*.*.* | |
123 | %attr(755,root,root) %ghost %{_libdir}/libcmis-c-0.4.so.4 | |
0b0b294e AM |
124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
3f1338e1 JB |
127 | %attr(755,root,root) %{_libdir}/libcmis-0.4.so |
128 | %attr(755,root,root) %{_libdir}/libcmis-c-0.4.so | |
129 | %{_includedir}/libcmis-0.4 | |
130 | %{_includedir}/libcmis-c-0.4 | |
131 | %{_pkgconfigdir}/libcmis-0.4.pc | |
132 | %{_pkgconfigdir}/libcmis-c-0.4.pc | |
0b0b294e | 133 | |
a25e2f47 JB |
134 | %if %{with static_libs} |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
3f1338e1 JB |
137 | %{_libdir}/libcmis-0.4.a |
138 | %{_libdir}/libcmis-c-0.4.a | |
a25e2f47 JB |
139 | %endif |
140 | ||
0b0b294e AM |
141 | %files tools |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_bindir}/cmis-client | |
905f2b6f | 144 | %{_mandir}/man1/cmis-client.1* |