%global _privatelibs libpxbackend-1.0[.]so.* %global __provides_exclude ^(%{_privatelibs})$ %global __requires_exclude ^(%{_privatelibs})$ Name: libproxy Version: 0.5.3 Release: %autorelease Summary: A library handling all the details of proxy configuration License: LGPL-2.1-or-later URL: https://libproxy.github.io/libproxy/ Source0: https://github.com/libproxy/%{name}/archive/refs/tags/%{version}.tar.gz # https://bugzilla.redhat.com/show_bug.cgi?id=2247508 # https://github.com/libproxy/libproxy/pull/259 Patch0: libproxy-0.5.3-library-version-symlink.patch BuildRequires: gcc BuildRequires: meson BuildRequires: /usr/bin/gi-docgen BuildRequires: /usr/bin/vapigen BuildRequires: pkgconfig(duktape) BuildRequires: pkgconfig(gio-2.0) >= 2.71.3 BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(libcurl) BuildRequires: python3-devel # For config-gnome BuildRequires: pkgconfig(gsettings-desktop-schemas) # Folded into main package in 0.5.0. Remove in F41. Provides: python3-%{name} = %{version}-%{release} Provides: %{name}-pac = %{version}-%{release} # Obsoletes of subpackages prior to 0.5.0 rewrite. Remove in F41. Provides: %{name}-gnome = %{version}-%{release} Obsoletes: %{name}-gnome < %{version}-%{release} Provides: %{name}-kde = %{version}-%{release} Obsoletes: %{name}-kde < %{version}-%{release} Provides: %{name}-mozjs = %{version}-%{release} Obsoletes: %{name}-mozjs < %{version}-%{release} Provides: %{name}-pacrunner = %{version}-%{release} Obsoletes: %{name}-pacrunner < %{version}-%{release} Provides: %{name}-webkitgtk4 = %{version}-%{release} Obsoletes: %{name}-webkitgtk4 < %{version}-%{release} Provides: %{name}-duktape = %{version}-%{release} Obsoletes: %{name}-duktape < %{version}-%{release} %description libproxy offers the following features: * extremely small core footprint * minimal dependencies within libproxy core * only 4 functions in the stable-ish external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios * a sublime sense of joy and accomplishment %package bin Summary: Binary to test %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description bin The %{name}-bin package contains the proxy binary for %{name} %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 %build %meson \ -Dconfig-gnome=true \ -Dconfig-kde=true \ -Dconfig-osx=false \ -Dconfig-windows=false \ -Dintrospection=true \ -Dtests=true \ -Dvapi=true %meson_build %install %meson_install %check %meson_test %ldconfig_scriptlets %files %doc CHANGELOG.md README.md %license COPYING %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/Libproxy-1.0.typelib %{_libdir}/libproxy.so.* %dir %{_libdir}/libproxy %{_libdir}/libproxy/libpxbackend-1.0.so %files bin %{_bindir}/proxy %{_mandir}/man8/proxy.8* %files devel %{_docdir}/libproxy-1.0/ %{_includedir}/libproxy/ %{_libdir}/libproxy.so %{_libdir}/pkgconfig/libproxy-1.0.pc %dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/Libproxy-1.0.gir %dir %{_datadir}/vala/vapi/ %{_datadir}/vala/vapi/libproxy-1.0.deps %{_datadir}/vala/vapi/libproxy-1.0.vapi %changelog %autochangelog