]>
Commit | Line | Data |
---|---|---|
94b562a0 | 1 | Summary: XML-RPC C library - an implementation of the xmlrpc protocol |
b4876a5b | 2 | Summary(pl.UTF-8): Biblioteka XML-RPC C - implementacja protokołu xmlrpc |
94b562a0 | 3 | Name: xmlrpc-c |
1fa3cdfc | 4 | Version: 1.14.2 |
c315407d | 5 | Release: 1 |
f53f9028 | 6 | License: XML-RPC for C License (BSD-like) |
94b562a0 | 7 | Group: Libraries |
1fa3cdfc | 8 | Source0: %{name}-%{version}.tar.bz2 |
9 | # Source0-md5: cbd9675dc48819d5f745b775fca7d425 | |
94b562a0 | 10 | Patch0: %{name}-fastdep.patch |
cb36d9b7 | 11 | Patch1: %{name}-soname.patch |
6d2b4673 | 12 | Patch2: %{name}-cflags.patch |
f53f9028 JB |
13 | Patch3: %{name}-fixed-broken-format-string-modifiers-for-size_t-type.patch |
14 | Patch4: %{name}-use-proper-datatypes.patch | |
94b562a0 MK |
15 | URL: http://xmlrpc-c.sourceforge.net/ |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
698b9077 | 18 | BuildRequires: curl-devel |
dcde1631 | 19 | BuildRequires: libstdc++-devel |
f9858a0a | 20 | BuildRequires: libtool |
f53f9028 | 21 | BuildRequires: libxml2-devel >= 2.0 |
dcde1631 | 22 | BuildRequires: w3c-libwww-devel >= 5.2.8 |
94b562a0 MK |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
94b562a0 | 25 | %description |
d593da55 JB |
26 | XML-RPC C library - an implementation of the xmlrpc protocol. |
27 | ||
4b75e3e6 JR |
28 | %description -l pl.UTF-8 |
29 | Biblioteka XML-RPC C - implementacja protokołu xmlrpc. | |
94b562a0 MK |
30 | |
31 | %package devel | |
32 | Summary: Header files etc to develop XML-RPC applications | |
b4876a5b | 33 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji XML-RPC |
94b562a0 | 34 | Group: Development/Libraries |
f9858a0a | 35 | Requires: %{name} = %{version}-%{release} |
75d2158c | 36 | Requires: curl-devel |
f9858a0a | 37 | Requires: expat-devel |
dcde1631 | 38 | Requires: libstdc++-devel |
f53f9028 | 39 | Requires: libxml2-devel >= 2.0 |
f9858a0a | 40 | Requires: w3c-libwww-devel |
94b562a0 MK |
41 | |
42 | %description devel | |
43 | Header files etc needed to develop XML-RPC applications. | |
44 | ||
4b75e3e6 JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe potrzebne do tworzenia aplikacji używających XML-RPC. | |
94b562a0 MK |
47 | |
48 | %package static | |
49 | Summary: Static XML-RPC C libraries | |
b4876a5b | 50 | Summary(pl.UTF-8): Biblioteki statyczne XML-RPC C |
94b562a0 | 51 | Group: Development/Libraries |
f9858a0a | 52 | Requires: %{name}-devel = %{version}-%{release} |
94b562a0 MK |
53 | |
54 | %description static | |
55 | Static XML-RPC C libraries. | |
56 | ||
4b75e3e6 | 57 | %description static -l pl.UTF-8 |
94b562a0 MK |
58 | Biblioteki statyczne XML-RPC C. |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | %patch0 -p1 | |
f53f9028 | 63 | %patch1 -p1 |
6d2b4673 | 64 | %patch2 -p1 |
f53f9028 | 65 | %patch3 -p1 |
1fa3cdfc | 66 | %patch4 -p1 |
94b562a0 MK |
67 | |
68 | %build | |
94b562a0 | 69 | %{__libtoolize} |
f53f9028 JB |
70 | # hack: libtoolize removes config.* here |
71 | cp -f /usr/share/automake/{missing,config.*} . | |
94b562a0 MK |
72 | %{__aclocal} |
73 | %{__autoconf} | |
6d2b4673 JR |
74 | OPTCFLAGS="%{rpmcflags}" ; export OPTCFLAGS |
75 | OPTCXXFLAGS="%{rpmcxxflags}" ; export OPTCXXFLAGS | |
94b562a0 | 76 | %configure \ |
698b9077 JR |
77 | --enable-abyss-server \ |
78 | --enable-cgi-server \ | |
79 | --enable-cplusplus \ | |
39cffc41 | 80 | --enable-libxml2-backend \ |
698b9077 JR |
81 | --enable-curl-client \ |
82 | --enable-libwww-client \ | |
c315407d | 83 | --with-libwww-ssl \ |
698b9077 JR |
84 | --enable-abyss-threads |
85 | ||
b14247a6 | 86 | %{__make} -j1 |
94b562a0 MK |
87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
b14247a6 | 91 | %{__make} -j1 install \ |
c315407d PS |
92 | DESTDIR=$RPM_BUILD_ROOT \ |
93 | LIBINST_DIR=%{_libdir} | |
94b562a0 | 94 | |
f53f9028 JB |
95 | rm $RPM_BUILD_ROOT%{_includedir}/xmlrpc_server_w32httpsys.h \ |
96 | $RPM_BUILD_ROOT%{_includedir}/xmlrpc-c/server_w32httpsys.h | |
97 | ||
94b562a0 MK |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
e3bc354f | 101 | %post -p /sbin/ldconfig |
102 | %postun -p /sbin/ldconfig | |
94b562a0 MK |
103 | |
104 | %files | |
105 | %defattr(644,root,root,755) | |
f53f9028 JB |
106 | %doc README doc/{COPYING,CREDITS,HISTORY,SECURITY,TODO} |
107 | # C | |
108 | %attr(755,root,root) %{_libdir}/libxmlrpc-c.so.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc-c.so.3 | |
110 | %attr(755,root,root) %{_libdir}/libxmlrpc_abyss.so.*.* | |
111 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_abyss.so.3 | |
112 | %attr(755,root,root) %{_libdir}/libxmlrpc_client.so.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_client.so.3 | |
114 | %attr(755,root,root) %{_libdir}/libxmlrpc_server.so.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server.so.3 | |
116 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss.so.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_abyss.so.3 | |
118 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi.so.*.* | |
119 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_cgi.so.3 | |
120 | %attr(755,root,root) %{_libdir}/libxmlrpc_util.so.*.* | |
121 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_util.so.3 | |
122 | # C++ | |
123 | %attr(755,root,root) %{_libdir}/libxmlrpc++.so.*.* | |
124 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc++.so.4 | |
125 | %attr(755,root,root) %{_libdir}/libxmlrpc_client++.so.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_client++.so.4 | |
127 | %attr(755,root,root) %{_libdir}/libxmlrpc_cpp.so.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_cpp.so.4 | |
129 | %attr(755,root,root) %{_libdir}/libxmlrpc_packetsocket.so.*.* | |
130 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_packetsocket.so.4 | |
131 | %attr(755,root,root) %{_libdir}/libxmlrpc_server++.so.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server++.so.4 | |
133 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss++.so.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_abyss++.so.4 | |
135 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_pstream++.so.*.* | |
136 | %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_pstream++.so.4 | |
94b562a0 MK |
137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
f53f9028 JB |
140 | %doc doc/{DEVELOPING,TESTING} |
141 | %attr(755,root,root) %{_bindir}/xmlrpc-c-config | |
142 | # C | |
143 | %attr(755,root,root) %{_libdir}/libxmlrpc-c.so | |
144 | %attr(755,root,root) %{_libdir}/libxmlrpc_abyss.so | |
145 | %attr(755,root,root) %{_libdir}/libxmlrpc_client.so | |
146 | %attr(755,root,root) %{_libdir}/libxmlrpc_server.so | |
147 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss.so | |
148 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi.so | |
149 | %attr(755,root,root) %{_libdir}/libxmlrpc_util.so | |
150 | %dir %{_includedir}/xmlrpc-c | |
151 | %{_includedir}/xmlrpc-c/*.h | |
152 | # legacy | |
153 | %{_includedir}/xmlrpc*.h | |
154 | # C++ | |
155 | %attr(755,root,root) %{_libdir}/libxmlrpc++.so | |
156 | %attr(755,root,root) %{_libdir}/libxmlrpc_client++.so | |
157 | %attr(755,root,root) %{_libdir}/libxmlrpc_cpp.so | |
158 | %attr(755,root,root) %{_libdir}/libxmlrpc_packetsocket.so | |
159 | %attr(755,root,root) %{_libdir}/libxmlrpc_server++.so | |
160 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss++.so | |
161 | %attr(755,root,root) %{_libdir}/libxmlrpc_server_pstream++.so | |
162 | %{_includedir}/xmlrpc-c/*.hpp | |
163 | # legacy | |
164 | %{_includedir}/XmlRpcCpp.h | |
94b562a0 MK |
165 | |
166 | %files static | |
167 | %defattr(644,root,root,755) | |
f53f9028 JB |
168 | # C |
169 | %{_libdir}/libxmlrpc-c.a | |
170 | %{_libdir}/libxmlrpc_abyss.a | |
171 | %{_libdir}/libxmlrpc_client.a | |
172 | %{_libdir}/libxmlrpc_server.a | |
173 | %{_libdir}/libxmlrpc_server_abyss.a | |
174 | %{_libdir}/libxmlrpc_server_cgi.a | |
175 | %{_libdir}/libxmlrpc_util.a | |
176 | # C++ | |
177 | %{_libdir}/libxmlrpc++.a | |
178 | %{_libdir}/libxmlrpc_client++.a | |
179 | %{_libdir}/libxmlrpc_cpp.a | |
180 | %{_libdir}/libxmlrpc_packetsocket.a | |
181 | %{_libdir}/libxmlrpc_server++.a | |
182 | %{_libdir}/libxmlrpc_server_abyss++.a | |
183 | %{_libdir}/libxmlrpc_server_pstream++.a |