- from PLD with systemd stuff removed
[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.54.0
5 Release:        1
6 License:        LGPL v2
7 Group:          Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glib-networking/2.54/%{name}-%{version}.tar.xz
9 # Source0-md5:  45d2f8b650412c05e45b08aa78a3f735
10 URL:            http://www.gnome.org/
11 BuildRequires:  autoconf >= 2.65
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  gettext-tools >= 0.19.4
14 BuildRequires:  glib2-devel >= 1:2.46.0
15 BuildRequires:  gnutls-devel >= 3.0
16 BuildRequires:  gsettings-desktop-schemas-devel
17 BuildRequires:  libproxy-devel >= 0.3.1
18 BuildRequires:  libtool >= 2:2.0
19 BuildRequires:  p11-kit-devel >= 0.8
20 BuildRequires:  pkgconfig
21 BuildRequires:  tar >= 1:1.22
22 BuildRequires:  xz
23 Requires(post,postun):  glib2 >= 1:2.46.0
24 Requires:       ca-certificates
25 Requires:       glib2 >= 1:2.46.0
26 Requires:       gnutls >= 3.0
27 Requires:       gsettings-desktop-schemas
28 Requires:       libproxy >= 0.3.1
29 Requires:       p11-kit >= 0.8
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 This package contains modules that extend the networking support in
34 GIO. In particular, it contains a libproxy-based GProxyResolver
35 implementation and a gnutls-based GTlsConnection implementation.
36
37 %description -l pl.UTF-8
38 Ten pakiet zawiera moduły rozszerzające obsługę sieci w GIO, w
39 szczególności: implementację GProxyResolver opartą na libproxy oraz
40 implementację GTlsConnection opartą na gnutls.
41
42 %prep
43 %setup -q
44
45 %build
46 %{__libtoolize}
47 %{__aclocal}
48 %{__autoconf}
49 %{__autoheader}
50 %{__automake}
51 %configure \
52         --disable-silent-rules \
53         --disable-static \
54         --with-ca-certificates=/etc/certs/ca-certificates.crt
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.la
64
65 %find_lang %{name}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post
71 umask 022
72 %{_bindir}/gio-querymodules %{_libdir}/gio/modules || :
73
74 %postun
75 umask 022
76 %{_bindir}/gio-querymodules %{_libdir}/gio/modules || :
77
78 %files -f %{name}.lang
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog NEWS README
81 %attr(755,root,root) %{_libdir}/glib-pacrunner
82 %attr(755,root,root) %{_libdir}/gio/modules/libgiognutls.so
83 %attr(755,root,root) %{_libdir}/gio/modules/libgiolibproxy.so
84 %attr(755,root,root) %{_libdir}/gio/modules/libgiognomeproxy.so
85 %{_datadir}/dbus-1/services/org.gtk.GLib.PACRunner.service