]>
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 |
7fb01deb JB |
62 | Requires: libbrotli-devel |
63 | Requires: libpsl-devel >= 0.20.0 | |
a3f5bf1b | 64 | Requires: libxml2-devel >= 1:2.6.31 |
7fb01deb JB |
65 | Requires: sqlite3-devel |
66 | Requires: sysprof-devel >= 3.38 | |
67 | Requires: zlib-devel | |
d06bd553 | 68 | |
69 | %description devel | |
70 | Header files, etc you can use to develop SOAP applications. | |
71 | ||
bf7695c3 JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe itp. Jednym słowem wszystko czego potrzebujesz aby | |
74 | samemu tworzyć sobie aplikacje korzystające z SOAP. | |
d06bd553 | 75 | |
76 | %package static | |
77 | Summary: SOAP static libraries | |
194b570f | 78 | Summary(pl.UTF-8): Biblioteki statyczne SOAP |
a3f5bf1b | 79 | Group: Development/Libraries |
10f59832 | 80 | Requires: %{name}-devel = %{version}-%{release} |
d06bd553 | 81 | |
82 | %description static | |
83 | SOAP static libraries. | |
84 | ||
bf7695c3 | 85 | %description static -l pl.UTF-8 |
d06bd553 | 86 | Biblioteki statyczne SOAP. |
87 | ||
e83255a4 MB |
88 | %package gnome |
89 | Summary: GNOME specific extensions to libsoup library | |
90 | Summary(pl.UTF-8): Rozszerzenia GNOME do biblioteki libsoup | |
91 | Group: Libraries | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | ||
94 | %description gnome | |
95 | GNOME specific extensions to libsoup library. | |
96 | ||
97 | %description gnome -l pl.UTF-8 | |
98 | Rozszerzenia GNOME do biblioteki libsoup. | |
99 | ||
100 | %package gnome-devel | |
101 | Summary: Header files for libsoup-gnome library | |
102 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsoup-gnome | |
103 | Group: Development/Libraries | |
104 | Requires: %{name}-devel = %{version}-%{release} | |
105 | Requires: %{name}-gnome = %{version}-%{release} | |
106 | ||
107 | %description gnome-devel | |
108 | Header files for libsoup-gnome library. | |
109 | ||
110 | %description gnome-devel -l pl.UTF-8 | |
111 | Pliki nagłówkowe biblioteki libsoup-gnome. | |
112 | ||
113 | %package gnome-static | |
114 | Summary: Static libsoup-gnome library | |
115 | Summary(pl.UTF-8): Statyczna biblioteka libsoup-gnome | |
116 | Group: Development/Libraries | |
117 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
118 | ||
119 | %description gnome-static | |
120 | Static libsoup-gnome library. | |
121 | ||
122 | %description gnome-static -l pl.UTF-8 | |
123 | Statyczna biblioteka libsoup-gnome. | |
124 | ||
87a350cd JB |
125 | %package apidocs |
126 | Summary: libsoup API documentation | |
127 | Summary(pl.UTF-8): Dokumentacja API libsoup | |
128 | Group: Documentation | |
129 | Requires: gtk-doc-common | |
8df3eb7d | 130 | BuildArch: noarch |
87a350cd JB |
131 | |
132 | %description apidocs | |
133 | libsoup API documentation. | |
134 | ||
135 | %description apidocs -l pl.UTF-8 | |
136 | Dokumentacja API libsoup. | |
137 | ||
086a6223 MB |
138 | %package -n vala-libsoup |
139 | Summary: libsoup API for Vala language | |
140 | Summary(pl.UTF-8): API libsoup dla języka Vala | |
141 | Group: Development/Libraries | |
142 | Requires: %{name}-devel = %{version}-%{release} | |
143 | Requires: vala | |
9e591aa0 | 144 | BuildArch: noarch |
086a6223 MB |
145 | |
146 | %description -n vala-libsoup | |
147 | libsoup API for Vala language. | |
148 | ||
149 | %description -n vala-libsoup -l pl.UTF-8 | |
150 | API libsoup dla języka Vala. | |
151 | ||
d06bd553 | 152 | %prep |
ab054c29 | 153 | %setup -q |
4d3f1f19 | 154 | %patch0 -p1 |
d06bd553 | 155 | |
156 | %build | |
cd391c0d | 157 | %meson build \ |
a7fb9f4c | 158 | %{?with_apidocs:-Dgtk_doc=true} \ |
4d3f1f19 | 159 | -Dntlm=enabled \ |
cd391c0d JB |
160 | -Dntlm_auth=/usr/bin/ntlm_auth \ |
161 | -Dtests=false \ | |
162 | -Dtls_check=false | |
163 | ||
164 | %ninja_build -C build | |
d06bd553 | 165 | |
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
cd391c0d | 169 | %ninja_install -C build |
9e60aec2 | 170 | |
c9a244c2 ŁK |
171 | %find_lang libsoup |
172 | ||
d06bd553 | 173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
176 | %post -p /sbin/ldconfig | |
177 | %postun -p /sbin/ldconfig | |
178 | ||
e83255a4 MB |
179 | %post gnome -p /sbin/ldconfig |
180 | %postun gnome -p /sbin/ldconfig | |
181 | ||
c9a244c2 | 182 | %files -f libsoup.lang |
d06bd553 | 183 | %defattr(644,root,root,755) |
cec580a4 | 184 | %doc AUTHORS NEWS README |
a3f5bf1b MB |
185 | %attr(755,root,root) %{_libdir}/libsoup-2.4.so.*.*.* |
186 | %attr(755,root,root) %ghost %{_libdir}/libsoup-2.4.so.1 | |
09867d81 | 187 | %{_libdir}/girepository-1.0/Soup-2.4.typelib |
ed63a57a | 188 | |
d06bd553 | 189 | %files devel |
190 | %defattr(644,root,root,755) | |
a3f5bf1b | 191 | %attr(755,root,root) %{_libdir}/libsoup-2.4.so |
a3f5bf1b MB |
192 | %{_includedir}/libsoup-2.4 |
193 | %{_pkgconfigdir}/libsoup-2.4.pc | |
09867d81 | 194 | %{_datadir}/gir-1.0/Soup-2.4.gir |
d06bd553 | 195 | |
196 | %files static | |
197 | %defattr(644,root,root,755) | |
a3f5bf1b | 198 | %{_libdir}/libsoup-2.4.a |
87a350cd | 199 | |
e83255a4 MB |
200 | %files gnome |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/libsoup-gnome-2.4.so.*.*.* | |
203 | %attr(755,root,root) %ghost %{_libdir}/libsoup-gnome-2.4.so.1 | |
09867d81 | 204 | %{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib |
e83255a4 MB |
205 | |
206 | %files gnome-devel | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_libdir}/libsoup-gnome-2.4.so | |
e83255a4 MB |
209 | %{_includedir}/libsoup-gnome-2.4 |
210 | %{_pkgconfigdir}/libsoup-gnome-2.4.pc | |
09867d81 | 211 | %{_datadir}/gir-1.0/SoupGNOME-2.4.gir |
e83255a4 MB |
212 | |
213 | %files gnome-static | |
214 | %defattr(644,root,root,755) | |
215 | %{_libdir}/libsoup-gnome-2.4.a | |
216 | ||
a7fb9f4c | 217 | %if %{with apidocs} |
87a350cd JB |
218 | %files apidocs |
219 | %defattr(644,root,root,755) | |
a3f5bf1b | 220 | %{_gtkdocdir}/libsoup-2.4 |
a7fb9f4c | 221 | %endif |
086a6223 MB |
222 | |
223 | %files -n vala-libsoup | |
224 | %defattr(644,root,root,755) | |
fb91c5fb | 225 | %{_datadir}/vala/vapi/libsoup-2.4.deps |
086a6223 | 226 | %{_datadir}/vala/vapi/libsoup-2.4.vapi |