]>
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 |
905f2b6f AM |
8 | Version: 0.2.3 |
9 | Release: 1 | |
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 |
905f2b6f | 13 | # Source0-md5: 0d2dcdfbf28d6208751b33057f5361f0 |
a25e2f47 | 14 | URL: http://sourceforge.net/projects/libcmis/ |
0b0b294e AM |
15 | BuildRequires: boost-devel |
16 | BuildRequires: curl-devel | |
905f2b6f | 17 | BuildRequires: docbook2X |
a25e2f47 | 18 | BuildRequires: libstdc++-devel |
0b0b294e | 19 | BuildRequires: libxml2-devel |
102a9631 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0b0b294e AM |
21 | |
22 | %description | |
23 | LibCMIS is a C++ client library for the CMIS interface. This allows | |
24 | C++ applications to connect to any ECM behaving as a CMIS server like | |
25 | Alfresco, Nuxeo for the open source ones. | |
26 | ||
e4746041 | 27 | %description -l pl.UTF-8 |
a25e2f47 JB |
28 | LibCMIS to biblioteka klienta C++ dla interfejsu CMIS. Pozwala ona |
29 | aplikacjom C++ na łączenie się z każdym ECM zachowującym się jako | |
30 | serwer CMIS, taki jak Alfresco, Nuxeo (biorąc pod uwagę implementacje | |
31 | o otwartych źródłach). | |
e4746041 | 32 | |
0b0b294e | 33 | %package devel |
a25e2f47 JB |
34 | Summary: Development files for CMIS library |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CMIS | |
0b0b294e AM |
36 | Group: Development/Libraries |
37 | Requires: %{name} = %{version}-%{release} | |
a25e2f47 JB |
38 | Requires: boost-devel |
39 | Requires: libstdc++-devel | |
0b0b294e AM |
40 | |
41 | %description devel | |
a25e2f47 JB |
42 | This package contains the header files for developing applications |
43 | that use CMIS library. | |
0b0b294e | 44 | |
e4746041 | 45 | %description devel -l pl.UTF-8 |
a25e2f47 JB |
46 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na |
47 | bibliotece CMIS | |
48 | ||
49 | %package static | |
50 | Summary: Static CMIS library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka CMIS | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static CMIS library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka CMIS. | |
e4746041 | 60 | |
0b0b294e AM |
61 | %package tools |
62 | Summary: Command line tool to access CMIS | |
e4746041 | 63 | Summary(pl.UTF-8): Narzędzie wiersza poleceń dla CMIS |
0b0b294e AM |
64 | Group: Applications/Publishing |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description tools | |
a25e2f47 | 68 | This package contains a tool for accessing CMIS from the command line. |
0b0b294e | 69 | |
e4746041 | 70 | %description tools -l pl.UTF-8 |
a25e2f47 JB |
71 | Ten pakiet zawiera narzędzie do łączenia się do CMIS z wiersza |
72 | poleceń. | |
e4746041 | 73 | |
0b0b294e AM |
74 | %prep |
75 | %setup -q | |
905f2b6f | 76 | sed -i -e 's/docbook-to-man/docbook2X2man/' configure |
0b0b294e AM |
77 | |
78 | %build | |
79 | %configure \ | |
a25e2f47 | 80 | %{!?with_static_libs:--disable-static} \ |
0b0b294e AM |
81 | --disable-tests \ |
82 | --disable-werror | |
83 | ||
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
4ffb7ff6 AM |
89 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
90 | ||
0b0b294e AM |
91 | %{__make} install \ |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
4ffb7ff6 AM |
94 | cp -p %{name}-0.2.pc %{buildroot}/%{_libdir}/pkgconfig |
95 | ||
a25e2f47 | 96 | # obsoleted by pkg-config |
102a9631 | 97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
0b0b294e AM |
98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102a9631 ER |
102 | %post -p /sbin/ldconfig |
103 | %postun -p /sbin/ldconfig | |
0b0b294e AM |
104 | |
105 | %files | |
106 | %defattr(644,root,root,755) | |
a25e2f47 | 107 | %doc AUTHORS ChangeLog README |
102a9631 | 108 | %attr(755,root,root) %{_libdir}/%{name}-0.2.so.*.*.* |
905f2b6f | 109 | %attr(755,root,root) %ghost %{_libdir}/libcmis-0.2.so.2 |
0b0b294e AM |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
0b0b294e | 113 | %attr(755,root,root) %{_libdir}/%{name}-0.2.so |
905f2b6f | 114 | %{_includedir}/%{name}-0.2 |
4ffb7ff6 | 115 | %{_pkgconfigdir}/libcmis-0.2.pc |
0b0b294e | 116 | |
a25e2f47 JB |
117 | %if %{with static_libs} |
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libcmis-0.2.a | |
121 | %endif | |
122 | ||
0b0b294e AM |
123 | %files tools |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_bindir}/cmis-client | |
905f2b6f | 126 | %{_mandir}/man1/cmis-client.1* |