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