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