glib-networking/glib-networking.spec

90 lines
2.3 KiB
RPMSpec
Raw Normal View History

2022-09-06 09:26:10 +00:00
%define glib2_version 2.73.3
2021-02-18 19:07:48 +00:00
%global tarball_version %%(echo %{version} | tr '~' '.')
2013-02-20 23:20:12 +00:00
# Not yet sure whether to have libproxy in el10, but assume yes for now.
2021-06-07 15:21:49 +00:00
%global with_libproxy 1
2010-10-08 22:20:04 +00:00
Name: glib-networking
2023-03-18 10:12:11 +00:00
Version: 2.76.0
Release: %autorelease
2011-01-17 16:43:03 +00:00
Summary: Networking support for GLib
2010-10-08 22:20:04 +00:00
License: LGPLv2+
2022-03-23 08:43:12 +00:00
URL: https://gitlab.gnome.org/GNOME/glib-networking
2023-02-07 18:29:20 +00:00
Source0: https://download.gnome.org/sources/glib-networking/2.76/%{name}-%{tarball_version}.tar.xz
2021-06-07 15:21:49 +00:00
BuildRequires: ca-certificates
BuildRequires: gcc
2021-06-07 15:21:49 +00:00
BuildRequires: gettext
BuildRequires: meson
2019-08-12 11:20:51 +00:00
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gio-2.0)
2019-08-12 11:20:51 +00:00
BuildRequires: pkgconfig(gnutls)
2021-06-07 15:21:49 +00:00
BuildRequires: pkgconfig(gsettings-desktop-schemas)
%if 0%{?with_libproxy}
BuildRequires: pkgconfig(libproxy-1.0)
%endif
2019-08-12 11:20:51 +00:00
BuildRequires: pkgconfig(p11-kit-1)
BuildRequires: systemd-rpm-macros
2010-10-08 22:20:04 +00:00
2013-02-20 23:20:12 +00:00
Requires: ca-certificates
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: gsettings-desktop-schemas
# For glib-pacrunner
Recommends: libproxy-duktape
2010-10-08 22:20:04 +00:00
%description
2011-04-27 16:18:02 +00:00
This package contains modules that extend the networking support in
GIO. In particular, it contains libproxy- and GSettings-based
GProxyResolver implementations and a gnutls-based GTlsConnection
implementation.
2010-10-08 22:20:04 +00:00
2014-09-04 16:09:51 +00:00
%package tests
Summary: Tests for the glib-networking package
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
The glib-networking-tests package contains tests that can be used to verify
the functionality of the installed glib-networking package.
2010-10-08 22:20:04 +00:00
%prep
2021-02-18 19:07:48 +00:00
%autosetup -p1 -n %{name}-%{tarball_version}
2010-10-08 22:20:04 +00:00
%build
2021-06-07 15:21:49 +00:00
%meson \
%if !0%{?with_libproxy}
-Dlibproxy=disabled \
2023-02-07 18:29:20 +00:00
-Denvironment_proxy=enabled \
%endif
2021-06-07 15:21:49 +00:00
-Dinstalled_tests=true \
%nil
%meson_build
2010-10-08 22:20:04 +00:00
%install
%meson_install
2010-10-08 22:20:04 +00:00
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%doc NEWS README
2011-04-27 16:18:02 +00:00
%{_libdir}/gio/modules/libgiognomeproxy.so
2011-01-17 16:43:03 +00:00
%{_libdir}/gio/modules/libgiognutls.so
2021-06-07 15:21:49 +00:00
%if 0%{?with_libproxy}
%{_libdir}/gio/modules/libgiolibproxy.so
2011-03-22 12:51:39 +00:00
%{_libexecdir}/glib-pacrunner
%{_datadir}/dbus-1/services/org.gtk.GLib.PACRunner.service
2015-10-28 07:23:28 +00:00
%{_userunitdir}/glib-pacrunner.service
2023-02-13 19:08:57 +00:00
%else
%{_libdir}/gio/modules/libgioenvironmentproxy.so
2021-06-07 15:21:49 +00:00
%endif
2010-10-08 22:20:04 +00:00
2014-09-04 16:09:51 +00:00
%files tests
%{_libexecdir}/installed-tests/glib-networking
%{_datadir}/installed-tests
2010-10-08 22:20:04 +00:00
%changelog
%autochangelog