9190393e8e7406bcfd89e216230d7904ab5fe955
[packages/libsoup3.git] / libsoup3.spec
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
8 Version:        2.99.8
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        https://download.gnome.org/sources/libsoup/2.99/libsoup-%{version}.tar.xz
13 # Source0-md5:  ed4fed0d5b3ff68ab43de7ebcbe6a009
14 Patch0:         %{name}-path-override.patch
15 URL:            https://wiki.gnome.org/Projects/libsoup
16 BuildRequires:  docbook-dtd412-xml
17 BuildRequires:  gettext-tools
18 BuildRequires:  glib2-devel >= 1:2.67.4
19 BuildRequires:  gobject-introspection-devel >= 0.10.0
20 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.20}
21 BuildRequires:  heimdal-devel
22 BuildRequires:  libbrotli-devel
23 BuildRequires:  libpsl-devel >= 0.20.0
24 BuildRequires:  libxml2-devel >= 1:2.6.31
25 BuildRequires:  meson >= 0.53
26 BuildRequires:  ninja >= 1.5
27 BuildRequires:  pkgconfig
28 BuildRequires:  rpm-build >= 4.6
29 BuildRequires:  rpmbuild(macros) >= 1.736
30 BuildRequires:  sqlite3-devel
31 BuildRequires:  sysprof-devel >= 3.38
32 BuildRequires:  tar >= 1:1.22
33 BuildRequires:  vala
34 BuildRequires:  xz
35 BuildRequires:  zlib-devel
36 Requires:       glib2 >= 1:2.67.4
37 Requires:       libpsl >= 0.20.0
38 # for TLS support
39 Suggests:       glib-networking
40 # ntlm_auth for NTLM support
41 Suggests:       samba-winbind
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
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.
47
48 %description -l pl.UTF-8
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.
52
53 %package devel
54 Summary:        Header files for libsoup 3 library
55 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libsoup 3
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58 Requires:       glib2-devel >= 1:2.67.4
59 Requires:       libbrotli-devel
60 Requires:       libpsl-devel >= 0.20.0
61 Requires:       libxml2-devel >= 1:2.6.31
62 Requires:       sqlite3-devel
63 Requires:       sysprof-devel >= 3.38
64 Requires:       zlib-devel
65
66 %description devel
67 Header files for libsoup 3 library.
68
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki libsoup 3.
71
72 %package static
73 Summary:        libsoup 3 static library
74 Summary(pl.UTF-8):      Biblioteka statyczna libsoup 3
75 Group:          Development/Libraries
76 Requires:       %{name}-devel = %{version}-%{release}
77
78 %description static
79 libsoup 3 static library.
80
81 %description static -l pl.UTF-8
82 Biblioteka statyczna libsoup 3.
83
84 %package apidocs
85 Summary:        libsoup API documentation
86 Summary(pl.UTF-8):      Dokumentacja API libsoup
87 Group:          Documentation
88 Requires:       gtk-doc-common
89 BuildArch:      noarch
90
91 %description apidocs
92 libsoup API documentation.
93
94 %description apidocs -l pl.UTF-8
95 Dokumentacja API libsoup.
96
97 %package -n vala-libsoup3
98 Summary:        libsoup 3 API for Vala language
99 Summary(pl.UTF-8):      API libsoup 3 dla języka Vala
100 Group:          Development/Libraries
101 Requires:       %{name}-devel = %{version}-%{release}
102 Requires:       vala
103 BuildArch:      noarch
104
105 %description -n vala-libsoup3
106 libsoup 3 API for Vala language.
107
108 %description -n vala-libsoup3 -l pl.UTF-8
109 API libsoup 3 dla języka Vala.
110
111 %prep
112 %setup -q -n libsoup-%{version}
113 %patch0 -p1
114
115 %build
116 %meson build \
117         %{?with_apidocs:-Dgtk_doc=true} \
118         -Dntlm=enabled \
119         -Dntlm_auth=/usr/bin/ntlm_auth \
120         -Dtests=false \
121         -Dtls_check=false
122
123 %ninja_build -C build
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127
128 %ninja_install -C build
129
130 %find_lang libsoup-3.0
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %post   -p /sbin/ldconfig
136 %postun -p /sbin/ldconfig
137
138 %files -f libsoup-3.0.lang
139 %defattr(644,root,root,755)
140 %doc AUTHORS NEWS README
141 %attr(755,root,root) %{_libdir}/libsoup-3.0.so.*.*.*
142 %attr(755,root,root) %ghost %{_libdir}/libsoup-3.0.so.0
143 %{_libdir}/girepository-1.0/Soup-3.0.typelib
144
145 %files devel
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/libsoup-3.0.so
148 %{_includedir}/libsoup-3.0
149 %{_pkgconfigdir}/libsoup-3.0.pc
150 %{_datadir}/gir-1.0/Soup-3.0.gir
151
152 %files static
153 %defattr(644,root,root,755)
154 %{_libdir}/libsoup-3.0.a
155
156 %if %{with apidocs}
157 %files apidocs
158 %defattr(644,root,root,755)
159 %{_gtkdocdir}/libsoup-3.0
160 %endif
161
162 %files -n vala-libsoup3
163 %defattr(644,root,root,755)
164 %{_datadir}/vala/vapi/libsoup-3.0.deps
165 %{_datadir}/vala/vapi/libsoup-3.0.vapi
This page took 0.037764 seconds and 2 git commands to generate.