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