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