]> git.pld-linux.org Git - packages/xmlrpc-c.git/blame - xmlrpc-c.spec
- moved libstdc++-devel dependency to proper subpackage
[packages/xmlrpc-c.git] / xmlrpc-c.spec
CommitLineData
94b562a0 1Summary: XML-RPC C library - an implementation of the xmlrpc protocol
b4876a5b 2Summary(pl.UTF-8): Biblioteka XML-RPC C - implementacja protokołu xmlrpc
94b562a0 3Name: xmlrpc-c
b2b65fa4 4Version: 1.28.10
06382d95 5Release: 2
f53f9028 6License: XML-RPC for C License (BSD-like)
94b562a0 7Group: Libraries
3671422b
JB
8# svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced xmlrpc-c
9# Unfortunately, upstream does not tag versions so we must fetch from the branch
10# and check which version was used for it
b2b65fa4 11# 1.28.10 is svn r2181
3671422b 12Source0: %{name}-%{version}.tar.xz
b2b65fa4 13# Source0-md5: b1d7d851bbd50169be668ef16817bc6b
94b562a0 14Patch0: %{name}-fastdep.patch
cb36d9b7 15Patch1: %{name}-soname.patch
6d2b4673 16Patch2: %{name}-cflags.patch
3671422b
JB
17# patches 10+ come from Fedora
18Patch10: %{name}-cmake.patch
19Patch11: %{name}-printf-size_t.patch
20Patch12: %{name}-longlong.patch
21Patch13: %{name}-uninit-curl.patch
22Patch14: %{name}-30x-redirect.patch
23Patch15: %{name}-check-vasprintf-return-value.patch
24Patch16: %{name}-include-string_int.h.patch
94b562a0 25URL: http://xmlrpc-c.sourceforge.net/
a129e9aa 26BuildRequires: cmake >= 2.6
698b9077 27BuildRequires: curl-devel
dcde1631 28BuildRequires: libstdc++-devel
f53f9028 29BuildRequires: libxml2-devel >= 2.0
cc22c62a 30BuildRequires: ncurses-devel >= 5.7-21
71492220 31BuildRequires: pkgconfig
c23dac2f 32BuildRequires: readline-devel
5e7b2e2d 33BuildRequires: rpmbuild(macros) >= 1.577
3671422b 34BuildRequires: tar >= 1:1.22
2b510a0c 35BuildRequires: w3c-libwww-devel >= 5.4.0-11
3671422b 36BuildRequires: xz
94b562a0
MK
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
94b562a0 39%description
65007067
ER
40XML-RPC is a quick-and-easy way to make procedure calls over the
41Internet. It converts the procedure call into XML document, sends it
42to a remote server using HTTP, and gets back the response as XML.
43
44This library provides a modular implementation of XML-RPC for C.
d593da55 45
4b75e3e6 46%description -l pl.UTF-8
a129e9aa
JB
47XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
48Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
49zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
50
51Ta biblioteka udostepnia modularną implementacją XML-RPC dla języka C.
94b562a0 52
c7fe4465
JB
53%package devel
54Summary: C header files for xmlrpc-c base libraries
55Summary(pl.UTF-8): Pliki nagłówkowe C dla głównych bibliotek xmlrpc-c
56Group: Development/Libraries
65007067 57Requires: %{name} = %{version}-%{release}
c7fe4465
JB
58Requires: curl-devel
59Requires: expat-devel
60Requires: libxml2-devel >= 2.0
61Requires: w3c-libwww-devel
65007067 62
c7fe4465
JB
63%description devel
64C header files for xmlrpc-c base libraries.
a129e9aa 65
c7fe4465
JB
66%description devel -l pl.UTF-8
67Pliki nagłówkowe C dla głównych bibliotek xmlrpc-c.
a129e9aa 68
65007067 69%package client
a129e9aa
JB
70Summary: C client library for xmlrpc-c
71Summary(pl.UTF-8): Biblioteka kliencka C xmlrpc-c
65007067
ER
72Group: Libraries
73Requires: %{name} = %{version}-%{release}
65007067
ER
74
75%description client
76XML-RPC is a quick-and-easy way to make procedure calls over the
77Internet. It converts the procedure call into XML document, sends it
78to a remote server using HTTP, and gets back the response as XML.
79
80This library provides a modular implementation of XML-RPC for C
81clients.
82
a129e9aa
JB
83%description client -l pl.UTF-8
84XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
85Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
86zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
87
88Ta biblioteka udostepnia modularną implementacją XML-RPC dla klientów
89w języku C.
90
c7fe4465
JB
91%package client-devel
92Summary: C header files for xmlrpc-c client library
93Summary(pl.UTF-8): Pliki nagłówkowe C dla biblioteki klienckiej xmlrpc-c
94Group: Development/Libraries
95Requires: %{name}-client = %{version}-%{release}
96Requires: %{name}-devel = %{version}-%{release}
97
98%description client-devel
99C header files for xmlrpc-c client library.
100
101%description client-devel -l pl.UTF-8
102Pliki nagłówkowe C dla biblioteki klienckiej xmlrpc-c.
103
104%package server
105Summary: C server libraries for xmlrpc-c
106Summary(pl.UTF-8): Biblioteki serwerowe C xmlrpc-c
107Group: Libraries
108Requires: %{name} = %{version}-%{release}
109
110%description server
111XML-RPC is a quick-and-easy way to make procedure calls over the
112Internet. It converts the procedure call into XML document, sends it
113to a remote server using HTTP, and gets back the response as XML.
114
115These libraries provide a modular implementation of XML-RPC for C
116servers.
117
118%description server -l pl.UTF-8
119XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
120Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
121zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
122
123Te biblioteki udostepniają modularną implementacją XML-RPC dla
124serwerów w języku C.
125
126%package server-devel
127Summary: C header files for xmlrpc-c server libraries
128Summary(pl.UTF-8): Pliki nagłówkowe C dla bibliotek serwerowych xmlrpc-c
129Group: Development/Libraries
130Requires: %{name}-server = %{version}-%{release}
131Requires: %{name}-devel = %{version}-%{release}
132
133%description server-devel
134C header files for xmlrpc-c server libraries.
135
136%description server-devel -l pl.UTF-8
137Pliki nagłówkowe C dla bibliotek serwerowych xmlrpc-c.
138
139%package c++
140Summary: C++ libraries for xmlrpc-c
141Summary(pl.UTF-8): Biblioteki C++ xmlrpc-c
142Group: Libraries
143Requires: %{name} = %{version}-%{release}
c7fe4465
JB
144
145%description c++
146XML-RPC is a quick-and-easy way to make procedure calls over the
147Internet. It converts the procedure call into XML document, sends it
148to a remote server using HTTP, and gets back the response as XML.
149
150This library provides a modular implementation of XML-RPC for C++.
151
152%description c++ -l pl.UTF-8
153XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
154Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
155zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
156
157Ta biblioteka udostepnia modularną implementacją XML-RPC dla języka
158C++.
159
160%package c++-devel
161Summary: C++ header files for xmlrpc-c base libraries
162Summary(pl.UTF-8): Pliki nagłówkowe C++ głównych bibliotek xmlrpc-c
163Group: Development/Libraries
164Requires: %{name}-c++ = %{version}-%{release}
165Requires: %{name}-devel = %{version}-%{release}
813189af 166Requires: libstdc++-devel
c7fe4465
JB
167
168%description c++-devel
169C++ header files for xmlrpc-c base libraries.
170
171%description c++-devel -l pl.UTF-8
172Pliki nagłówkowe C++ głównych bibliotek xmlrpc-c.
173
65007067 174%package client++
a129e9aa
JB
175Summary: C++ client library for xmlrpc-c
176Summary(pl.UTF-8): Biblioteka kliencka C++ xmlrpc-c
65007067 177Group: Libraries
8e5ab56c
JB
178Requires: %{name}-c++ = %{version}-%{release}
179Requires: %{name}-client = %{version}-%{release}
65007067
ER
180
181%description client++
182XML-RPC is a quick-and-easy way to make procedure calls over the
183Internet. It converts the procedure call into XML document, sends it
184to a remote server using HTTP, and gets back the response as XML.
185
186This library provides a modular implementation of XML-RPC for C++
187clients.
188
a129e9aa
JB
189%description client++ -l pl.UTF-8
190XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
191Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
192zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
193
194Ta biblioteka udostepnia modularną implementacją XML-RPC dla klientów
195w języku C++.
196
c7fe4465
JB
197%package client++-devel
198Summary: C++ header files for xmlrpc-c client library
199Summary(pl.UTF-8): Pliki nagłówkowe C++ biblioteki klienckiej xmlrpc-c
200Group: Development/Libraries
201Requires: %{name}-c++-devel = %{version}-%{release}
202Requires: %{name}-client++ = %{version}-%{release}
203Requires: %{name}-client-devel = %{version}-%{release}
204
205%description client++-devel
206C++ header files for xmlrpc-c client library.
207
208%description client++-devel -l pl.UTF-8
209Pliki nagłówkowe C++ biblioteki klienckiej xmlrpc-c.
210
211%package server++
212Summary: C++ server libraries for xmlrpc-c
213Summary(pl.UTF-8): Biblioteki serwerowe C++ xmlrpc-c
214Group: Libraries
215Requires: %{name}-c++ = %{version}-%{release}
216Requires: %{name}-server = %{version}-%{release}
217
218%description server++
219XML-RPC is a quick-and-easy way to make procedure calls over the
220Internet. It converts the procedure call into XML document, sends it
221to a remote server using HTTP, and gets back the response as XML.
222
223These libraries provide a modular implementation of XML-RPC for C++
224servers.
225
226%description server++ -l pl.UTF-8
227XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
228Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
229zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
230
231Te biblioteki udostepniają modularną implementacją XML-RPC dla
232serwerów w języku C++.
233
234%package server++-devel
235Summary: C++ header files for xmlrpc-c server libraries
236Summary(pl.UTF-8): Pliki nagłówkowe C dla bibliotek serwerowych xmlrpc-c
237Group: Development/Libraries
238Requires: %{name}-c++-devel = %{version}-%{release}
239Requires: %{name}-server++ = %{version}-%{release}
240Requires: %{name}-server-devel = %{version}-%{release}
241
242%description server++-devel
243C++ header files for xmlrpc-c server libraries.
244
245%description server++-devel -l pl.UTF-8
246Pliki nagłówkowe C++ dla bibliotek serwerowych xmlrpc-c.
247
65007067
ER
248%package apps
249Summary: Sample XML-RPC applications
a129e9aa 250Summary(pl.UTF-8): Przykładowe aplikacje XML-RPC
65007067 251Group: Applications/Networking
171430eb
JB
252Requires: %{name} = %{version}-%{release}
253Requires: %{name}-c++ = %{version}-%{release}
254Requires: %{name}-client = %{version}-%{release}
255Requires: %{name}-client++ = %{version}-%{release}
65007067
ER
256
257%description apps
258XML-RPC is a quick-and-easy way to make procedure calls over the
259Internet. It converts the procedure call into XML document, sends it
260to a remote server using HTTP, and gets back the response as XML.
261
262This package contains some handy XML-RPC demo applications.
263
a129e9aa
JB
264%description apps -l pl.UTF-8
265XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez
266Internet. Przekształca wywołanie procedury na dokument XML, wysyła do
267zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML.
268
269Ten pakiet zawiera kilka podręcznych aplikacji demonstracyjnych
270XML-RPC.
271
94b562a0 272%prep
3671422b 273%setup -q -n %{name}
94b562a0 274%patch0 -p1
6d2b4673 275%patch2 -p1
3671422b
JB
276%patch10 -p1
277%patch11 -p1
278%patch12 -p1
279%patch13 -p1
280%patch14 -p1
281%patch15 -p1
282%patch16 -p1
65007067
ER
283%patch1 -p1
284
94b562a0 285%build
65007067
ER
286mkdir -p build
287cd build
288%cmake .. \
289 -D_lib:STRING=%{_lib} \
5e7b2e2d
JB
290 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
291 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
65007067 292 -DMUST_BUILD_CURL_CLIENT:BOOL=ON \
382cf26a 293 -DMUST_BUILD_LIBWWW_CLIENT:BOOL=ON \
65007067
ER
294 -DBUILD_SHARED_LIBS:BOOL=ON \
295 -DENABLE_TOOLS:BOOL=ON
296
5e7b2e2d 297%{__make}
94b562a0
MK
298
299%install
300rm -rf $RPM_BUILD_ROOT
301
65007067 302%{__make} -C build install \
c315407d 303 DESTDIR=$RPM_BUILD_ROOT \
65007067 304
8e5ab56c 305chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so*
94b562a0 306
8e5ab56c 307# Win32-specific
a129e9aa 308%{__rm} $RPM_BUILD_ROOT%{_includedir}/xmlrpc_server_w32httpsys.h \
f53f9028
JB
309 $RPM_BUILD_ROOT%{_includedir}/xmlrpc-c/server_w32httpsys.h
310
94b562a0
MK
311%clean
312rm -rf $RPM_BUILD_ROOT
313
e3bc354f 314%post -p /sbin/ldconfig
315%postun -p /sbin/ldconfig
94b562a0 316
65007067
ER
317%post client -p /sbin/ldconfig
318%postun client -p /sbin/ldconfig
319
c7fe4465
JB
320%post server -p /sbin/ldconfig
321%postun server -p /sbin/ldconfig
322
65007067
ER
323%post c++ -p /sbin/ldconfig
324%postun c++ -p /sbin/ldconfig
325
326%post client++ -p /sbin/ldconfig
327%postun client++ -p /sbin/ldconfig
328
c7fe4465
JB
329%post server++ -p /sbin/ldconfig
330%postun server++ -p /sbin/ldconfig
331
94b562a0
MK
332%files
333%defattr(644,root,root,755)
f53f9028 334%doc README doc/{COPYING,CREDITS,HISTORY,SECURITY,TODO}
f53f9028
JB
335%attr(755,root,root) %{_libdir}/libxmlrpc-c.so.*.*
336%attr(755,root,root) %ghost %{_libdir}/libxmlrpc-c.so.3
337%attr(755,root,root) %{_libdir}/libxmlrpc_abyss.so.*.*
338%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_abyss.so.3
c7fe4465
JB
339%attr(755,root,root) %{_libdir}/libxmlrpc_util.so.*.*
340%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_util.so.3
341
342%files devel
343%defattr(644,root,root,755)
344%doc doc/{DEVELOPING,TESTING}
345%attr(755,root,root) %{_bindir}/xmlrpc-c-config
346%attr(755,root,root) %{_libdir}/libxmlrpc-c.so
347%attr(755,root,root) %{_libdir}/libxmlrpc_abyss.so
348%attr(755,root,root) %{_libdir}/libxmlrpc_util.so
349%dir %{_includedir}/xmlrpc-c
350%{_includedir}/xmlrpc-c/abyss*.h
351%{_includedir}/xmlrpc-c/base.h
352%{_includedir}/xmlrpc-c/c_util.h
353%{_includedir}/xmlrpc-c/config.h
354%{_includedir}/xmlrpc-c/inttypes.h
355%{_includedir}/xmlrpc-c/json.h
356%{_includedir}/xmlrpc-c/oldxmlrpc.h
357%{_includedir}/xmlrpc-c/transport.h
358%{_includedir}/xmlrpc-c/util.h
359%{_includedir}/xmlrpc.h
c7fe4465
JB
360%{_pkgconfigdir}/xmlrpc.pc
361%{_pkgconfigdir}/xmlrpc_abyss.pc
362%{_pkgconfigdir}/xmlrpc_util.pc
363
364%files client
365%defattr(644,root,root,755)
366%attr(755,root,root) %{_libdir}/libxmlrpc_client.so.*.*
367%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_client.so.3
368
369%files client-devel
370%defattr(644,root,root,755)
371%attr(755,root,root) %{_libdir}/libxmlrpc_client.so
372%{_includedir}/xmlrpc-c/client*.h
373%{_includedir}/xmlrpc_client.h
374%{_pkgconfigdir}/xmlrpc_client.pc
375
376%files server
377%defattr(644,root,root,755)
f53f9028
JB
378%attr(755,root,root) %{_libdir}/libxmlrpc_server.so.*.*
379%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server.so.3
380%attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss.so.*.*
381%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_abyss.so.3
382%attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi.so.*.*
383%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_cgi.so.3
65007067 384
c7fe4465 385%files server-devel
65007067 386%defattr(644,root,root,755)
c7fe4465
JB
387%attr(755,root,root) %{_libdir}/libxmlrpc_server.so
388%attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss.so
389%attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi.so
390%{_includedir}/xmlrpc-c/server.h
391%{_includedir}/xmlrpc-c/server_abyss.h
392%{_includedir}/xmlrpc-c/server_cgi.h
06382d95
SS
393%{_includedir}/xmlrpc_abyss.h
394%{_includedir}/xmlrpc_cgi.h
c7fe4465
JB
395%{_includedir}/xmlrpc_server.h
396%{_pkgconfigdir}/xmlrpc_server.pc
397%{_pkgconfigdir}/xmlrpc_server_abyss.pc
398%{_pkgconfigdir}/xmlrpc_server_cgi.pc
65007067
ER
399
400%files c++
401%defattr(644,root,root,755)
f53f9028 402%attr(755,root,root) %{_libdir}/libxmlrpc++.so.*.*
3671422b 403%attr(755,root,root) %ghost %{_libdir}/libxmlrpc++.so.7
f53f9028 404%attr(755,root,root) %{_libdir}/libxmlrpc_cpp.so.*.*
3671422b 405%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_cpp.so.7
f53f9028 406%attr(755,root,root) %{_libdir}/libxmlrpc_packetsocket.so.*.*
3671422b 407%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_packetsocket.so.7
c7fe4465
JB
408
409%files c++-devel
410%defattr(644,root,root,755)
411%attr(755,root,root) %{_libdir}/libxmlrpc++.so
412%attr(755,root,root) %{_libdir}/libxmlrpc_cpp.so
413%attr(755,root,root) %{_libdir}/libxmlrpc_packetsocket.so
414%{_includedir}/xmlrpc-c/base.hpp
415%{_includedir}/xmlrpc-c/girerr.hpp
416%{_includedir}/xmlrpc-c/girmem.hpp
417%{_includedir}/xmlrpc-c/oldcppwrapper.hpp
418%{_includedir}/xmlrpc-c/packetsocket.hpp
419%{_includedir}/xmlrpc-c/registry.hpp
420%{_includedir}/xmlrpc-c/timeout.hpp
421%{_includedir}/xmlrpc-c/xml.hpp
422%{_includedir}/XmlRpcCpp.h
423%{_pkgconfigdir}/xmlrpc++.pc
424%{_pkgconfigdir}/xmlrpc_cpp.pc
425%{_pkgconfigdir}/xmlrpc_packetsocket.pc
426
427%files client++
428%defattr(644,root,root,755)
429%attr(755,root,root) %{_libdir}/libxmlrpc_client++.so.*.*
430%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_client++.so.7
431
432%files client++-devel
433%defattr(644,root,root,755)
434%attr(755,root,root) %{_libdir}/libxmlrpc_client++.so
435%{_includedir}/xmlrpc-c/client*.hpp
436%{_pkgconfigdir}/xmlrpc_client++.pc
437
438%files server++
439%defattr(644,root,root,755)
f53f9028 440%attr(755,root,root) %{_libdir}/libxmlrpc_server++.so.*.*
3671422b 441%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server++.so.7
f53f9028 442%attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss++.so.*.*
3671422b
JB
443%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_abyss++.so.7
444%attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi++.so.*.*
445%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_cgi++.so.7
f53f9028 446%attr(755,root,root) %{_libdir}/libxmlrpc_server_pstream++.so.*.*
3671422b 447%attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_pstream++.so.7
65007067 448
c7fe4465 449%files server++-devel
65007067 450%defattr(644,root,root,755)
c7fe4465
JB
451%attr(755,root,root) %{_libdir}/libxmlrpc_server++.so
452%attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss++.so
453%attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi++.so
454%attr(755,root,root) %{_libdir}/libxmlrpc_server_pstream++.so
455%{_includedir}/xmlrpc-c/server_abyss.hpp
456%{_includedir}/xmlrpc-c/server_pstream.hpp
457%{_pkgconfigdir}/xmlrpc_server++.pc
458%{_pkgconfigdir}/xmlrpc_server_abyss++.pc
459%{_pkgconfigdir}/xmlrpc_server_cgi++.pc
460%{_pkgconfigdir}/xmlrpc_server_pstream++.pc
65007067
ER
461
462%files apps
463%defattr(644,root,root,755)
a129e9aa 464%doc tools/xmlrpc/xmlrpc.html tools/xmlrpc_transport/xmlrpc_transport.html
65007067
ER
465%attr(755,root,root) %{_bindir}/xmlrpc
466%attr(755,root,root) %{_bindir}/xmlrpc_transport
467%attr(755,root,root) %{_bindir}/xml-rpc-api2cpp
b5bacc71 468%attr(755,root,root) %{_bindir}/xml-rpc-api2txt
65007067 469%attr(755,root,root) %{_bindir}/xmlrpc_cpp_proxy
cc22c62a 470%attr(755,root,root) %{_bindir}/xmlrpc_pstream
8e5ab56c
JB
471%{_mandir}/man1/xml-rpc-api2cpp.1*
472%{_mandir}/man1/xml-rpc-api2txt.1*
This page took 0.108177 seconds and 4 git commands to generate.