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