]>
Commit | Line | Data |
---|---|---|
a7fb9f4c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
63e3996c JB |
5 | Summary: HTTP client/server library for GNOME |
6 | Summary(pl.UTF-8): Biblioteka klienta/serwera HTTP dla GNOME | |
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 | |
63e3996c JB |
45 | libsoup is an HTTP client/server library for GNOME. It uses GObjects |
46 | and the glib main loop, to integrate well with GNOME applications. | |
d06bd553 | 47 | |
bf7695c3 | 48 | %description -l pl.UTF-8 |
63e3996c JB |
49 | libsoup to biblioteka klienta/serwera HTTP dla GNOME. Wykorzystuje |
50 | typy GObject oraz pętlę główną glib, aby dobrze integrować się z | |
51 | aplikacjami GNOME. | |
d06bd553 | 52 | |
53 | %package devel | |
63e3996c JB |
54 | Summary: Header files for libsoup library |
55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsoup | |
a3f5bf1b | 56 | Group: Development/Libraries |
10f59832 | 57 | Requires: %{name} = %{version}-%{release} |
4b2343e8 | 58 | Requires: glib2-devel >= 1:2.58 |
7fb01deb JB |
59 | Requires: libbrotli-devel |
60 | Requires: libpsl-devel >= 0.20.0 | |
a3f5bf1b | 61 | Requires: libxml2-devel >= 1:2.6.31 |
7fb01deb JB |
62 | Requires: sqlite3-devel |
63 | Requires: sysprof-devel >= 3.38 | |
64 | Requires: zlib-devel | |
d06bd553 | 65 | |
66 | %description devel | |
63e3996c | 67 | Header files for libsoup library. |
d06bd553 | 68 | |
bf7695c3 | 69 | %description devel -l pl.UTF-8 |
63e3996c | 70 | Pliki nagłówkowe biblioteki libsoup. |
d06bd553 | 71 | |
72 | %package static | |
63e3996c JB |
73 | Summary: libsoup static library |
74 | Summary(pl.UTF-8): Biblioteka statyczna libsoup | |
a3f5bf1b | 75 | Group: Development/Libraries |
10f59832 | 76 | Requires: %{name}-devel = %{version}-%{release} |
d06bd553 | 77 | |
78 | %description static | |
63e3996c | 79 | libsoup static library. |
d06bd553 | 80 | |
bf7695c3 | 81 | %description static -l pl.UTF-8 |
63e3996c | 82 | Biblioteka statyczna libsoup. |
d06bd553 | 83 | |
e83255a4 MB |
84 | %package gnome |
85 | Summary: GNOME specific extensions to libsoup library | |
86 | Summary(pl.UTF-8): Rozszerzenia GNOME do biblioteki libsoup | |
87 | Group: Libraries | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | ||
90 | %description gnome | |
91 | GNOME specific extensions to libsoup library. | |
92 | ||
93 | %description gnome -l pl.UTF-8 | |
94 | Rozszerzenia GNOME do biblioteki libsoup. | |
95 | ||
96 | %package gnome-devel | |
97 | Summary: Header files for libsoup-gnome library | |
98 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsoup-gnome | |
99 | Group: Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | Requires: %{name}-gnome = %{version}-%{release} | |
102 | ||
103 | %description gnome-devel | |
104 | Header files for libsoup-gnome library. | |
105 | ||
106 | %description gnome-devel -l pl.UTF-8 | |
107 | Pliki nagłówkowe biblioteki libsoup-gnome. | |
108 | ||
109 | %package gnome-static | |
110 | Summary: Static libsoup-gnome library | |
111 | Summary(pl.UTF-8): Statyczna biblioteka libsoup-gnome | |
112 | Group: Development/Libraries | |
113 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
114 | ||
115 | %description gnome-static | |
116 | Static libsoup-gnome library. | |
117 | ||
118 | %description gnome-static -l pl.UTF-8 | |
119 | Statyczna biblioteka libsoup-gnome. | |
120 | ||
87a350cd JB |
121 | %package apidocs |
122 | Summary: libsoup API documentation | |
123 | Summary(pl.UTF-8): Dokumentacja API libsoup | |
124 | Group: Documentation | |
125 | Requires: gtk-doc-common | |
8df3eb7d | 126 | BuildArch: noarch |
87a350cd JB |
127 | |
128 | %description apidocs | |
129 | libsoup API documentation. | |
130 | ||
131 | %description apidocs -l pl.UTF-8 | |
132 | Dokumentacja API libsoup. | |
133 | ||
086a6223 MB |
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 | |
9e591aa0 | 140 | BuildArch: noarch |
086a6223 MB |
141 | |
142 | %description -n vala-libsoup | |
143 | libsoup API for Vala language. | |
144 | ||
145 | %description -n vala-libsoup -l pl.UTF-8 | |
146 | API libsoup dla języka Vala. | |
147 | ||
d06bd553 | 148 | %prep |
ab054c29 | 149 | %setup -q |
4d3f1f19 | 150 | %patch0 -p1 |
d06bd553 | 151 | |
152 | %build | |
cd391c0d | 153 | %meson build \ |
a7fb9f4c | 154 | %{?with_apidocs:-Dgtk_doc=true} \ |
4d3f1f19 | 155 | -Dntlm=enabled \ |
cd391c0d JB |
156 | -Dntlm_auth=/usr/bin/ntlm_auth \ |
157 | -Dtests=false \ | |
158 | -Dtls_check=false | |
159 | ||
160 | %ninja_build -C build | |
d06bd553 | 161 | |
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
cd391c0d | 165 | %ninja_install -C build |
9e60aec2 | 166 | |
c9a244c2 ŁK |
167 | %find_lang libsoup |
168 | ||
d06bd553 | 169 | %clean |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %post -p /sbin/ldconfig | |
173 | %postun -p /sbin/ldconfig | |
174 | ||
e83255a4 MB |
175 | %post gnome -p /sbin/ldconfig |
176 | %postun gnome -p /sbin/ldconfig | |
177 | ||
c9a244c2 | 178 | %files -f libsoup.lang |
d06bd553 | 179 | %defattr(644,root,root,755) |
cec580a4 | 180 | %doc AUTHORS NEWS README |
a3f5bf1b MB |
181 | %attr(755,root,root) %{_libdir}/libsoup-2.4.so.*.*.* |
182 | %attr(755,root,root) %ghost %{_libdir}/libsoup-2.4.so.1 | |
09867d81 | 183 | %{_libdir}/girepository-1.0/Soup-2.4.typelib |
ed63a57a | 184 | |
d06bd553 | 185 | %files devel |
186 | %defattr(644,root,root,755) | |
a3f5bf1b | 187 | %attr(755,root,root) %{_libdir}/libsoup-2.4.so |
a3f5bf1b MB |
188 | %{_includedir}/libsoup-2.4 |
189 | %{_pkgconfigdir}/libsoup-2.4.pc | |
09867d81 | 190 | %{_datadir}/gir-1.0/Soup-2.4.gir |
d06bd553 | 191 | |
192 | %files static | |
193 | %defattr(644,root,root,755) | |
a3f5bf1b | 194 | %{_libdir}/libsoup-2.4.a |
87a350cd | 195 | |
e83255a4 MB |
196 | %files gnome |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_libdir}/libsoup-gnome-2.4.so.*.*.* | |
199 | %attr(755,root,root) %ghost %{_libdir}/libsoup-gnome-2.4.so.1 | |
09867d81 | 200 | %{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib |
e83255a4 MB |
201 | |
202 | %files gnome-devel | |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_libdir}/libsoup-gnome-2.4.so | |
e83255a4 MB |
205 | %{_includedir}/libsoup-gnome-2.4 |
206 | %{_pkgconfigdir}/libsoup-gnome-2.4.pc | |
09867d81 | 207 | %{_datadir}/gir-1.0/SoupGNOME-2.4.gir |
e83255a4 MB |
208 | |
209 | %files gnome-static | |
210 | %defattr(644,root,root,755) | |
211 | %{_libdir}/libsoup-gnome-2.4.a | |
212 | ||
a7fb9f4c | 213 | %if %{with apidocs} |
87a350cd JB |
214 | %files apidocs |
215 | %defattr(644,root,root,755) | |
a3f5bf1b | 216 | %{_gtkdocdir}/libsoup-2.4 |
a7fb9f4c | 217 | %endif |
086a6223 MB |
218 | |
219 | %files -n vala-libsoup | |
220 | %defattr(644,root,root,755) | |
fb91c5fb | 221 | %{_datadir}/vala/vapi/libsoup-2.4.deps |
086a6223 | 222 | %{_datadir}/vala/vapi/libsoup-2.4.vapi |