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