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