mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
contrib/rpm: merge branch 'th/contrib-rpm-f30'
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/93
(cherry picked from commit d804ad8119)
This commit is contained in:
commit
7da44cf877
1 changed files with 49 additions and 1 deletions
|
|
@ -103,6 +103,12 @@
|
||||||
%global dhcp_default internal
|
%global dhcp_default internal
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 30
|
||||||
|
%global group_tag 0
|
||||||
|
%else
|
||||||
|
%global group_tag 1
|
||||||
|
%endif
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
Name: NetworkManager
|
Name: NetworkManager
|
||||||
|
|
@ -110,7 +116,9 @@ Summary: Network connection manager and user applications
|
||||||
Epoch: %{epoch_version}
|
Epoch: %{epoch_version}
|
||||||
Version: %{rpm_version}
|
Version: %{rpm_version}
|
||||||
Release: %{release_version}%{?snap}%{?dist}
|
Release: %{release_version}%{?snap}%{?dist}
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.gnome.org/projects/NetworkManager/
|
URL: http://www.gnome.org/projects/NetworkManager/
|
||||||
|
|
||||||
|
|
@ -178,7 +186,11 @@ BuildRequires: gtk-doc
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
|
%if 0%{?fedora} >= 30
|
||||||
|
BuildRequires: vala
|
||||||
|
%else
|
||||||
BuildRequires: vala-tools
|
BuildRequires: vala-tools
|
||||||
|
%endif
|
||||||
BuildRequires: iptables
|
BuildRequires: iptables
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
%if %{with bluetooth}
|
%if %{with bluetooth}
|
||||||
|
|
@ -240,7 +252,9 @@ services.
|
||||||
%if %{with adsl}
|
%if %{with adsl}
|
||||||
%package adsl
|
%package adsl
|
||||||
Summary: ADSL device plugin for NetworkManager
|
Summary: ADSL device plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
||||||
Obsoletes: NetworkManager-atm
|
Obsoletes: NetworkManager-atm
|
||||||
|
|
@ -253,7 +267,9 @@ This package contains NetworkManager support for ADSL devices.
|
||||||
%if %{with bluetooth}
|
%if %{with bluetooth}
|
||||||
%package bluetooth
|
%package bluetooth
|
||||||
Summary: Bluetooth device plugin for NetworkManager
|
Summary: Bluetooth device plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: NetworkManager-wwan = %{epoch}:%{version}-%{release}
|
Requires: NetworkManager-wwan = %{epoch}:%{version}-%{release}
|
||||||
Requires: bluez >= 4.101-5
|
Requires: bluez >= 4.101-5
|
||||||
|
|
@ -268,7 +284,9 @@ This package contains NetworkManager support for Bluetooth devices.
|
||||||
%if %{with team}
|
%if %{with team}
|
||||||
%package team
|
%package team
|
||||||
Summary: Team device plugin for NetworkManager
|
Summary: Team device plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
BuildRequires: teamd-devel
|
BuildRequires: teamd-devel
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
||||||
|
|
@ -283,7 +301,9 @@ This package contains NetworkManager support for team devices.
|
||||||
%if %{with wifi}
|
%if %{with wifi}
|
||||||
%package wifi
|
%package wifi
|
||||||
Summary: Wifi plugin for NetworkManager
|
Summary: Wifi plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%if %{with iwd} && (0%{?fedora} > 24 || 0%{?rhel} > 7)
|
%if %{with iwd} && (0%{?fedora} > 24 || 0%{?rhel} > 7)
|
||||||
|
|
@ -305,7 +325,9 @@ This package contains NetworkManager support for Wifi and OLPC devices.
|
||||||
%if %{with wwan}
|
%if %{with wwan}
|
||||||
%package wwan
|
%package wwan
|
||||||
Summary: Mobile broadband device plugin for NetworkManager
|
Summary: Mobile broadband device plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: ModemManager
|
Requires: ModemManager
|
||||||
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
||||||
|
|
@ -319,7 +341,9 @@ devices.
|
||||||
%if %{with ovs}
|
%if %{with ovs}
|
||||||
%package ovs
|
%package ovs
|
||||||
Summary: Open vSwitch device plugin for NetworkManager
|
Summary: Open vSwitch device plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
Requires: openvswitch
|
Requires: openvswitch
|
||||||
|
|
@ -333,7 +357,9 @@ This package contains NetworkManager support for Open vSwitch bridges.
|
||||||
%if %{with ppp}
|
%if %{with ppp}
|
||||||
%package ppp
|
%package ppp
|
||||||
Summary: PPP plugin for NetworkManager
|
Summary: PPP plugin for NetworkManager
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: ppp = %{ppp_version}
|
Requires: ppp = %{ppp_version}
|
||||||
Requires: NetworkManager = %{epoch}:%{version}-%{release}
|
Requires: NetworkManager = %{epoch}:%{version}-%{release}
|
||||||
|
|
@ -346,7 +372,9 @@ This package contains NetworkManager support for PPP.
|
||||||
|
|
||||||
%package glib
|
%package glib
|
||||||
Summary: Libraries for adding NetworkManager support to applications (old API).
|
Summary: Libraries for adding NetworkManager support to applications (old API).
|
||||||
|
%if %{group_tag}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
%endif
|
||||||
Requires: dbus >= %{dbus_version}
|
Requires: dbus >= %{dbus_version}
|
||||||
Requires: dbus-glib >= %{dbus_glib_version}
|
Requires: dbus-glib >= %{dbus_glib_version}
|
||||||
Conflicts: NetworkManager-libnm < %{epoch}:%{version}-%{release}
|
Conflicts: NetworkManager-libnm < %{epoch}:%{version}-%{release}
|
||||||
|
|
@ -359,7 +387,9 @@ the older NetworkManager API. See also NetworkManager-libnm.
|
||||||
|
|
||||||
%package glib-devel
|
%package glib-devel
|
||||||
Summary: Header files for adding NetworkManager support to applications (old API).
|
Summary: Header files for adding NetworkManager support to applications (old API).
|
||||||
|
%if %{group_tag}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
%endif
|
||||||
Requires: %{name}-glib%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}-glib%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: glib2-devel
|
Requires: glib2-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
@ -377,7 +407,9 @@ This is the older NetworkManager API. See also NetworkManager-libnm-devel.
|
||||||
|
|
||||||
%package libnm
|
%package libnm
|
||||||
Summary: Libraries for adding NetworkManager support to applications (new API).
|
Summary: Libraries for adding NetworkManager support to applications (new API).
|
||||||
|
%if %{group_tag}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
%endif
|
||||||
Conflicts: NetworkManager-glib < %{epoch}:%{version}-%{release}
|
Conflicts: NetworkManager-glib < %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description libnm
|
%description libnm
|
||||||
|
|
@ -388,7 +420,9 @@ NetworkManager API. See also NetworkManager-glib.
|
||||||
|
|
||||||
%package libnm-devel
|
%package libnm-devel
|
||||||
Summary: Header files for adding NetworkManager support to applications (new API).
|
Summary: Header files for adding NetworkManager support to applications (new API).
|
||||||
|
%if %{group_tag}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
%endif
|
||||||
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: glib2-devel
|
Requires: glib2-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
@ -402,7 +436,9 @@ is the new NetworkManager API. See also NetworkManager-glib-devel.
|
||||||
%if %{with connectivity_fedora}
|
%if %{with connectivity_fedora}
|
||||||
%package config-connectivity-fedora
|
%package config-connectivity-fedora
|
||||||
Summary: NetworkManager config file for connectivity checking via Fedora servers
|
Summary: NetworkManager config file for connectivity checking via Fedora servers
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: NetworkManager-config-connectivity = %{epoch}:%{version}-%{release}
|
Provides: NetworkManager-config-connectivity = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
|
@ -415,7 +451,9 @@ via Fedora infrastructure.
|
||||||
%if %{with connectivity_redhat}
|
%if %{with connectivity_redhat}
|
||||||
%package config-connectivity-redhat
|
%package config-connectivity-redhat
|
||||||
Summary: NetworkManager config file for connectivity checking via Red Hat servers
|
Summary: NetworkManager config file for connectivity checking via Red Hat servers
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: NetworkManager-config-connectivity = %{epoch}:%{version}-%{release}
|
Provides: NetworkManager-config-connectivity = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
|
@ -427,7 +465,9 @@ via Red Hat infrastructure.
|
||||||
|
|
||||||
%package config-server
|
%package config-server
|
||||||
Summary: NetworkManager config file for "server-like" defaults
|
Summary: NetworkManager config file for "server-like" defaults
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description config-server
|
%description config-server
|
||||||
|
|
@ -443,7 +483,9 @@ deployments.
|
||||||
|
|
||||||
%package dispatcher-routing-rules
|
%package dispatcher-routing-rules
|
||||||
Summary: NetworkManager dispatcher file for advanced routing rules
|
Summary: NetworkManager dispatcher file for advanced routing rules
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: %{name}-config-routing-rules = %{epoch}:%{version}-%{release}
|
Provides: %{name}-config-routing-rules = %{epoch}:%{version}-%{release}
|
||||||
Obsoletes: %{name}-config-routing-rules < %{epoch}:%{version}-%{release}
|
Obsoletes: %{name}-config-routing-rules < %{epoch}:%{version}-%{release}
|
||||||
|
|
@ -457,7 +499,9 @@ configurations using "/etc/sysconfig/network-scripts/rule-NAME" files
|
||||||
%if 0%{with_nmtui}
|
%if 0%{with_nmtui}
|
||||||
%package tui
|
%package tui
|
||||||
Summary: NetworkManager curses-based UI
|
Summary: NetworkManager curses-based UI
|
||||||
|
%if %{group_tag}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
|
%endif
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
|
@ -801,11 +845,15 @@ fi
|
||||||
%systemd_postun
|
%systemd_postun
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 30
|
||||||
|
%ldconfig_scriptlets glib
|
||||||
|
%ldconfig_scriptlets libnm
|
||||||
|
%else
|
||||||
%post glib -p /sbin/ldconfig
|
%post glib -p /sbin/ldconfig
|
||||||
%postun glib -p /sbin/ldconfig
|
%postun glib -p /sbin/ldconfig
|
||||||
|
|
||||||
%post libnm -p /sbin/ldconfig
|
%post libnm -p /sbin/ldconfig
|
||||||
%postun libnm -p /sbin/ldconfig
|
%postun libnm -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue