From d2078e2269594af39dd959b55214db37b7437221 Mon Sep 17 00:00:00 2001 From: David King Date: Mon, 30 Nov 2020 10:01:22 +0000 Subject: [PATCH] Depend on KDE only on Fedora (#1902608) --- libproxy.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libproxy.spec b/libproxy.spec index d368dcc..3154ce8 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -4,7 +4,7 @@ Name: libproxy Version: 0.4.15 -Release: 27%{?dist} +Release: 28%{?dist} Summary: A library handling all the details of proxy configuration License: LGPLv2+ @@ -44,8 +44,10 @@ BuildRequires: pkgconfig(libnm) BuildRequires: pkgconfig(dbus-1) # webkit (gtk3) BuildRequires: pkgconfig(javascriptcoregtk-4.0) +%if 0%{?fedora} # kde BuildRequires: /usr/bin/kreadconfig5 +%endif # Python BuildRequires: python3-devel %else @@ -95,6 +97,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description gnome The %{name}-gnome package contains the %{name} plugin for gnome. +%if 0%{?fedora} %package kde Summary: Plugin for %{name} and kde Requires: %{name}%{?_isa} = %{version}-%{release} @@ -102,6 +105,7 @@ Requires: /usr/bin/kreadconfig5 %description kde The %{name}-kde package contains the %{name} plugin for kde. +%endif %package networkmanager Summary: Plugin for %{name} and networkmanager @@ -202,8 +206,10 @@ install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1 %{_libdir}/%{name}/%{version}/modules/config_gnome3.so %{_libexecdir}/pxgsettings +%if 0%{?fedora} %files kde %{_libdir}/%{name}/%{version}/modules/config_kde.so +%endif %files networkmanager %{_libdir}/%{name}/%{version}/modules/network_networkmanager.so @@ -223,6 +229,9 @@ install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1 %changelog +* Mon Nov 30 2020 David King - 0.4.15-28 +- Depend on KDE only on Fedora (#1902608) + * Tue Oct 06 2020 Frantisek Zatloukal - 0.4.15-27 - Disable mozjs backend by default, obsolete it by webkit subpackage