- merged 2.64.1 from PLD
[packages/glib-networking.git] / glib-networking.spec
1 Summary:        Networking support for GLib
2 Summary(pl.UTF-8):      Obsługa sieci dla GLiba
3 Name:           glib-networking
4 Version:        2.64.1
5 Release:        1
6 License:        LGPL v2.1+ with OpenSSL exception
7 Group:          Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glib-networking/2.64/%{name}-%{version}.tar.xz
9 # Source0-md5:  eb17d5d358c4aca0c4bdd7b34a3f069f
10 URL:            http://www.gnome.org/
11 BuildRequires:  gcc >= 6:4.7
12 BuildRequires:  gettext-tools >= 0.19.4
13 BuildRequires:  glib2-devel >= 1:2.63.0
14 BuildRequires:  gnutls-devel >= 3.4.6
15 BuildRequires:  gsettings-desktop-schemas-devel
16 BuildRequires:  libproxy-devel >= 0.3.1
17 BuildRequires:  meson >= 0.50.0
18 BuildRequires:  ninja
19 BuildRequires:  pkgconfig
20 BuildRequires:  rpmbuild(macros) >= 1.727
21 BuildRequires:  tar >= 1:1.22
22 BuildRequires:  xz
23 Requires(post,postun):  glib2 >= 1:2.63.0
24 Requires:       ca-certificates
25 Requires:       glib2 >= 1:2.63.0
26 Requires:       gnutls-libs >= 3.4.6
27 Requires:       libproxy >= 0.3.1
28 Suggests:       gsettings-desktop-schemas
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This package contains modules that extend the networking support in
33 GIO. In particular, it contains a libproxy-based GProxyResolver
34 implementation and a gnutls-based GTlsConnection implementation.
35
36 %description -l pl.UTF-8
37 Ten pakiet zawiera moduły rozszerzające obsługę sieci w GIO, w
38 szczególności: implementację GProxyResolver opartą na libproxy oraz
39 implementację GTlsConnection opartą na gnutls.
40
41 %prep
42 %setup -q
43
44 %build
45 %meson build \
46         -Dca_certificates_path=/etc/certs/ca-certificates.crt \
47         -Dinstalled_tests=false
48
49 %meson_build -C build
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %meson_install -C build
55
56 %find_lang %{name}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 umask 022
63 %{_bindir}/gio-querymodules %{_libdir}/gio/modules || :
64
65 %postun
66 umask 022
67 %{_bindir}/gio-querymodules %{_libdir}/gio/modules || :
68
69 %files -f %{name}.lang
70 %defattr(644,root,root,755)
71 %doc LICENSE_EXCEPTION NEWS README
72 %attr(755,root,root) %{_libexecdir}/glib-pacrunner
73 %attr(755,root,root) %{_libdir}/gio/modules/libgiognutls.so
74 %attr(755,root,root) %{_libdir}/gio/modules/libgiolibproxy.so
75 %attr(755,root,root) %{_libdir}/gio/modules/libgiognomeproxy.so
76 %{_datadir}/dbus-1/services/org.gtk.GLib.PACRunner.service