libproxy/libproxy.spec

125 lines
3.3 KiB
RPMSpec
Raw Permalink Normal View History

%global _privatelibs libpxbackend-1.0[.]so.*
%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$
2009-01-23 15:09:44 +00:00
Name: libproxy
2024-04-18 17:55:59 +00:00
Version: 0.5.5
Release: %autorelease
2009-01-23 15:09:44 +00:00
Summary: A library handling all the details of proxy configuration
License: LGPL-2.1-or-later
2016-02-29 11:27:32 +00:00
URL: https://libproxy.github.io/libproxy/
2023-05-24 07:10:27 +00:00
Source0: https://github.com/libproxy/%{name}/archive/refs/tags/%{version}.tar.gz
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}
2009-01-23 15:09:44 +00:00
%description
libproxy offers the following features:
* extremely small core footprint
* minimal dependencies within libproxy core
* only 4 functions in the stable-ish external API
2009-01-23 15:09:44 +00:00
* dynamic adjustment to changing network topology
* a standard way of dealing with proxy settings across all scenarios
* a sublime sense of joy and accomplishment
2009-01-23 15:09:44 +00:00
%package bin
Summary: Binary to test %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2009-01-23 15:09:44 +00:00
%description bin
The %{name}-bin package contains the proxy binary for %{name}
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2009-01-23 15:09:44 +00:00
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
2023-05-24 07:10:27 +00:00
%autosetup -p1
2009-01-23 15:09:44 +00:00
%build
%meson \
-Dconfig-gnome=true \
-Dconfig-kde=true \
-Dconfig-osx=false \
-Dconfig-windows=false \
-Dintrospection=true \
-Dtests=true \
-Dvapi=true
%meson_build
2010-03-24 23:39:12 +00:00
%install
%meson_install
2010-09-06 15:38:24 +00:00
%check
%meson_test
2009-01-23 15:09:44 +00:00
%ldconfig_scriptlets
2009-01-23 15:09:44 +00:00
%files
%doc CHANGELOG.md README.md
2016-02-29 10:00:05 +00:00
%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
2009-01-23 15:09:44 +00:00
%files bin
%{_bindir}/proxy
%{_mandir}/man8/proxy.8*
2013-07-18 13:30:13 +00:00
2009-01-23 15:09:44 +00:00
%files devel
%{_docdir}/libproxy-1.0/
%{_includedir}/libproxy/
%{_libdir}/libproxy.so
2009-01-23 15:09:44 +00:00
%{_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
2009-01-23 15:09:44 +00:00
%changelog
%autochangelog