Depend on KDE only on Fedora (#1902608)

This commit is contained in:
David King 2020-11-30 10:01:22 +00:00
parent ba09a819e7
commit d2078e2269

View File

@ -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 <amigadave@amigadave.com> - 0.4.15-28
- Depend on KDE only on Fedora (#1902608)
* Tue Oct 06 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.4.15-27
- Disable mozjs backend by default, obsolete it by webkit subpackage