]>
Commit | Line | Data |
---|---|---|
56e68050 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
5 | Summary: HTTP client/server library for GNOME | |
6 | Summary(pl.UTF-8): Biblioteka klienta/serwera HTTP dla GNOME | |
7 | Name: libsoup3 | |
2fabc66a | 8 | Version: 3.4.3 |
25c7e031 | 9 | Release: 1 |
56e68050 JB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
4a1d3fca | 12 | Source0: https://download.gnome.org/sources/libsoup/3.4/libsoup-%{version}.tar.xz |
2fabc66a | 13 | # Source0-md5: 3a289bd1f36bb6c326ac5283b26eb2b5 |
998c57d2 JB |
14 | # from libsoup 3.0.0 (waiting for pygobject3 release containing this file) |
15 | Source1: Soup.py | |
56e68050 JB |
16 | Patch0: %{name}-path-override.patch |
17 | URL: https://wiki.gnome.org/Projects/libsoup | |
18 | BuildRequires: docbook-dtd412-xml | |
19 | BuildRequires: gettext-tools | |
3791869f | 20 | BuildRequires: glib2-devel >= 1:2.69.1 |
56e68050 JB |
21 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
22 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.20} | |
23 | BuildRequires: heimdal-devel | |
24 | BuildRequires: libbrotli-devel | |
25 | BuildRequires: libpsl-devel >= 0.20.0 | |
26 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
8faab5f2 | 27 | BuildRequires: meson >= 0.54 |
2db19edf | 28 | BuildRequires: nghttp2-devel >= 1.50.0 |
56e68050 JB |
29 | BuildRequires: ninja >= 1.5 |
30 | BuildRequires: pkgconfig | |
f7616c3d | 31 | BuildRequires: python3 |
56e68050 JB |
32 | BuildRequires: rpm-build >= 4.6 |
33 | BuildRequires: rpmbuild(macros) >= 1.736 | |
34 | BuildRequires: sqlite3-devel | |
35 | BuildRequires: sysprof-devel >= 3.38 | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: vala | |
38 | BuildRequires: xz | |
39 | BuildRequires: zlib-devel | |
3791869f | 40 | Requires: glib2 >= 1:2.69.1 |
56e68050 | 41 | Requires: libpsl >= 0.20.0 |
2db19edf | 42 | Requires: nghttp2-libs >= 1.50.0 |
56e68050 JB |
43 | # for TLS support |
44 | Suggests: glib-networking | |
45 | # ntlm_auth for NTLM support | |
46 | Suggests: samba-winbind | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | libsoup is an HTTP client/server library for GNOME. It uses GObjects | |
51 | and the glib main loop, to integrate well with GNOME applications. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | libsoup to biblioteka klienta/serwera HTTP dla GNOME. Wykorzystuje | |
55 | typy GObject oraz pętlę główną glib, aby dobrze integrować się z | |
56 | aplikacjami GNOME. | |
57 | ||
58 | %package devel | |
59 | Summary: Header files for libsoup 3 library | |
60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsoup 3 | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
3791869f | 63 | Requires: glib2-devel >= 1:2.69.1 |
56e68050 JB |
64 | Requires: libbrotli-devel |
65 | Requires: libpsl-devel >= 0.20.0 | |
66 | Requires: libxml2-devel >= 1:2.6.31 | |
67 | Requires: sqlite3-devel | |
68 | Requires: sysprof-devel >= 3.38 | |
69 | Requires: zlib-devel | |
70 | ||
71 | %description devel | |
72 | Header files for libsoup 3 library. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki libsoup 3. | |
76 | ||
77 | %package static | |
78 | Summary: libsoup 3 static library | |
79 | Summary(pl.UTF-8): Biblioteka statyczna libsoup 3 | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
84 | libsoup 3 static library. | |
85 | ||
86 | %description static -l pl.UTF-8 | |
87 | Biblioteka statyczna libsoup 3. | |
88 | ||
89 | %package apidocs | |
90 | Summary: libsoup API documentation | |
91 | Summary(pl.UTF-8): Dokumentacja API libsoup | |
92 | Group: Documentation | |
93 | Requires: gtk-doc-common | |
94 | BuildArch: noarch | |
95 | ||
96 | %description apidocs | |
97 | libsoup API documentation. | |
98 | ||
99 | %description apidocs -l pl.UTF-8 | |
100 | Dokumentacja API libsoup. | |
101 | ||
3791869f JB |
102 | %package -n python3-libsoup3 |
103 | Summary: Python 3.x interface for libsoup 3 library | |
104 | Summary(pl.UTF-8): Interfejs Pythona 3.x do biblioteki libsoup 3 | |
105 | Group: Libraries/Python | |
106 | Requires: %{name} = %{version}-%{release} | |
107 | Requires: python3-pygobject3 >= 3.0 | |
108 | ||
109 | %description -n python3-libsoup3 | |
110 | Python 3.x interface for libsoup 3 library. | |
111 | ||
112 | %description -n python3-libsoup3 -l pl.UTF-8 | |
113 | Interfejs Pythona 3.x do biblioteki libsoup 3. | |
114 | ||
56e68050 JB |
115 | %package -n vala-libsoup3 |
116 | Summary: libsoup 3 API for Vala language | |
117 | Summary(pl.UTF-8): API libsoup 3 dla języka Vala | |
118 | Group: Development/Libraries | |
119 | Requires: %{name}-devel = %{version}-%{release} | |
120 | Requires: vala | |
121 | BuildArch: noarch | |
122 | ||
123 | %description -n vala-libsoup3 | |
124 | libsoup 3 API for Vala language. | |
125 | ||
126 | %description -n vala-libsoup3 -l pl.UTF-8 | |
127 | API libsoup 3 dla języka Vala. | |
128 | ||
129 | %prep | |
130 | %setup -q -n libsoup-%{version} | |
131 | %patch0 -p1 | |
132 | ||
133 | %build | |
134 | %meson build \ | |
8faab5f2 | 135 | %{!?with_apidocs:-Ddocs=disabled} \ |
56e68050 JB |
136 | -Dntlm=enabled \ |
137 | -Dntlm_auth=/usr/bin/ntlm_auth \ | |
138 | -Dtests=false \ | |
139 | -Dtls_check=false | |
140 | ||
141 | %ninja_build -C build | |
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %ninja_install -C build | |
147 | ||
998c57d2 JB |
148 | install -d $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides |
149 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides/Soup.py | |
150 | ||
8faab5f2 JB |
151 | %if %{with apidocs} |
152 | # FIXME: where to package gi-docgen generated docs? | |
153 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
154 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/libsoup-3.0 $RPM_BUILD_ROOT%{_gtkdocdir} | |
155 | %endif | |
156 | ||
56e68050 JB |
157 | %find_lang libsoup-3.0 |
158 | ||
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
162 | %post -p /sbin/ldconfig | |
163 | %postun -p /sbin/ldconfig | |
164 | ||
165 | %files -f libsoup-3.0.lang | |
166 | %defattr(644,root,root,755) | |
167 | %doc AUTHORS NEWS README | |
168 | %attr(755,root,root) %{_libdir}/libsoup-3.0.so.*.*.* | |
169 | %attr(755,root,root) %ghost %{_libdir}/libsoup-3.0.so.0 | |
170 | %{_libdir}/girepository-1.0/Soup-3.0.typelib | |
171 | ||
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_libdir}/libsoup-3.0.so | |
175 | %{_includedir}/libsoup-3.0 | |
176 | %{_pkgconfigdir}/libsoup-3.0.pc | |
177 | %{_datadir}/gir-1.0/Soup-3.0.gir | |
178 | ||
179 | %files static | |
180 | %defattr(644,root,root,755) | |
181 | %{_libdir}/libsoup-3.0.a | |
182 | ||
183 | %if %{with apidocs} | |
184 | %files apidocs | |
185 | %defattr(644,root,root,755) | |
186 | %{_gtkdocdir}/libsoup-3.0 | |
187 | %endif | |
188 | ||
3791869f JB |
189 | %files -n python3-libsoup3 |
190 | %defattr(644,root,root,755) | |
191 | %{py3_sitedir}/gi/overrides/Soup.py | |
192 | ||
56e68050 JB |
193 | %files -n vala-libsoup3 |
194 | %defattr(644,root,root,755) | |
195 | %{_datadir}/vala/vapi/libsoup-3.0.deps | |
196 | %{_datadir}/vala/vapi/libsoup-3.0.vapi |