]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
5 | Summary: SOAP (Simple Object Access Protocol) implementation in C | |
6 | Summary(pl.UTF-8): Implementacja w C SOAP (Simple Object Access Protocol) | |
7 | Name: libsoup | |
8 | Version: 2.72.0 | |
9 | Release: 1 | |
10 | License: LGPL v2+ | |
11 | Group: Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.72/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 859380b76b51fb55d720daea3c76c945 | |
14 | Patch0: %{name}-path-override.patch | |
15 | URL: https://wiki.gnome.org/Projects/libsoup | |
16 | BuildRequires: docbook-dtd412-xml | |
17 | BuildRequires: gettext-tools | |
18 | BuildRequires: glib2-devel >= 1:2.58 | |
19 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.20} | |
21 | BuildRequires: heimdal-devel | |
22 | BuildRequires: libbrotli-devel | |
23 | BuildRequires: libpsl-devel >= 0.20.0 | |
24 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
25 | BuildRequires: meson >= 0.50 | |
26 | BuildRequires: ninja >= 1.5 | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: rpmbuild(macros) >= 1.736 | |
29 | BuildRequires: sqlite3-devel | |
30 | BuildRequires: sysprof-devel >= 3.38 | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: vala | |
33 | BuildRequires: xz | |
34 | BuildRequires: zlib-devel | |
35 | Requires: glib2 >= 1:2.58 | |
36 | Requires: libpsl >= 0.20.0 | |
37 | # for TLS support | |
38 | Suggests: glib-networking | |
39 | # ntlm_auth for NTLM support | |
40 | Suggests: samba-winbind | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | It provides an queued asynchronous callback-based mechanism for | |
45 | sending and servicing SOAP requests, and a WSDL (Web Service | |
46 | Definition Language) to C compiler which generates client stubs and | |
47 | server skeletons for easily calling and implementing SOAP methods. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Pakiet dostarcza interfejs kolejkowalnego, asynchronicznego mechanizmu | |
51 | do wysyłania i serwowania żądań SOAP oraz WSDL (Web Service Definition | |
52 | Language) dla kompilatora C, który generuje klienckie stub i szkielety | |
53 | serwerów dla łatwego wywoływania i implementowania metod SOAP. | |
54 | ||
55 | %package devel | |
56 | Summary: Include files etc to develop SOAP applications | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe, dokumentacja dla SOAP | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: glib2-devel >= 1:2.58 | |
61 | Requires: libxml2-devel >= 1:2.6.31 | |
62 | ||
63 | %description devel | |
64 | Header files, etc you can use to develop SOAP applications. | |
65 | ||
66 | %description devel -l pl.UTF-8 | |
67 | Pliki nagłówkowe itp. Jednym słowem wszystko czego potrzebujesz aby | |
68 | samemu tworzyć sobie aplikacje korzystające z SOAP. | |
69 | ||
70 | %package static | |
71 | Summary: SOAP static libraries | |
72 | Summary(pl.UTF-8): Biblioteki statyczne SOAP | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | SOAP static libraries. | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Biblioteki statyczne SOAP. | |
81 | ||
82 | %package gnome | |
83 | Summary: GNOME specific extensions to libsoup library | |
84 | Summary(pl.UTF-8): Rozszerzenia GNOME do biblioteki libsoup | |
85 | Group: Libraries | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description gnome | |
89 | GNOME specific extensions to libsoup library. | |
90 | ||
91 | %description gnome -l pl.UTF-8 | |
92 | Rozszerzenia GNOME do biblioteki libsoup. | |
93 | ||
94 | %package gnome-devel | |
95 | Summary: Header files for libsoup-gnome library | |
96 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsoup-gnome | |
97 | Group: Development/Libraries | |
98 | Requires: %{name}-devel = %{version}-%{release} | |
99 | Requires: %{name}-gnome = %{version}-%{release} | |
100 | ||
101 | %description gnome-devel | |
102 | Header files for libsoup-gnome library. | |
103 | ||
104 | %description gnome-devel -l pl.UTF-8 | |
105 | Pliki nagłówkowe biblioteki libsoup-gnome. | |
106 | ||
107 | %package gnome-static | |
108 | Summary: Static libsoup-gnome library | |
109 | Summary(pl.UTF-8): Statyczna biblioteka libsoup-gnome | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
112 | ||
113 | %description gnome-static | |
114 | Static libsoup-gnome library. | |
115 | ||
116 | %description gnome-static -l pl.UTF-8 | |
117 | Statyczna biblioteka libsoup-gnome. | |
118 | ||
119 | %package apidocs | |
120 | Summary: libsoup API documentation | |
121 | Summary(pl.UTF-8): Dokumentacja API libsoup | |
122 | Group: Documentation | |
123 | Requires: gtk-doc-common | |
124 | %if "%{_rpmversion}" >= "4.6" | |
125 | BuildArch: noarch | |
126 | %endif | |
127 | ||
128 | %description apidocs | |
129 | libsoup API documentation. | |
130 | ||
131 | %description apidocs -l pl.UTF-8 | |
132 | Dokumentacja API libsoup. | |
133 | ||
134 | %package -n vala-libsoup | |
135 | Summary: libsoup API for Vala language | |
136 | Summary(pl.UTF-8): API libsoup dla języka Vala | |
137 | Group: Development/Libraries | |
138 | Requires: %{name}-devel = %{version}-%{release} | |
139 | Requires: vala | |
140 | %if "%{_rpmversion}" >= "4.6" | |
141 | BuildArch: noarch | |
142 | %endif | |
143 | ||
144 | %description -n vala-libsoup | |
145 | libsoup API for Vala language. | |
146 | ||
147 | %description -n vala-libsoup -l pl.UTF-8 | |
148 | API libsoup dla języka Vala. | |
149 | ||
150 | %prep | |
151 | %setup -q | |
152 | %patch0 -p1 | |
153 | ||
154 | %build | |
155 | %meson build \ | |
156 | %{?with_apidocs:-Dgtk_doc=true} \ | |
157 | -Dntlm=enabled \ | |
158 | -Dntlm_auth=/usr/bin/ntlm_auth \ | |
159 | -Dtests=false \ | |
160 | -Dtls_check=false | |
161 | ||
162 | %ninja_build -C build | |
163 | ||
164 | %install | |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | ||
167 | %ninja_install -C build | |
168 | ||
169 | %find_lang libsoup | |
170 | ||
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post -p /sbin/ldconfig | |
175 | %postun -p /sbin/ldconfig | |
176 | ||
177 | %post gnome -p /sbin/ldconfig | |
178 | %postun gnome -p /sbin/ldconfig | |
179 | ||
180 | %files -f libsoup.lang | |
181 | %defattr(644,root,root,755) | |
182 | %doc AUTHORS NEWS README | |
183 | %attr(755,root,root) %{_libdir}/libsoup-2.4.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libsoup-2.4.so.1 | |
185 | %{_libdir}/girepository-1.0/Soup-2.4.typelib | |
186 | ||
187 | %files devel | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_libdir}/libsoup-2.4.so | |
190 | %{_includedir}/libsoup-2.4 | |
191 | %{_pkgconfigdir}/libsoup-2.4.pc | |
192 | %{_datadir}/gir-1.0/Soup-2.4.gir | |
193 | ||
194 | %files static | |
195 | %defattr(644,root,root,755) | |
196 | %{_libdir}/libsoup-2.4.a | |
197 | ||
198 | %files gnome | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_libdir}/libsoup-gnome-2.4.so.*.*.* | |
201 | %attr(755,root,root) %ghost %{_libdir}/libsoup-gnome-2.4.so.1 | |
202 | %{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib | |
203 | ||
204 | %files gnome-devel | |
205 | %defattr(644,root,root,755) | |
206 | %attr(755,root,root) %{_libdir}/libsoup-gnome-2.4.so | |
207 | %{_includedir}/libsoup-gnome-2.4 | |
208 | %{_pkgconfigdir}/libsoup-gnome-2.4.pc | |
209 | %{_datadir}/gir-1.0/SoupGNOME-2.4.gir | |
210 | ||
211 | %files gnome-static | |
212 | %defattr(644,root,root,755) | |
213 | %{_libdir}/libsoup-gnome-2.4.a | |
214 | ||
215 | %if %{with apidocs} | |
216 | %files apidocs | |
217 | %defattr(644,root,root,755) | |
218 | %{_gtkdocdir}/libsoup-2.4 | |
219 | %endif | |
220 | ||
221 | %files -n vala-libsoup | |
222 | %defattr(644,root,root,755) | |
223 | %{_datadir}/vala/vapi/libsoup-2.4.deps | |
224 | %{_datadir}/vala/vapi/libsoup-2.4.vapi |