2013-11-16 00:58:46 +01:00
|
|
|
# SPEC file to build NetworkManager for testing. It aims for a similar
|
2024-07-09 17:58:34 +02:00
|
|
|
# configuration as RHEL and Fedora Rawhide
|
2013-11-16 00:58:46 +01:00
|
|
|
#
|
2014-06-25 17:06:42 +02:00
|
|
|
# This spec file is not used as is to create official packages for RHEL, Fedora or any
|
2013-11-16 00:58:46 +01:00
|
|
|
# other distribution.
|
2014-06-25 17:06:42 +02:00
|
|
|
#
|
|
|
|
|
# Note that it contains __PLACEHOLDERS__ that will be replaced by the accompanying 'build.sh' script.
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-05-14 15:12:48 +02:00
|
|
|
%global wpa_supplicant_version 1:1.1
|
|
|
|
|
|
2023-04-20 10:42:58 +02:00
|
|
|
%global ppp_version %(pkg-config --modversion pppd 2>/dev/null || sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . || echo bad)
|
2016-09-23 12:11:16 +02:00
|
|
|
%global glib2_version %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2017-05-10 16:47:24 +02:00
|
|
|
%global epoch_version 1
|
2016-02-03 15:47:27 +01:00
|
|
|
%global real_version __VERSION__
|
2025-07-07 09:27:05 +02:00
|
|
|
%global git_tag_version __GIT_TAG_VERSION__
|
2022-04-14 12:45:08 +02:00
|
|
|
%global rpm_version %{real_version}
|
2015-09-03 17:08:03 +02:00
|
|
|
%global release_version __RELEASE_VERSION__
|
2018-02-09 17:14:34 +01:00
|
|
|
%global snapshot __SNAPSHOT__
|
2017-05-10 16:47:24 +02:00
|
|
|
%global git_sha __COMMIT__
|
2022-07-01 16:43:16 +02:00
|
|
|
%global bcond_default_debug __BCOND_DEFAULT_DEBUG__
|
2023-01-24 10:29:35 +01:00
|
|
|
%global bcond_default_lto __BCOND_DEFAULT_LTO__
|
2022-07-01 16:43:16 +02:00
|
|
|
%global bcond_default_test __BCOND_DEFAULT_TEST__
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2022-01-11 15:49:43 +01:00
|
|
|
%global obsoletes_device_plugins 1:0.9.9.95-1
|
|
|
|
|
%global obsoletes_ppp_plugin 1:1.5.3
|
2023-02-10 10:03:07 +01:00
|
|
|
%global obsoletes_initscripts_updown 1:1.36.0-0.6
|
|
|
|
|
%global obsoletes_ifcfg_rh 1:1.36.2
|
2014-06-09 10:45:29 -05:00
|
|
|
|
2015-09-03 17:08:03 +02:00
|
|
|
%global nmlibdir %{_prefix}/lib/%{name}
|
2018-03-18 20:38:49 +01:00
|
|
|
%global nmplugindir %{_libdir}/%{name}/%{version}-%{release}
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
2020-04-02 09:35:06 +02:00
|
|
|
%if "x%{?snapshot}" != "x"
|
2016-05-05 21:56:20 +02:00
|
|
|
%global snapshot_dot .%{snapshot}
|
|
|
|
|
%endif
|
2020-04-02 09:35:06 +02:00
|
|
|
%if "x%{?git_sha}" != "x"
|
2016-05-05 21:56:20 +02:00
|
|
|
%global git_sha_dot .%{git_sha}
|
|
|
|
|
%endif
|
|
|
|
|
|
2016-07-07 11:19:26 +02:00
|
|
|
%global snap %{?snapshot_dot}%{?git_sha_dot}
|
2016-02-02 12:57:35 +01:00
|
|
|
|
2019-07-29 21:45:52 +02:00
|
|
|
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[0-9][0-9]*\\)\\.[0-9][0-9]*$/\\1/p')
|
2017-09-20 14:29:46 +02:00
|
|
|
|
2025-03-03 15:42:36 +01:00
|
|
|
%global systemd_units NetworkManager.service NetworkManager-wait-online.service NetworkManager-dispatcher.service nm-priv-helper.service
|
2019-04-17 20:06:44 +02:00
|
|
|
|
2019-11-12 15:54:22 +01:00
|
|
|
%global systemd_units_cloud_setup nm-cloud-setup.service nm-cloud-setup.timer
|
|
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
###############################################################################
|
2024-04-25 14:46:20 +02:00
|
|
|
%if 0%{?fedora} > 40 || 0%{?rhel} >= 10
|
2024-07-09 18:11:50 +02:00
|
|
|
%bcond_with dhclient
|
2024-03-25 13:53:52 +01:00
|
|
|
%else
|
2024-07-09 18:11:50 +02:00
|
|
|
%bcond_without dhclient
|
2024-03-25 13:53:52 +01:00
|
|
|
%endif
|
2016-02-02 12:57:35 +01:00
|
|
|
%bcond_without adsl
|
|
|
|
|
%bcond_without bluetooth
|
|
|
|
|
%bcond_without wwan
|
2024-04-17 10:37:18 +02:00
|
|
|
%if 0%{?rhel} >= 10
|
|
|
|
|
%bcond_with team
|
|
|
|
|
%else
|
2016-02-02 12:57:35 +01:00
|
|
|
%bcond_without team
|
2024-04-17 10:37:18 +02:00
|
|
|
%endif
|
2016-02-02 12:57:35 +01:00
|
|
|
%bcond_without wifi
|
2017-08-01 18:27:22 +02:00
|
|
|
%bcond_without ovs
|
2016-11-05 15:27:16 +01:00
|
|
|
%bcond_without ppp
|
2016-02-02 12:57:35 +01:00
|
|
|
%bcond_without nmtui
|
2019-11-12 15:54:22 +01:00
|
|
|
%bcond_without nm_cloud_setup
|
2016-02-02 12:57:35 +01:00
|
|
|
%bcond_without regen_docs
|
contrib/rpm: support default options for debug,test in generated spec file
"build_clean.sh" (and "build.sh") scripts can both create a source
tarball (via `make dist`/`make distcheck`), an SRPM (and a spec file),
or build RPMs from the SRPM.
Note that the generated spec file has various options, like
%bcond_without nmtui
%bcond_without debug
%bcond_without test
When building an RPM from the SRPM, you can specify the "--with" or
"--without" option for rpmbuild. This is also what the "-w" / "-W" options
for "build_clean.sh" do.
However, the SRPM still has the intrinsic defaults, and if you later
build an RPM from it, you would have to pass "--with" / "--without"
to rpmbuild.
Often that is not conveniently possible, for example, when you build the
SRPM in koji.
Extend the scripts so that also the defaults for "-w debug" and "-w
test" can be specified when generating the SRPM. You can do that with
the new options "--default-for-{debug,test}" to "build_clean.sh".
Alternatively, it suffices to specify the previously supported
"-w" / "-W" options. That way, we will pass those options to rpmbuild,
but also set them as defaults in the generate spec file. The new
options "--default-for-{debug,test}" are only needed if you want
the default in the spec file to be different then what you use
when creating the SRPM.
2020-12-03 15:45:13 +01:00
|
|
|
%if %{bcond_default_debug}
|
|
|
|
|
%bcond_without debug
|
|
|
|
|
%else
|
2016-02-02 12:57:35 +01:00
|
|
|
%bcond_with debug
|
contrib/rpm: support default options for debug,test in generated spec file
"build_clean.sh" (and "build.sh") scripts can both create a source
tarball (via `make dist`/`make distcheck`), an SRPM (and a spec file),
or build RPMs from the SRPM.
Note that the generated spec file has various options, like
%bcond_without nmtui
%bcond_without debug
%bcond_without test
When building an RPM from the SRPM, you can specify the "--with" or
"--without" option for rpmbuild. This is also what the "-w" / "-W" options
for "build_clean.sh" do.
However, the SRPM still has the intrinsic defaults, and if you later
build an RPM from it, you would have to pass "--with" / "--without"
to rpmbuild.
Often that is not conveniently possible, for example, when you build the
SRPM in koji.
Extend the scripts so that also the defaults for "-w debug" and "-w
test" can be specified when generating the SRPM. You can do that with
the new options "--default-for-{debug,test}" to "build_clean.sh".
Alternatively, it suffices to specify the previously supported
"-w" / "-W" options. That way, we will pass those options to rpmbuild,
but also set them as defaults in the generate spec file. The new
options "--default-for-{debug,test}" are only needed if you want
the default in the spec file to be different then what you use
when creating the SRPM.
2020-12-03 15:45:13 +01:00
|
|
|
%endif
|
|
|
|
|
%if %{bcond_default_test}
|
2020-11-26 18:15:42 +01:00
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
contrib/rpm: disable tests by default and use fatal-warnings with tests
In general, when we build a package, we want no compiler warnings
and all unit tests to pass.
That is in particular true when building a package for the distribution
in koji. When builing in koji, we (rightly) cannot pass rpmbuild options, so
the default whether tests/compiler-warnings are fatal matter very much.
One could argue: let's have the tests/compiler-warnings fatal and fail the build.
During a build in koji for a Fedora release, we want them all pass. And if somebody
does a manual build, the person can patch the spec file (or use rpmbuild
flags).
However, note how commit "f7b5e48cdb contrib/rpm: don't force fatal warnings
with tests" already disabled fatal compiler warnings. Why? It seems
compiler warnings should be even more stable than our unit tests, as long
as you target a particular Fedora release and compiler version. So this
was done to support rebuilding an SRPM for a different Fedora release,
or to be more graceful during early development phase of a Fedora
release, where things are not as stable yet.
The exactly same reasoning applies to treating unit-tests failures as fatal.
For example, a recent iproute2 issue broke unit tests. That meant, with
that iproute2 release in build root, the NetworkManager RPM could not be built.
Very annoying.
Now:
- if "test" is enabled, that means both `make check` and compiler warnings
are treated fatal. If "test" is disabled, `make check` and compiler
warnings are still done, just not fatal.
- "test" is now disabled by default via the spec file. They are not fatal
when building in koji or when rebuilding the package manually.
- tests can be enabled optionally. Note that the "build_clean.sh"
script enables them by default. So, a user using this script would
need to explicitly "--without test".
(cherry picked from commit ad850c4f03a93a21d745b2e46cca78525bdad843)
2018-09-14 09:59:57 +02:00
|
|
|
%bcond_with test
|
2020-11-26 18:15:42 +01:00
|
|
|
%endif
|
2023-01-24 11:46:28 +01:00
|
|
|
%if "%{?bcond_default_lto}" == ""
|
2024-07-09 17:58:34 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-08-12 11:42:54 +02:00
|
|
|
%bcond_without lto
|
|
|
|
|
%else
|
2019-02-03 11:06:02 +01:00
|
|
|
%bcond_with lto
|
2020-08-12 11:42:54 +02:00
|
|
|
%endif
|
2023-01-24 10:29:35 +01:00
|
|
|
%else
|
|
|
|
|
%if %{bcond_default_lto}
|
|
|
|
|
%bcond_without lto
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with lto
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
2017-05-23 19:14:56 +02:00
|
|
|
%bcond_with sanitizer
|
2018-04-23 18:37:48 +02:00
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without connectivity_fedora
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with connectivity_fedora
|
|
|
|
|
%endif
|
2024-07-09 17:58:34 +02:00
|
|
|
%if 0%{?rhel}
|
2018-07-10 08:48:51 +02:00
|
|
|
%bcond_without connectivity_redhat
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with connectivity_redhat
|
|
|
|
|
%endif
|
2019-08-15 14:46:48 +02:00
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%bcond_with iwd
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without iwd
|
|
|
|
|
%endif
|
2025-09-18 09:29:40 +02:00
|
|
|
%if 0%{?fedora} <= 43 || 0%{?rhel} <= 10
|
|
|
|
|
%bcond_without polkit_noauth_group
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with polkit_noauth_group
|
|
|
|
|
%endif
|
2016-02-02 12:57:35 +01:00
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2017-03-06 20:22:28 +01:00
|
|
|
%global dbus_version 1.9.18
|
|
|
|
|
%global dbus_sys_dir %{_datadir}/dbus-1/system.d
|
2021-05-21 08:40:17 +02:00
|
|
|
|
2017-03-02 10:01:41 +01:00
|
|
|
%if %{with bluetooth} || %{with wwan}
|
2015-09-03 17:08:03 +02:00
|
|
|
%global with_modem_manager_1 1
|
|
|
|
|
%else
|
|
|
|
|
%global with_modem_manager_1 0
|
2014-12-19 12:00:34 +01:00
|
|
|
%endif
|
2014-02-19 12:15:01 +01:00
|
|
|
|
2022-08-04 16:17:43 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-08-07 19:43:35 +02:00
|
|
|
%global dns_rc_manager_default auto
|
|
|
|
|
%else
|
2019-04-09 13:44:41 +02:00
|
|
|
%global dns_rc_manager_default symlink
|
2020-08-07 19:43:35 +02:00
|
|
|
%endif
|
2019-04-09 13:44:41 +02:00
|
|
|
|
2022-08-04 16:17:43 +02:00
|
|
|
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
2024-05-29 15:07:33 +02:00
|
|
|
%bcond_with default_ifcfg_rh
|
2020-07-15 10:49:12 +02:00
|
|
|
%else
|
2024-05-29 15:07:33 +02:00
|
|
|
%bcond_without default_ifcfg_rh
|
2020-07-15 10:49:12 +02:00
|
|
|
%endif
|
2019-04-09 13:44:41 +02:00
|
|
|
|
2024-07-08 14:30:25 +02:00
|
|
|
%if 0%{?rhel} >= 10 || 0%{?fedora} >= 41
|
2024-05-29 15:09:00 +02:00
|
|
|
%bcond_with ifcfg_rh
|
2024-05-29 15:10:38 +02:00
|
|
|
%bcond_with split_ifcfg_rh
|
2024-04-17 10:39:35 +02:00
|
|
|
%elif 0%{?fedora} >= 36
|
2024-05-29 15:09:00 +02:00
|
|
|
%bcond_without ifcfg_rh
|
2024-05-29 15:10:38 +02:00
|
|
|
%bcond_without split_ifcfg_rh
|
2022-02-22 10:41:43 +01:00
|
|
|
%else
|
2024-05-29 15:09:00 +02:00
|
|
|
%bcond_without ifcfg_rh
|
2024-05-29 15:10:38 +02:00
|
|
|
%bcond_with split_ifcfg_rh
|
2022-05-27 20:05:07 +02:00
|
|
|
%endif
|
|
|
|
|
|
2024-04-17 10:39:35 +02:00
|
|
|
%if (0%{?fedora} >= 36 && 0%{?fedora} < 39) || 0%{?rhel} == 9
|
2024-05-29 15:11:19 +02:00
|
|
|
%bcond_without ifcfg_warning
|
2022-05-27 20:05:07 +02:00
|
|
|
%else
|
2024-05-29 15:11:19 +02:00
|
|
|
%bcond_with ifcfg_warning
|
2022-02-22 10:41:43 +01:00
|
|
|
%endif
|
|
|
|
|
|
2024-07-08 14:30:25 +02:00
|
|
|
%if %{with ifcfg_rh} && 0%{?fedora} >= 39
|
2024-05-29 15:12:25 +02:00
|
|
|
%bcond_without ifcfg_migrate
|
2023-08-10 11:26:50 +02:00
|
|
|
%else
|
2024-05-29 15:12:25 +02:00
|
|
|
%bcond_with ifcfg_migrate
|
2023-08-10 11:26:50 +02:00
|
|
|
%endif
|
|
|
|
|
|
2020-08-12 11:42:54 +02:00
|
|
|
# Fedora 33 enables LTO by default by setting CFLAGS="-flto -ffat-lto-objects".
|
|
|
|
|
# However, we also require "-flto -flto-partition=none", so disable Fedora's
|
|
|
|
|
# default and use our configure option --with-lto instead.
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
###############################################################################
|
2014-06-25 17:06:42 +02:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
Name: NetworkManager
|
|
|
|
|
Summary: Network connection manager and user applications
|
2014-06-25 17:06:42 +02:00
|
|
|
Epoch: %{epoch_version}
|
2016-02-03 15:47:27 +01:00
|
|
|
Version: %{rpm_version}
|
2016-05-05 21:56:20 +02:00
|
|
|
Release: %{release_version}%{?snap}%{?dist}
|
2013-11-16 00:58:46 +01:00
|
|
|
Group: System Environment/Base
|
2023-06-22 20:28:08 +00:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2021-02-16 11:09:32 +01:00
|
|
|
URL: https://networkmanager.dev/
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2025-07-07 09:27:05 +02:00
|
|
|
#Source: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/releases/%{git_tag_version}/downloads/%{name}-%{real_version}.tar.xz
|
2013-11-16 00:58:46 +01:00
|
|
|
Source: __SOURCE1__
|
|
|
|
|
Source1: NetworkManager.conf
|
|
|
|
|
Source2: 00-server.conf
|
2018-10-24 09:38:34 +02:00
|
|
|
Source4: 20-connectivity-fedora.conf
|
|
|
|
|
Source5: 20-connectivity-redhat.conf
|
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").
This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.
Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).
Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like
- "ipv6.addr-gen-mode=stable-privacy"
- "{ethernet,wifi}.cloned-mac-address=stable"
- "ipv4.dhcp-client-id=stable"
- "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
- "{ipv4,ipv6}.iaid=stable"
Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".
This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.
https://pagure.io/fedora-workstation/issue/350
2023-03-08 08:48:03 +01:00
|
|
|
Source6: 22-wifi-mac-addr.conf
|
|
|
|
|
Source7: 70-nm-connectivity.conf
|
|
|
|
|
Source8: readme-ifcfg-rh.txt
|
|
|
|
|
Source9: readme-ifcfg-rh-migrated.txt
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2014-03-14 12:34:13 +01:00
|
|
|
#Patch1: 0001-some.patch
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
Requires(post): systemd
|
2021-10-28 19:23:29 +02:00
|
|
|
Requires(post): systemd-udev
|
2018-06-11 22:07:35 +02:00
|
|
|
Requires(post): /usr/sbin/update-alternatives
|
2013-11-16 00:58:46 +01:00
|
|
|
Requires(preun): systemd
|
2018-06-11 22:07:35 +02:00
|
|
|
Requires(preun): /usr/sbin/update-alternatives
|
2013-11-16 00:58:46 +01:00
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
Requires: dbus >= %{dbus_version}
|
|
|
|
|
Requires: glib2 >= %{glib2_version}
|
2014-07-31 12:06:31 -04:00
|
|
|
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
2024-07-09 17:58:34 +02:00
|
|
|
|
2024-10-25 14:00:58 -04:00
|
|
|
Recommends: iputils
|
|
|
|
|
|
2024-07-09 17:58:34 +02:00
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
|
# Older libndp versions use select() (rh#1933041). On well known distros,
|
|
|
|
|
# choose a version that has the necessary fix.
|
|
|
|
|
Requires: libndp >= 1.7-4
|
2021-05-21 08:40:17 +02:00
|
|
|
%endif
|
2024-07-09 17:58:34 +02:00
|
|
|
|
2016-10-14 09:54:20 +02:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
2016-12-15 20:24:56 +01:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_ppp_plugin}
|
2023-10-19 12:34:10 +02:00
|
|
|
Obsoletes: NetworkManager-wimax < 1:1.2
|
2024-07-09 17:55:25 +02:00
|
|
|
%if 0%{?rhel} == 8
|
2022-01-11 15:49:43 +01:00
|
|
|
Suggests: NetworkManager-initscripts-updown
|
|
|
|
|
%endif
|
|
|
|
|
Obsoletes: NetworkManager < %{obsoletes_initscripts_updown}
|
2024-05-29 15:10:38 +02:00
|
|
|
%if %{with split_ifcfg_rh}
|
2022-02-22 10:41:43 +01:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_ifcfg_rh}
|
|
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2024-07-09 17:55:25 +02:00
|
|
|
%if 0%{?rhel} >= 10
|
2024-05-27 16:37:58 +02:00
|
|
|
%if 0%{without team}
|
2024-05-27 14:46:09 +02:00
|
|
|
Obsoletes: NetworkManager-team < 1:1.47.5-3
|
2024-05-27 16:37:58 +02:00
|
|
|
%endif
|
2024-05-27 14:46:09 +02:00
|
|
|
Obsoletes: NetworkManager-initscripts-ifcfg-rh < 1:1.47.5-3
|
|
|
|
|
Obsoletes: NetworkManager-dispatcher-routing-rules < 1:1.47.5-3
|
2024-05-23 10:26:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
2024-07-26 10:30:31 +02:00
|
|
|
%if 0%{?fedora} >= 41
|
|
|
|
|
%if %{without ifcfg_rh}
|
|
|
|
|
Obsoletes: NetworkManager-initscripts-ifcfg-rh < 1:1.49-3.1
|
|
|
|
|
Obsoletes: NetworkManager-dispatcher-routing-rules < 1:1.49.3-1
|
|
|
|
|
Obsoletes: NetworkManager-initscripts-updown < 1:1.49.3-1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
Conflicts: NetworkManager-vpnc < 1:0.7.0.99-1
|
|
|
|
|
Conflicts: NetworkManager-openvpn < 1:0.7.0.99-1
|
|
|
|
|
Conflicts: NetworkManager-pptp < 1:0.7.0.99-1
|
|
|
|
|
Conflicts: NetworkManager-openconnect < 0:0.7.0.99-1
|
|
|
|
|
Conflicts: kde-plasma-networkmanagement < 1:0.9-0.49.20110527git.nm09
|
2024-07-09 17:55:25 +02:00
|
|
|
%if 0%{?rhel} >= 10
|
2024-05-27 16:37:58 +02:00
|
|
|
%if 0%{without team}
|
2024-05-23 10:26:16 +02:00
|
|
|
Conflicts: NetworkManager-team <= 1:1.47.5-3
|
2024-05-27 16:37:58 +02:00
|
|
|
%endif
|
2024-05-23 10:26:16 +02:00
|
|
|
Conflicts: NetworkManager-initscripts-ifcfg-rh <= 1:1.47.5-3
|
|
|
|
|
Conflicts: NetworkManager-dispatcher-routing-rules <= 1:1.47.5-3
|
|
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-12 08:26:02 +02:00
|
|
|
BuildRequires: gcc
|
2018-07-12 08:41:25 +02:00
|
|
|
BuildRequires: pkgconfig
|
2018-09-21 22:49:20 +02:00
|
|
|
BuildRequires: meson
|
build: stop relying on intltool for i18n
Recent gettext version can extract and merge back strings from and to
various file formats, no need for intltool anymore.
https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/133
https://github.com/NetworkManager/NetworkManager/pull/303
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/96
Clarification about the use of AM_GNU_GETTEXT_REQUIRE_VERSION:
In configure.ac, specify the minimum gettext version we require, rather
than the exact one. This fixes a situation where the autoconf macros
used for gettext will be the latest available on the system (for
example, 0.20); but the copied-in Makefile.in.in will be for the exact
version specified in configure.ac (in this case, 0.19).
In that situation, the gettext build rules will error out at `make` time
with the message:
*** error: gettext infrastructure mismatch: using a Makefile.in.in
from gettext version 0.19 but the autoconf macros are from gettext
version 0.20
Avoid that by specifying a minimum version dependency rather than an
exact one. This should not cause problems as we haven’t committed any
generated or external gettext files into git, so each developer will end
up regenerating the build system for their system’s version of gettext,
as expected.
See the subsection of
https://www.gnu.org/software/gettext/manual/html_node/Version-Control-Issues.html
for more information.
Note that autoreconf currently doesn’t recognise
AM_GNU_GETTEXT_REQUIRE_VERSION, so we must continue also using
AM_GNU_GETTEXT_VERSION. autopoint will ignore the latter if the former
is present. See
https://lists.gnu.org/archive/html/autoconf-patches/2015-10/msg00000.html.
[lkundrak@v3.sk: Fixed the meson build, adjusted autogen.sh:
droped "|| exit 1", dropped call to aclocal,
dropped --copy from gtkdocize.]
2021-03-31 09:52:03 +01:00
|
|
|
BuildRequires: gettext-devel >= 0.19.8
|
2018-07-12 08:41:25 +02:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: dbus-devel >= %{dbus_version}
|
2018-02-16 13:01:12 +01:00
|
|
|
BuildRequires: glib2-devel >= 2.40.0
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: gobject-introspection-devel >= 0.10.3
|
2016-12-16 09:51:45 +01:00
|
|
|
%if %{with ppp}
|
2016-12-15 20:24:56 +01:00
|
|
|
BuildRequires: ppp-devel >= 2.4.5
|
2016-12-16 09:51:45 +01:00
|
|
|
%endif
|
2018-05-23 14:30:47 +02:00
|
|
|
BuildRequires: gnutls-devel >= 2.12
|
2014-06-04 11:50:39 +02:00
|
|
|
BuildRequires: readline-devel
|
2015-07-20 18:33:35 +02:00
|
|
|
BuildRequires: audit-libs-devel
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with regen_docs}
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libudev-devel
|
2021-05-26 22:14:06 +02:00
|
|
|
BuildRequires: libuuid-devel
|
2019-03-07 10:43:16 +01:00
|
|
|
BuildRequires: /usr/bin/valac
|
2017-03-06 19:10:42 +01:00
|
|
|
BuildRequires: libxslt
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with bluetooth}
|
2014-10-01 10:59:13 +02:00
|
|
|
BuildRequires: bluez-libs-devel
|
|
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: systemd >= 200-3 systemd-devel
|
2017-03-22 12:42:33 +01:00
|
|
|
%if 0%{?fedora}
|
2017-03-20 16:57:58 +00:00
|
|
|
BuildRequires: libpsl-devel >= 0.1
|
2017-03-22 12:42:33 +01:00
|
|
|
%endif
|
2016-04-04 18:23:13 +02:00
|
|
|
BuildRequires: libcurl-devel
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: libndp-devel >= 1.0
|
2014-12-19 12:00:34 +01:00
|
|
|
%if 0%{?with_modem_manager_1}
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: ModemManager-glib-devel >= 1.0
|
|
|
|
|
%endif
|
2019-03-18 15:01:38 +01:00
|
|
|
%if %{with wwan}
|
|
|
|
|
BuildRequires: mobile-broadband-provider-info-devel
|
|
|
|
|
%endif
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with nmtui}
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: newt-devel
|
|
|
|
|
%endif
|
2014-10-23 19:27:35 +02:00
|
|
|
BuildRequires: /usr/bin/dbus-launch
|
2018-05-23 16:17:38 +02:00
|
|
|
BuildRequires: python3
|
|
|
|
|
BuildRequires: python3-gobject-base
|
|
|
|
|
BuildRequires: python3-dbus
|
2022-07-01 16:47:45 +02:00
|
|
|
BuildRequires: python3-pexpect
|
2014-11-13 18:48:12 +01:00
|
|
|
BuildRequires: libselinux-devel
|
2014-11-13 18:50:05 +01:00
|
|
|
BuildRequires: polkit-devel
|
2016-01-14 17:51:33 +01:00
|
|
|
BuildRequires: jansson-devel
|
2018-02-08 09:05:54 +01:00
|
|
|
%if %{with sanitizer}
|
|
|
|
|
BuildRequires: libasan
|
|
|
|
|
BuildRequires: libubsan
|
|
|
|
|
%endif
|
2020-05-08 09:20:25 +02:00
|
|
|
BuildRequires: firewalld-filesystem
|
2020-05-25 15:17:09 +02:00
|
|
|
BuildRequires: iproute
|
|
|
|
|
BuildRequires: iproute-tc
|
2024-11-22 16:49:47 +01:00
|
|
|
BuildRequires: libnvme-devel >= 1.5
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-11-29 18:01:30 +01:00
|
|
|
Provides: %{name}-dispatcher%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
2018-11-06 18:57:57 +01:00
|
|
|
# NetworkManager uses various parts of systemd-networkd internally, including
|
|
|
|
|
# DHCP client, IPv4 Link-Local address negotiation or LLDP support.
|
|
|
|
|
# This provide is essentially here so that NetworkManager shows on Security
|
|
|
|
|
# Response Team's radar in case a flaw is found. The code is frequently
|
|
|
|
|
# synchronized and thus it's not easy to establish a good version number
|
|
|
|
|
# here. The version of zero is there just to have something conservative so
|
|
|
|
|
# that the scripts that would parse the SPEC file naively would be unlikely
|
|
|
|
|
# to fail. Refer to git log for the real date and commit number of last
|
|
|
|
|
# synchronization:
|
2021-04-01 22:27:58 +02:00
|
|
|
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commits/main/src/
|
2018-11-06 18:57:57 +01:00
|
|
|
Provides: bundled(systemd) = 0
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
%description
|
2014-06-09 11:03:15 +02:00
|
|
|
NetworkManager is a system service that manages network interfaces and
|
|
|
|
|
connections based on user or automatic configuration. It supports
|
|
|
|
|
Ethernet, Bridge, Bond, VLAN, Team, InfiniBand, Wi-Fi, mobile broadband
|
|
|
|
|
(WWAN), PPPoE and other devices, and supports a variety of different VPN
|
|
|
|
|
services.
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with adsl}
|
2014-03-20 20:01:32 +01:00
|
|
|
%package adsl
|
2014-03-14 12:34:13 +01:00
|
|
|
Summary: ADSL device plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2016-10-14 09:54:20 +02:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
2014-03-14 12:34:13 +01:00
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%description adsl
|
2014-03-14 12:34:13 +01:00
|
|
|
This package contains NetworkManager support for ADSL devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with bluetooth}
|
2014-03-20 20:01:32 +01:00
|
|
|
%package bluetooth
|
2014-03-14 12:34:13 +01:00
|
|
|
Summary: Bluetooth device plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2016-06-02 09:18:34 +02:00
|
|
|
Requires: NetworkManager-wwan = %{epoch}:%{version}-%{release}
|
2014-05-19 18:55:59 +02:00
|
|
|
Requires: bluez >= 4.101-5
|
2016-10-14 09:54:20 +02:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
2014-03-14 12:34:13 +01:00
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%description bluetooth
|
2014-03-14 12:34:13 +01:00
|
|
|
This package contains NetworkManager support for Bluetooth devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2016-02-04 08:36:52 +01:00
|
|
|
%if %{with team}
|
2014-06-18 11:10:52 +02:00
|
|
|
%package team
|
|
|
|
|
Summary: Team device plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
BuildRequires: teamd-devel
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2016-10-14 09:54:20 +02:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
2014-12-22 09:48:22 -06:00
|
|
|
# Team was split from main NM binary between 0.9.10 and 1.0
|
2019-04-09 13:44:41 +02:00
|
|
|
# We need this Obsoletes in addition to the one above
|
|
|
|
|
# (git:3aede801521ef7bff039e6e3f1b3c7b566b4338d).
|
2023-10-19 12:34:10 +02:00
|
|
|
Obsoletes: NetworkManager < 1:1.0.0
|
2014-06-18 11:10:52 +02:00
|
|
|
|
|
|
|
|
%description team
|
|
|
|
|
This package contains NetworkManager support for team devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with wifi}
|
2014-05-14 11:04:07 +02:00
|
|
|
%package wifi
|
|
|
|
|
Summary: Wifi plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2018-05-14 15:12:48 +02:00
|
|
|
|
2021-01-18 10:35:10 +01:00
|
|
|
%if 0%{?fedora} >= 29 || 0%{?rhel} >= 9
|
|
|
|
|
Requires: wireless-regdb
|
|
|
|
|
%else
|
|
|
|
|
Requires: crda
|
|
|
|
|
%endif
|
|
|
|
|
|
2024-07-09 17:58:34 +02:00
|
|
|
%if %{with iwd}
|
2018-05-14 15:12:48 +02:00
|
|
|
Requires: (wpa_supplicant >= %{wpa_supplicant_version} or iwd)
|
2019-09-23 12:38:53 +02:00
|
|
|
Suggests: wpa_supplicant
|
2018-05-14 15:12:48 +02:00
|
|
|
%else
|
|
|
|
|
Requires: wpa_supplicant >= %{wpa_supplicant_version}
|
|
|
|
|
%endif
|
|
|
|
|
|
2016-10-14 09:54:20 +02:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
2014-05-14 11:04:07 +02:00
|
|
|
|
|
|
|
|
%description wifi
|
|
|
|
|
This package contains NetworkManager support for Wifi and OLPC devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with wwan}
|
2014-03-14 12:34:13 +01:00
|
|
|
%package wwan
|
|
|
|
|
Summary: Mobile broadband device plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2014-05-19 18:55:59 +02:00
|
|
|
Requires: ModemManager
|
2016-10-14 09:54:20 +02:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_device_plugins}
|
2014-03-14 12:34:13 +01:00
|
|
|
|
|
|
|
|
%description wwan
|
2016-02-04 08:41:44 +01:00
|
|
|
This package contains NetworkManager support for mobile broadband (WWAN)
|
|
|
|
|
devices.
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2017-08-01 18:27:22 +02:00
|
|
|
|
|
|
|
|
%if %{with ovs}
|
|
|
|
|
%package ovs
|
2018-06-27 16:53:05 +02:00
|
|
|
Summary: Open vSwitch device plugin for NetworkManager
|
2017-08-01 18:27:22 +02:00
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2018-10-22 16:34:49 +02:00
|
|
|
%if 0%{?rhel} == 0
|
2017-08-01 18:27:22 +02:00
|
|
|
Requires: openvswitch
|
2018-10-22 16:34:49 +02:00
|
|
|
%endif
|
2017-08-01 18:27:22 +02:00
|
|
|
|
|
|
|
|
%description ovs
|
2018-06-27 16:53:05 +02:00
|
|
|
This package contains NetworkManager support for Open vSwitch bridges.
|
2017-08-01 18:27:22 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2016-11-05 15:27:16 +01:00
|
|
|
%if %{with ppp}
|
|
|
|
|
%package ppp
|
|
|
|
|
Summary: PPP plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: ppp = %{ppp_version}
|
2017-05-22 20:06:43 -04:00
|
|
|
Requires: NetworkManager = %{epoch}:%{version}-%{release}
|
2016-11-05 15:27:16 +01:00
|
|
|
Obsoletes: NetworkManager < %{obsoletes_ppp_plugin}
|
|
|
|
|
|
|
|
|
|
%description ppp
|
|
|
|
|
This package contains NetworkManager support for PPP.
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-03-14 12:34:13 +01:00
|
|
|
|
2014-07-31 12:06:31 -04:00
|
|
|
%package libnm
|
2020-05-14 12:43:04 +02:00
|
|
|
Summary: Libraries for adding NetworkManager support to applications.
|
2014-07-31 12:06:31 -04:00
|
|
|
Group: Development/Libraries
|
2021-05-11 14:34:18 +02:00
|
|
|
Conflicts: NetworkManager-glib < 1:1.31.0
|
2023-11-02 12:40:17 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2014-07-31 12:06:31 -04:00
|
|
|
|
|
|
|
|
%description libnm
|
2016-02-04 08:41:44 +01:00
|
|
|
This package contains the libraries that make it easier to use some
|
2020-05-14 12:43:04 +02:00
|
|
|
NetworkManager functionality from applications.
|
2014-07-31 12:06:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%package libnm-devel
|
2020-05-14 12:43:04 +02:00
|
|
|
Summary: Header files for adding NetworkManager support to applications.
|
2014-07-31 12:06:31 -04:00
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: glib2-devel
|
|
|
|
|
Requires: pkgconfig
|
2023-11-02 12:40:17 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2014-07-31 12:06:31 -04:00
|
|
|
|
|
|
|
|
%description libnm-devel
|
2016-02-04 08:41:44 +01:00
|
|
|
This package contains the header and pkg-config files for development
|
2020-05-14 12:43:04 +02:00
|
|
|
applications using NetworkManager functionality from applications.
|
2014-07-31 12:06:31 -04:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-04-23 18:37:48 +02:00
|
|
|
%if %{with connectivity_fedora}
|
2014-07-02 19:17:42 +02:00
|
|
|
%package config-connectivity-fedora
|
|
|
|
|
Summary: NetworkManager config file for connectivity checking via Fedora servers
|
|
|
|
|
Group: System Environment/Base
|
2016-11-25 11:57:48 +01:00
|
|
|
BuildArch: noarch
|
2018-07-10 08:48:51 +02:00
|
|
|
Provides: NetworkManager-config-connectivity = %{epoch}:%{version}-%{release}
|
2014-07-02 19:17:42 +02:00
|
|
|
|
|
|
|
|
%description config-connectivity-fedora
|
|
|
|
|
This adds a NetworkManager configuration file to enable connectivity checking
|
|
|
|
|
via Fedora infrastructure.
|
2018-04-23 18:37:48 +02:00
|
|
|
%endif
|
2014-07-02 19:17:42 +02:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2018-07-10 08:48:51 +02:00
|
|
|
%if %{with connectivity_redhat}
|
|
|
|
|
%package config-connectivity-redhat
|
|
|
|
|
Summary: NetworkManager config file for connectivity checking via Red Hat servers
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: NetworkManager-config-connectivity = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description config-connectivity-redhat
|
|
|
|
|
This adds a NetworkManager configuration file to enable connectivity checking
|
|
|
|
|
via Red Hat infrastructure.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%package config-server
|
|
|
|
|
Summary: NetworkManager config file for "server-like" defaults
|
|
|
|
|
Group: System Environment/Base
|
2016-11-25 11:57:48 +01:00
|
|
|
BuildArch: noarch
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
%description config-server
|
|
|
|
|
This adds a NetworkManager configuration file to make it behave more
|
|
|
|
|
like the old "network" service. In particular, it stops NetworkManager
|
|
|
|
|
from automatically running DHCP on unconfigured ethernet devices, and
|
|
|
|
|
allows connections with static IP addresses to be brought up even on
|
|
|
|
|
ethernet devices with no carrier.
|
|
|
|
|
|
|
|
|
|
This package is intended to be installed by default for server
|
|
|
|
|
deployments.
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2016-05-05 18:47:34 +02:00
|
|
|
%package dispatcher-routing-rules
|
|
|
|
|
Summary: NetworkManager dispatcher file for advanced routing rules
|
2016-05-05 18:39:07 +02:00
|
|
|
Group: System Environment/Base
|
2024-05-29 15:10:38 +02:00
|
|
|
%if %{with split_ifcfg_rh}
|
2022-02-22 10:41:43 +01:00
|
|
|
Requires: %{name}-initscripts-ifcfg-rh
|
|
|
|
|
%endif
|
2024-10-11 12:14:50 +02:00
|
|
|
Requires: ipcalc
|
2016-05-05 19:43:32 +02:00
|
|
|
BuildArch: noarch
|
2016-05-05 18:47:34 +02:00
|
|
|
Provides: %{name}-config-routing-rules = %{epoch}:%{version}-%{release}
|
2021-05-11 14:40:41 +02:00
|
|
|
Obsoletes: %{name}-config-routing-rules < 1:1.31.0
|
2016-05-05 18:39:07 +02:00
|
|
|
|
2016-05-05 18:47:34 +02:00
|
|
|
%description dispatcher-routing-rules
|
|
|
|
|
This adds a NetworkManager dispatcher file to support networking
|
2016-05-05 18:39:07 +02:00
|
|
|
configurations using "/etc/sysconfig/network-scripts/rule-NAME" files
|
|
|
|
|
(eg, to do policy-based routing).
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2016-05-05 18:39:07 +02:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2019-11-21 15:14:50 +01:00
|
|
|
%if %{with nmtui}
|
2013-11-16 00:58:46 +01:00
|
|
|
%package tui
|
|
|
|
|
Summary: NetworkManager curses-based UI
|
|
|
|
|
Group: System Environment/Base
|
contrib/rpm: fix up sub-package dependencies
There are three fixes:
1) the config packages shouldn't require the main NetworkManager
package. We explicitly make NetworkManager-glib not
depend on NM itself to ensure that clients can link to it (and thus
have an RPM dependency on -glib) without pulling in NetworkManager
itself. The same should hold true for the config packages, since
consumers of NetworkManager may want to pull them in, but not
necessarily pull NetworkManager in.
For example, GNOME Shell wants to make use of NetworkManager's
connectivity detection *if NM is available*, and this requires
pulling in NM-config-connectivity-fedora, but that shouldn't
pull in NetworkManager itself.
Similarly, we had a problem with RHEL7 making sure that
NM-config-server was installed by default on Server variants but
not on other variants; removing the dependency from the -config
subpackage was the cleanest way to fix that.
Furthermore, nothing in the config sub-packages actually
requires NetworkManager anyway since they are simply config files.
2) nmtui doesn't care what architecture the running NM is since
it communicates solely over D-Bus. So skip the %{?_isa}, just
like we do for other clients (nm-applet, GNOME Shell, etc)
3) Requiring NetworkManager.%{?_isa} from the -devel package
has problems with multilib (see rh #1112367). This is an issue
if you install a 32-bit development environment and try to build
something that uses NetworkManager. Since the -devel package
requires the main package, you can end up either having *both*
NetworkManager.i686 and NetworkManager.x86_64 installed, or you
end up having NetworkManager.i686 replace NetworkManager.x86_64.
Neither one is good. So remove the %{?_isa} bit.
2014-07-30 09:35:02 -05:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2014-07-31 12:06:31 -04:00
|
|
|
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
%description tui
|
|
|
|
|
This adds a curses-based "TUI" (Text User Interface) to
|
|
|
|
|
NetworkManager, to allow performing some of the operations supported
|
|
|
|
|
by nm-connection-editor and nm-applet in a non-graphical environment.
|
|
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2024-05-29 15:10:38 +02:00
|
|
|
%if %{with split_ifcfg_rh}
|
2022-02-22 10:41:43 +01:00
|
|
|
%package initscripts-ifcfg-rh
|
|
|
|
|
Summary: NetworkManager plugin for reading and writing connections in ifcfg-rh format
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Obsoletes: NetworkManager < %{obsoletes_ifcfg_rh}
|
|
|
|
|
|
|
|
|
|
%description initscripts-ifcfg-rh
|
|
|
|
|
Installs a plugin for reading and writing connection profiles using
|
|
|
|
|
the Red Hat ifcfg format in /etc/sysconfig/network-scripts/.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2019-11-12 15:54:22 +01:00
|
|
|
%if %{with nm_cloud_setup}
|
|
|
|
|
%package cloud-setup
|
|
|
|
|
Summary: Automatically configure NetworkManager in cloud
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description cloud-setup
|
|
|
|
|
Installs a nm-cloud-setup tool that can automatically configure
|
2023-06-13 09:31:23 +02:00
|
|
|
NetworkManager in cloud environment. Only certain cloud providers
|
|
|
|
|
like Aliyun, Azure, EC2, GCP are supported.
|
2019-11-12 15:54:22 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2022-01-11 15:49:43 +01:00
|
|
|
%package initscripts-updown
|
|
|
|
|
Summary: Legacy ifup/ifdown scripts for NetworkManager that replace initscripts (network-scripts)
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: NetworkManager
|
|
|
|
|
Requires: /usr/bin/nmcli
|
|
|
|
|
Obsoletes: NetworkManager < %{obsoletes_initscripts_updown}
|
|
|
|
|
|
|
|
|
|
%description initscripts-updown
|
|
|
|
|
Installs alternative ifup/ifdown scripts that talk to NetworkManager.
|
|
|
|
|
This is only for backward compatibility with initscripts (network-scripts).
|
|
|
|
|
Preferably use nmcli instead.
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2022-01-11 15:49:43 +01:00
|
|
|
|
2024-05-29 15:24:13 +02:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%prep
|
2018-08-03 11:04:51 +02:00
|
|
|
%autosetup -p1 -n NetworkManager-%{real_version}
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%build
|
2018-09-21 22:49:20 +02:00
|
|
|
%meson \
|
2019-04-03 14:52:24 +02:00
|
|
|
-Db_ndebug=false \
|
2019-02-08 12:14:14 +01:00
|
|
|
--warnlevel 2 \
|
2022-08-02 18:03:45 +02:00
|
|
|
%if %{with test}
|
|
|
|
|
--werror \
|
|
|
|
|
%endif
|
2023-01-16 08:40:14 +01:00
|
|
|
-Dnft=%{_sbindir}/nft \
|
|
|
|
|
-Diptables=%{_sbindir}/iptables \
|
2025-03-11 11:18:59 +01:00
|
|
|
-Dip6tables=%{_sbindir}/ip6tables \
|
2024-07-09 18:11:50 +02:00
|
|
|
%if %{with dhclient}
|
2023-01-16 08:40:14 +01:00
|
|
|
-Ddhclient=%{_sbindir}/dhclient \
|
2024-07-09 18:11:50 +02:00
|
|
|
%else
|
|
|
|
|
-Ddhclient=no \
|
|
|
|
|
%endif
|
2018-09-21 22:49:20 +02:00
|
|
|
-Ddhcpcd=no \
|
|
|
|
|
-Dcrypto=gnutls \
|
|
|
|
|
%if %{with debug}
|
|
|
|
|
-Dmore_logging=true \
|
|
|
|
|
-Dmore_asserts=10000 \
|
|
|
|
|
%else
|
|
|
|
|
-Dmore_logging=false \
|
|
|
|
|
-Dmore_asserts=0 \
|
|
|
|
|
%endif
|
|
|
|
|
-Dld_gc=true \
|
2019-02-03 11:06:02 +01:00
|
|
|
%if %{with lto}
|
|
|
|
|
-D b_lto=true \
|
|
|
|
|
%else
|
|
|
|
|
-D b_lto=false \
|
|
|
|
|
%endif
|
2018-09-21 22:49:20 +02:00
|
|
|
-Dlibaudit=yes-disabled-by-default \
|
|
|
|
|
%if 0%{?with_modem_manager_1}
|
|
|
|
|
-Dmodem_manager=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dmodem_manager=false \
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with wifi}
|
|
|
|
|
-Dwifi=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dwifi=false \
|
|
|
|
|
%endif
|
2025-11-12 10:19:53 +01:00
|
|
|
-Dwext=false \
|
2018-09-21 22:49:20 +02:00
|
|
|
%if %{with iwd}
|
|
|
|
|
-Diwd=true \
|
|
|
|
|
%else
|
|
|
|
|
-Diwd=false \
|
2019-11-21 15:14:50 +01:00
|
|
|
%endif
|
2019-11-30 13:31:39 +01:00
|
|
|
%if %{with bluetooth}
|
|
|
|
|
-Dbluez5_dun=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dbluez5_dun=false \
|
|
|
|
|
%endif
|
2019-11-21 15:14:50 +01:00
|
|
|
%if %{with nmtui}
|
|
|
|
|
-Dnmtui=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dnmtui=false \
|
2019-11-12 15:54:22 +01:00
|
|
|
%endif
|
|
|
|
|
%if %{with nm_cloud_setup}
|
|
|
|
|
-Dnm_cloud_setup=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dnm_cloud_setup=false \
|
2018-09-21 22:49:20 +02:00
|
|
|
%endif
|
|
|
|
|
-Dvapi=true \
|
|
|
|
|
-Dintrospection=true \
|
|
|
|
|
%if %{with regen_docs}
|
|
|
|
|
-Ddocs=true \
|
|
|
|
|
%else
|
|
|
|
|
-Ddocs=false \
|
|
|
|
|
%endif
|
2023-01-23 17:53:37 +01:00
|
|
|
-Dqt=false \
|
2018-09-21 22:49:20 +02:00
|
|
|
%if %{with team}
|
|
|
|
|
-Dteamdctl=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dteamdctl=false \
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with ovs}
|
|
|
|
|
-Dovs=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dovs=false \
|
|
|
|
|
%endif
|
|
|
|
|
-Dselinux=true \
|
2018-10-16 07:31:56 +02:00
|
|
|
-Dpolkit=true \
|
2019-12-10 10:01:24 +01:00
|
|
|
-Dconfig_auth_polkit_default=true \
|
2025-09-18 09:29:40 +02:00
|
|
|
%if %{with polkit_noauth_group}
|
|
|
|
|
-Dpolkit_noauth_group=wheel \
|
|
|
|
|
%endif
|
2018-09-21 22:49:20 +02:00
|
|
|
-Dconcheck=true \
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
-Dlibpsl=true \
|
|
|
|
|
%else
|
|
|
|
|
-Dlibpsl=false \
|
|
|
|
|
%endif
|
|
|
|
|
-Dsession_tracking=systemd \
|
|
|
|
|
-Dsuspend_resume=systemd \
|
2023-01-08 14:04:52 -05:00
|
|
|
-Dsystemdsystemunitdir=%{_unitdir} \
|
2025-11-14 16:46:57 +01:00
|
|
|
-Dsystemdsystemgeneratordir=%{_systemdgeneratordir} \
|
2025-08-20 10:25:31 +02:00
|
|
|
-Dsystem_ca_path=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem \
|
2018-09-21 22:49:20 +02:00
|
|
|
-Ddbus_conf_dir=%{dbus_sys_dir} \
|
|
|
|
|
-Dtests=yes \
|
|
|
|
|
-Dvalgrind=no \
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2018-09-21 22:49:20 +02:00
|
|
|
-Difcfg_rh=true \
|
2024-04-17 10:39:35 +02:00
|
|
|
%else
|
|
|
|
|
-Difcfg_rh=false \
|
|
|
|
|
%endif
|
2019-04-09 13:44:41 +02:00
|
|
|
-Difupdown=false \
|
2018-09-21 22:49:20 +02:00
|
|
|
%if %{with ppp}
|
|
|
|
|
-Dppp=true \
|
2023-02-14 09:03:06 +01:00
|
|
|
-Dpppd="%{_sbindir}/pppd" \
|
|
|
|
|
-Dpppd_plugin_dir="%{_libdir}/pppd/%{ppp_version}" \
|
2021-10-25 20:32:48 +00:00
|
|
|
%else
|
|
|
|
|
-Dppp=false \
|
2020-05-29 17:06:59 +02:00
|
|
|
%endif
|
2018-09-21 22:49:20 +02:00
|
|
|
-Ddist_version=%{version}-%{release} \
|
2024-05-29 15:07:33 +02:00
|
|
|
%if %{with default_ifcfg_rh}
|
2022-02-22 16:59:16 +01:00
|
|
|
-Dconfig_plugins_default=ifcfg-rh \
|
2023-08-10 11:26:50 +02:00
|
|
|
%endif
|
2024-05-29 15:12:25 +02:00
|
|
|
%if %{with ifcfg_migrate}
|
2023-08-10 11:26:50 +02:00
|
|
|
-Dconfig_migrate_ifcfg_rh_default=true \
|
2022-02-22 16:59:16 +01:00
|
|
|
%endif
|
2020-08-07 19:43:35 +02:00
|
|
|
-Dresolvconf=no \
|
|
|
|
|
-Dnetconfig=no \
|
2019-04-09 13:44:41 +02:00
|
|
|
-Dconfig_dns_rc_manager_default=%{dns_rc_manager_default} \
|
2024-07-09 17:58:34 +02:00
|
|
|
-Dconfig_logging_backend_default=journal
|
2018-09-21 22:49:20 +02:00
|
|
|
|
|
|
|
|
%meson_build
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%install
|
2018-09-21 22:49:20 +02:00
|
|
|
%meson_install
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2015-09-03 17:08:03 +02:00
|
|
|
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2015-09-03 17:08:03 +02:00
|
|
|
cp %{SOURCE2} %{buildroot}%{nmlibdir}/conf.d/
|
2018-04-23 18:37:48 +02:00
|
|
|
|
|
|
|
|
%if %{with connectivity_fedora}
|
2018-10-24 09:38:34 +02:00
|
|
|
cp %{SOURCE4} %{buildroot}%{nmlibdir}/conf.d/
|
2018-04-23 18:37:48 +02:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-10 08:48:51 +02:00
|
|
|
%if %{with connectivity_redhat}
|
2018-10-24 09:38:34 +02:00
|
|
|
cp %{SOURCE5} %{buildroot}%{nmlibdir}/conf.d/
|
2019-06-14 15:51:44 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysctldir}
|
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").
This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.
Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).
Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like
- "ipv6.addr-gen-mode=stable-privacy"
- "{ethernet,wifi}.cloned-mac-address=stable"
- "ipv4.dhcp-client-id=stable"
- "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
- "{ipv4,ipv6}.iaid=stable"
Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".
This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.
https://pagure.io/fedora-workstation/issue/350
2023-03-08 08:48:03 +01:00
|
|
|
cp %{SOURCE7} %{buildroot}%{_sysctldir}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 40
|
|
|
|
|
cp %{SOURCE6} %{buildroot}%{nmlibdir}/conf.d/
|
2018-07-10 08:48:51 +02:00
|
|
|
%endif
|
|
|
|
|
|
2024-05-29 15:11:19 +02:00
|
|
|
%if %{with ifcfg_warning}
|
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").
This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.
Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).
Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like
- "ipv6.addr-gen-mode=stable-privacy"
- "{ethernet,wifi}.cloned-mac-address=stable"
- "ipv4.dhcp-client-id=stable"
- "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
- "{ipv4,ipv6}.iaid=stable"
Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".
This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.
https://pagure.io/fedora-workstation/issue/350
2023-03-08 08:48:03 +01:00
|
|
|
cp %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
2022-05-26 15:52:57 -03:00
|
|
|
%endif
|
2024-05-29 15:12:25 +02:00
|
|
|
%if %{with ifcfg_migrate}
|
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").
This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.
Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).
Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like
- "ipv6.addr-gen-mode=stable-privacy"
- "{ethernet,wifi}.cloned-mac-address=stable"
- "ipv4.dhcp-client-id=stable"
- "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
- "{ipv4,ipv6}.iaid=stable"
Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".
This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.
https://pagure.io/fedora-workstation/issue/350
2023-03-08 08:48:03 +01:00
|
|
|
cp %{SOURCE9} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/readme-ifcfg-rh.txt
|
2023-08-11 17:23:18 +02:00
|
|
|
%endif
|
2022-05-26 15:52:57 -03:00
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2019-08-22 15:48:47 +02:00
|
|
|
cp examples/dispatcher/10-ifcfg-rh-routes.sh %{buildroot}%{nmlibdir}/dispatcher.d/
|
|
|
|
|
ln -s ../no-wait.d/10-ifcfg-rh-routes.sh %{buildroot}%{nmlibdir}/dispatcher.d/pre-up.d/
|
|
|
|
|
ln -s ../10-ifcfg-rh-routes.sh %{buildroot}%{nmlibdir}/dispatcher.d/no-wait.d/
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2014-12-17 08:50:05 -05:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
2015-09-03 17:08:03 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
2018-03-18 20:38:49 +01:00
|
|
|
rm -f %{buildroot}%{nmplugindir}/*.la
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2025-03-03 15:42:36 +01:00
|
|
|
# Don't use the *-initrd.service files yet, wait dracut to support them
|
2025-11-14 16:46:57 +01:00
|
|
|
rm -f %{buildroot}%{_systemdgeneratordir}/nm-initrd-generator.sh
|
2025-03-04 07:19:56 +01:00
|
|
|
rm -f %{buildroot}%{_unitdir}/NetworkManager-config-initrd.service
|
|
|
|
|
rm -f %{buildroot}%{_unitdir}/NetworkManager-initrd.service
|
|
|
|
|
rm -f %{buildroot}%{_unitdir}/NetworkManager-wait-online-initrd.service
|
2025-03-03 15:42:36 +01:00
|
|
|
|
2016-03-29 18:07:53 +02:00
|
|
|
# Ensure the documentation timestamps are constant to avoid multilib conflicts
|
2024-08-22 13:14:14 +02:00
|
|
|
find %{buildroot}%{_datadir}/gtk-doc -exec touch --reference meson.build '{}' \+
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2023-01-08 14:04:52 -05:00
|
|
|
%if 0%{?__debug_package} && ! 0%{?flatpak}
|
2016-03-04 22:18:24 +01:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/src/debug/NetworkManager-%{real_version}
|
|
|
|
|
cp valgrind.suppressions %{buildroot}%{_prefix}/src/debug/NetworkManager-%{real_version}
|
|
|
|
|
%endif
|
|
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2022-01-11 15:49:43 +01:00
|
|
|
touch %{buildroot}%{_sbindir}/ifup
|
|
|
|
|
touch %{buildroot}%{_sbindir}/ifdown
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2024-05-29 15:24:13 +02:00
|
|
|
|
2014-10-23 19:27:35 +02:00
|
|
|
%check
|
2018-09-21 22:49:20 +02:00
|
|
|
%if %{with test}
|
|
|
|
|
%meson_test
|
|
|
|
|
%else
|
|
|
|
|
%ninja_test -C %{_vpath_builddir} || :
|
|
|
|
|
%endif
|
2014-10-23 19:27:35 +02:00
|
|
|
|
2017-09-26 14:51:14 +02:00
|
|
|
%pre
|
2022-02-11 13:32:19 +01:00
|
|
|
if [ -f "%{_unitdir}/network-online.target.wants/NetworkManager-wait-online.service" ] ; then
|
2017-09-26 14:51:14 +02:00
|
|
|
# older versions used to install this file, effectively always enabling
|
|
|
|
|
# NetworkManager-wait-online.service. We no longer do that and rely on
|
|
|
|
|
# preset.
|
|
|
|
|
# But on package upgrade we must explicitly enable it (rh#1455704).
|
|
|
|
|
systemctl enable NetworkManager-wait-online.service || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%post
|
2021-01-12 10:24:59 -05:00
|
|
|
# skip triggering if udevd isn't even accessible, e.g. containers or
|
|
|
|
|
# rpm-ostree-based systems
|
|
|
|
|
if [ -S /run/udev/control ]; then
|
|
|
|
|
/usr/bin/udevadm control --reload-rules || :
|
|
|
|
|
/usr/bin/udevadm trigger --subsystem-match=net || :
|
|
|
|
|
fi
|
2020-05-08 09:20:25 +02:00
|
|
|
%firewalld_reload
|
2015-01-26 11:40:08 +01:00
|
|
|
|
2019-04-17 20:06:44 +02:00
|
|
|
%systemd_post %{systemd_units}
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2022-01-11 15:49:43 +01:00
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2022-01-11 15:49:43 +01:00
|
|
|
%post initscripts-updown
|
2018-05-21 17:40:41 +02:00
|
|
|
if [ -f %{_sbindir}/ifup -a ! -L %{_sbindir}/ifup ]; then
|
|
|
|
|
# initscripts package too old, won't let us set an alternative
|
|
|
|
|
/usr/sbin/update-alternatives --remove ifup %{_libexecdir}/nm-ifup >/dev/null 2>&1 || :
|
|
|
|
|
else
|
|
|
|
|
/usr/sbin/update-alternatives --install %{_sbindir}/ifup ifup %{_libexecdir}/nm-ifup 50 \
|
|
|
|
|
--slave %{_sbindir}/ifdown ifdown %{_libexecdir}/nm-ifdown
|
|
|
|
|
fi
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2018-05-21 17:40:41 +02:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2019-11-12 15:54:22 +01:00
|
|
|
%if %{with nm_cloud_setup}
|
|
|
|
|
%post cloud-setup
|
|
|
|
|
%systemd_post %{systemd_units_cloud_setup}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%preun
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
# Package removal, not upgrade
|
|
|
|
|
/bin/systemctl --no-reload disable NetworkManager.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
# Don't kill networking entirely just on package remove
|
|
|
|
|
#/bin/systemctl stop NetworkManager.service >/dev/null 2>&1 || :
|
2022-01-11 15:49:43 +01:00
|
|
|
fi
|
2025-03-03 15:42:36 +01:00
|
|
|
%systemd_preun NetworkManager-wait-online.service NetworkManager-dispatcher.service nm-priv-helper.service
|
2018-05-21 17:40:41 +02:00
|
|
|
|
2022-01-11 15:49:43 +01:00
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2022-01-11 15:49:43 +01:00
|
|
|
%preun initscripts-updown
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
2018-05-21 17:40:41 +02:00
|
|
|
/usr/sbin/update-alternatives --remove ifup %{_libexecdir}/nm-ifup >/dev/null 2>&1 || :
|
2013-11-16 00:58:46 +01:00
|
|
|
fi
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2019-11-12 15:54:22 +01:00
|
|
|
%if %{with nm_cloud_setup}
|
|
|
|
|
%preun cloud-setup
|
|
|
|
|
%systemd_preun %{systemd_units_cloud_setup}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%postun
|
2015-01-26 11:40:08 +01:00
|
|
|
/usr/bin/udevadm control --reload-rules || :
|
|
|
|
|
/usr/bin/udevadm trigger --subsystem-match=net || :
|
2020-05-08 09:20:25 +02:00
|
|
|
%firewalld_reload
|
2015-01-26 11:40:08 +01:00
|
|
|
|
2019-04-17 20:06:44 +02:00
|
|
|
%systemd_postun %{systemd_units}
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2014-02-19 12:15:01 +01:00
|
|
|
|
2019-11-12 15:54:22 +01:00
|
|
|
%if %{with nm_cloud_setup}
|
|
|
|
|
%postun cloud-setup
|
|
|
|
|
%systemd_postun %{systemd_units_cloud_setup}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2016-11-08 10:09:39 +01:00
|
|
|
%files
|
2017-03-02 09:48:13 +01:00
|
|
|
%{dbus_sys_dir}/org.freedesktop.NetworkManager.conf
|
|
|
|
|
%{dbus_sys_dir}/nm-dispatcher.conf
|
2021-12-13 16:06:16 +01:00
|
|
|
%{dbus_sys_dir}/nm-priv-helper.conf
|
2024-05-29 15:10:38 +02:00
|
|
|
%if %{with ifcfg_rh} && %{without split_ifcfg_rh}
|
2017-03-02 09:48:13 +01:00
|
|
|
%{dbus_sys_dir}/nm-ifcfg-rh.conf
|
2022-02-22 10:41:43 +01:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_sbindir}/%{name}
|
|
|
|
|
%{_bindir}/nmcli
|
|
|
|
|
%{_datadir}/bash-completion/completions/nmcli
|
2018-11-29 18:00:39 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/conf.d
|
2013-11-16 00:58:46 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}/dispatcher.d
|
2014-06-07 01:17:16 +02:00
|
|
|
%dir %{_sysconfdir}/%{name}/dispatcher.d/pre-down.d
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/dispatcher.d/pre-up.d
|
2015-07-14 18:17:33 +02:00
|
|
|
%dir %{_sysconfdir}/%{name}/dispatcher.d/no-wait.d
|
2013-11-16 00:58:46 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}/dnsmasq.d
|
2016-02-12 13:01:03 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}/dnsmasq-shared.d
|
2018-11-29 18:00:39 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}/system-connections
|
2013-11-16 00:58:46 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/NetworkManager.conf
|
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").
This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.
Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).
Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like
- "ipv6.addr-gen-mode=stable-privacy"
- "{ethernet,wifi}.cloned-mac-address=stable"
- "ipv4.dhcp-client-id=stable"
- "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
- "{ipv4,ipv6}.iaid=stable"
Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".
This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.
https://pagure.io/fedora-workstation/issue/350
2023-03-08 08:48:03 +01:00
|
|
|
%if 0%{?fedora} >= 40
|
2023-11-21 13:03:24 +01:00
|
|
|
%{nmlibdir}/conf.d/22-wifi-mac-addr.conf
|
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").
This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.
Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).
Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like
- "ipv6.addr-gen-mode=stable-privacy"
- "{ethernet,wifi}.cloned-mac-address=stable"
- "ipv4.dhcp-client-id=stable"
- "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
- "{ipv4,ipv6}.iaid=stable"
Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".
This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.
https://pagure.io/fedora-workstation/issue/350
2023-03-08 08:48:03 +01:00
|
|
|
%endif
|
2021-05-11 14:11:22 +02:00
|
|
|
%ghost %{_sysconfdir}/%{name}/VPN
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_bindir}/nm-online
|
|
|
|
|
%{_libexecdir}/nm-dhcp-helper
|
2014-05-14 14:51:43 -05:00
|
|
|
%{_libexecdir}/nm-dispatcher
|
2018-04-28 20:36:15 +02:00
|
|
|
%{_libexecdir}/nm-initrd-generator
|
2021-05-24 21:49:35 +02:00
|
|
|
%{_libexecdir}/nm-daemon-helper
|
2025-09-26 21:04:04 +02:00
|
|
|
%{_libexecdir}/nm-libnm-helper
|
2021-12-13 16:06:16 +01:00
|
|
|
%{_libexecdir}/nm-priv-helper
|
2018-03-18 20:38:49 +01:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
|
%dir %{nmplugindir}
|
2024-05-29 15:10:38 +02:00
|
|
|
%if %{with ifcfg_rh} && %{without split_ifcfg_rh}
|
2022-02-22 10:41:43 +01:00
|
|
|
%{nmplugindir}/libnm-settings-plugin-ifcfg-rh.so
|
|
|
|
|
%endif
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with nmtui}
|
2014-11-05 23:38:19 +01:00
|
|
|
%exclude %{_mandir}/man1/nmtui*
|
|
|
|
|
%endif
|
2015-06-08 17:51:04 +02:00
|
|
|
%dir %{nmlibdir}
|
|
|
|
|
%dir %{nmlibdir}/conf.d
|
2019-08-22 15:48:47 +02:00
|
|
|
%dir %{nmlibdir}/dispatcher.d
|
|
|
|
|
%dir %{nmlibdir}/dispatcher.d/pre-down.d
|
|
|
|
|
%dir %{nmlibdir}/dispatcher.d/pre-up.d
|
|
|
|
|
%dir %{nmlibdir}/dispatcher.d/no-wait.d
|
2015-05-22 13:26:40 +02:00
|
|
|
%dir %{nmlibdir}/VPN
|
settings: rework tracking settings connections and settings plugins
Completely rework how settings plugin handle connections and how
NMSettings tracks the list of connections.
Previously, settings plugins would return objects of (a subtype of) type
NMSettingsConnection. The NMSettingsConnection was tightly coupled with
the settings plugin. That has a lot of downsides.
Change that. When changing this basic relation how settings connections
are tracked, everything falls appart. That's why this is a huge change.
Also, since I have to largely rewrite the settings plugins, I also
added support for multiple keyfile directories, handle in-memory
connections only by keyfile plugin and (partly) use copy-on-write NMConnection
instances. I don't want to spend effort rewriting large parts while
preserving the old way, that anyway should change. E.g. while rewriting ifcfg-rh,
I don't want to let it handle in-memory connections because that's not right
long-term.
--
If the settings plugins themself create subtypes of NMSettingsConnection
instances, then a lot of knowledge about tracking connections moves
to the plugins.
Just try to follow the code what happend during nm_settings_add_connection().
Note how the logic is spread out:
- nm_settings_add_connection() calls plugin's add_connection()
- add_connection() creates a NMSettingsConnection subtype
- the plugin has to know that it's called during add-connection and
not emit NM_SETTINGS_PLUGIN_CONNECTION_ADDED signal
- NMSettings calls claim_connection() which hocks up the new
NMSettingsConnection instance and configures the instance
(like calling nm_settings_connection_added()).
This summary does not sound like a lot, but try to follow that code. The logic
is all over the place.
Instead, settings plugins should have a very simple API for adding, modifying,
deleting, loading and reloading connections. All the plugin does is to return a
NMSettingsStorage handle. The storage instance is a handle to identify a profile
in storage (e.g. a particular file). The settings plugin is free to subtype
NMSettingsStorage, but it's not necessary.
There are no more events raised, and the settings plugin implements the small
API in a straightforward manner.
NMSettings now drives all of this. Even NMSettingsConnection has now
very little concern about how it's tracked and delegates only to NMSettings.
This should make settings plugins simpler. Currently settings plugins
are so cumbersome to implement, that we avoid having them. It should not be
like that and it should be easy, beneficial and lightweight to create a new
settings plugin.
Note also how the settings plugins no longer care about duplicate UUIDs.
Duplicated UUIDs are a fact of life and NMSettings must handle them. No
need to overly concern settings plugins with that.
--
NMSettingsConnection is exposed directly on D-Bus (being a subtype of
NMDBusObject) but it was also a GObject type provided by the settings
plugin. Hence, it was not possible to migrate a profile from one plugin to
another.
However that would be useful when one profile does not support a
connection type (like ifcfg-rh not supporting VPN). Currently such
migration is not implemented except for migrating them to/from keyfile's
run directory. The problem is that migrating profiles in general is
complicated but in some cases it is important to do.
For example checkpoint rollback should recreate the profile in the right
settings plugin, not just add it to persistent storage. This is not yet
properly implemented.
--
Previously, both keyfile and ifcfg-rh plugin implemented in-memory (unsaved)
profiles, while ifupdown plugin cannot handle them. That meant duplication of code
and a ifupdown profile could not be modified or made unsaved.
This is now unified and only keyfile plugin handles in-memory profiles (bgo #744711).
Also, NMSettings is aware of such profiles and treats them specially.
In particular, NMSettings drives the migration between persistent and non-persistent
storage.
Note that a settings plugins may create truly generated, in-memory profiles.
The settings plugin is free to generate and persist the profiles in any way it
wishes. But the concept of "unsaved" profiles is now something explicitly handled
by keyfile plugin. Also, these "unsaved" keyfile profiles are persisted to file system
too, to the /run directory. This is great for two reasons: first of all, all
profiles from keyfile storage in fact have a backing file -- even the
unsaved ones. It also means you can create "unsaved" profiles in /run
and load them with `nmcli connection load`, meaning there is a file
based API for creating unsaved profiles.
The other advantage is that these profiles now survive restarting
NetworkManager. It's paramount that restarting the daemon is as
non-disruptive as possible. Persisting unsaved files to /run improves
here significantly.
--
In the past, NMSettingsConnection also implemented NMConnection interface.
That was already changed a while ago and instead users call now
nm_settings_connection_get_connection() to delegate to a
NMSimpleConnection. What however still happened was that the NMConnection
instance gets never swapped but instead the instance was modified with
nm_connection_replace_settings_from_connection(), clear-secrets, etc.
Change that and treat the NMConnection instance immutable. Instead of modifying
it, reference/clone a new instance. This changes that previously when somebody
wanted to keep a reference to an NMConnection, then the profile would be cloned.
Now, it is supposed to be safe to reference the instance directly and everybody
must ensure not to modify the instance. nmtst_connection_assert_unchanging()
should help with that.
The point is that the settings plugins may keep references to the
NMConnection instance, and so does the NMSettingsConnection. We want
to avoid cloning the instances as long as they are the same.
Likewise, the device's applied connection can now also be referenced
instead of cloning it. This is not yet done, and possibly there are
further improvements possible.
--
Also implement multiple keyfile directores /usr/lib, /etc, /run (rh #1674545,
bgo #772414).
It was always the case that multiple files could provide the same UUID
(both in case of keyfile and ifcfg-rh). For keyfile plugin, if a profile in
read-only storage in /usr/lib gets modified, then it gets actually stored in
/etc (or /run, if the profile is unsaved).
--
While at it, make /etc/network/interfaces profiles for ifupdown plugin reloadable.
--
https://bugzilla.gnome.org/show_bug.cgi?id=772414
https://bugzilla.gnome.org/show_bug.cgi?id=744711
https://bugzilla.redhat.com/show_bug.cgi?id=1674545
2019-06-13 17:12:20 +02:00
|
|
|
%dir %{nmlibdir}/system-connections
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man5/*
|
2017-10-30 17:32:30 +01:00
|
|
|
%{_mandir}/man7/nmcli-examples.7*
|
2023-01-08 14:04:52 -05:00
|
|
|
%{_mandir}/man8/nm-initrd-generator.8*
|
|
|
|
|
%{_mandir}/man8/NetworkManager.8*
|
|
|
|
|
%{_mandir}/man8/NetworkManager-dispatcher.8*
|
|
|
|
|
%{_mandir}/man8/NetworkManager-wait-online.service.8*
|
2013-11-16 00:58:46 +01:00
|
|
|
%dir %{_localstatedir}/lib/NetworkManager
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2018-07-24 14:05:55 +02:00
|
|
|
%dir %{_sysconfdir}/sysconfig/network-scripts
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
|
2022-02-08 16:43:22 +01:00
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.nm_priv_helper.service
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_datadir}/polkit-1/actions/*.policy
|
2025-09-18 09:29:40 +02:00
|
|
|
%if %{with polkit_noauth_group}
|
|
|
|
|
%{_datadir}/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
|
|
|
|
|
%endif
|
2016-03-14 16:12:04 +01:00
|
|
|
%{_prefix}/lib/udev/rules.d/*.rules
|
2020-05-08 09:20:25 +02:00
|
|
|
%{_prefix}/lib/firewalld/zones/nm-shared.xml
|
2013-11-16 00:58:46 +01:00
|
|
|
# systemd stuff
|
2022-02-11 13:32:19 +01:00
|
|
|
%{_unitdir}/NetworkManager.service
|
|
|
|
|
%{_unitdir}/NetworkManager-wait-online.service
|
|
|
|
|
%{_unitdir}/NetworkManager-dispatcher.service
|
|
|
|
|
%{_unitdir}/nm-priv-helper.service
|
2014-05-21 16:21:50 +02:00
|
|
|
%dir %{_datadir}/doc/NetworkManager/examples
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_datadir}/doc/NetworkManager/examples/server.conf
|
2024-05-29 15:12:25 +02:00
|
|
|
%if %{with ifcfg_warning} || %{with ifcfg_migrate}
|
2022-05-26 15:52:57 -03:00
|
|
|
%{_sysconfdir}/sysconfig/network-scripts/readme-ifcfg-rh.txt
|
|
|
|
|
%endif
|
2022-03-17 11:22:05 +01:00
|
|
|
%doc NEWS AUTHORS README.md CONTRIBUTING.md
|
2015-09-03 17:08:03 +02:00
|
|
|
%license COPYING
|
2019-09-07 18:11:34 +02:00
|
|
|
%license COPYING.LGPL
|
|
|
|
|
%license COPYING.GFDL
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with adsl}
|
2014-03-20 20:01:32 +01:00
|
|
|
%files adsl
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-device-plugin-adsl.so
|
2014-12-19 13:30:39 +01:00
|
|
|
%else
|
2018-03-18 20:38:49 +01:00
|
|
|
%exclude %{nmplugindir}/libnm-device-plugin-adsl.so
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with bluetooth}
|
2014-03-20 20:01:32 +01:00
|
|
|
%files bluetooth
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-device-plugin-bluetooth.so
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with team}
|
2014-06-18 11:10:52 +02:00
|
|
|
%files team
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-device-plugin-team.so
|
2014-06-18 11:10:52 +02:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with wifi}
|
2014-05-14 11:04:07 +02:00
|
|
|
%files wifi
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-device-plugin-wifi.so
|
2014-05-14 11:04:07 +02:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with wwan}
|
2014-03-14 12:34:13 +01:00
|
|
|
%files wwan
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-device-plugin-wwan.so
|
|
|
|
|
%{nmplugindir}/libnm-wwan.so
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2017-08-01 18:27:22 +02:00
|
|
|
%if %{with ovs}
|
|
|
|
|
%files ovs
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-device-plugin-ovs.so
|
2022-02-11 13:32:19 +01:00
|
|
|
%{_unitdir}/NetworkManager.service.d/NetworkManager-ovs.conf
|
2017-10-30 17:32:30 +01:00
|
|
|
%{_mandir}/man7/nm-openvswitch.7*
|
2017-08-01 18:27:22 +02:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-11-05 15:27:16 +01:00
|
|
|
%if %{with ppp}
|
|
|
|
|
%files ppp
|
|
|
|
|
%{_libdir}/pppd/%{ppp_version}/nm-pppd-plugin.so
|
2018-03-18 20:38:49 +01:00
|
|
|
%{nmplugindir}/libnm-ppp-plugin.so
|
2016-11-05 15:27:16 +01:00
|
|
|
%endif
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2016-11-08 10:09:39 +01:00
|
|
|
%files libnm -f %{name}.lang
|
2014-07-31 12:06:31 -04:00
|
|
|
%{_libdir}/libnm.so.*
|
|
|
|
|
%{_libdir}/girepository-1.0/NM-1.0.typelib
|
|
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2014-07-31 12:06:31 -04:00
|
|
|
%files libnm-devel
|
|
|
|
|
%dir %{_includedir}/libnm
|
|
|
|
|
%{_includedir}/libnm/*.h
|
|
|
|
|
%{_libdir}/pkgconfig/libnm.pc
|
|
|
|
|
%{_libdir}/libnm.so
|
|
|
|
|
%{_datadir}/gir-1.0/NM-1.0.gir
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html/libnm
|
|
|
|
|
%{_datadir}/gtk-doc/html/libnm/*
|
2018-01-15 15:31:43 +01:00
|
|
|
%dir %{_datadir}/gtk-doc/html/NetworkManager
|
|
|
|
|
%{_datadir}/gtk-doc/html/NetworkManager/*
|
2016-10-27 12:40:27 +02:00
|
|
|
%{_datadir}/vala/vapi/libnm.deps
|
|
|
|
|
%{_datadir}/vala/vapi/libnm.vapi
|
2016-11-23 14:03:51 +01:00
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
2014-07-31 12:06:31 -04:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2018-04-23 18:37:48 +02:00
|
|
|
%if %{with connectivity_fedora}
|
2014-07-02 19:17:42 +02:00
|
|
|
%files config-connectivity-fedora
|
2015-06-07 15:58:11 +02:00
|
|
|
%dir %{nmlibdir}
|
|
|
|
|
%dir %{nmlibdir}/conf.d
|
|
|
|
|
%{nmlibdir}/conf.d/20-connectivity-fedora.conf
|
2018-04-23 18:37:48 +02:00
|
|
|
%endif
|
2014-07-02 19:17:42 +02:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2018-07-10 08:48:51 +02:00
|
|
|
%if %{with connectivity_redhat}
|
|
|
|
|
%files config-connectivity-redhat
|
|
|
|
|
%dir %{nmlibdir}
|
|
|
|
|
%dir %{nmlibdir}/conf.d
|
|
|
|
|
%{nmlibdir}/conf.d/20-connectivity-redhat.conf
|
2019-06-14 15:51:44 +02:00
|
|
|
%{_sysctldir}/70-nm-connectivity.conf
|
2018-07-10 08:48:51 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%files config-server
|
2015-06-07 15:58:11 +02:00
|
|
|
%dir %{nmlibdir}
|
|
|
|
|
%dir %{nmlibdir}/conf.d
|
|
|
|
|
%{nmlibdir}/conf.d/00-server.conf
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2016-05-05 18:47:34 +02:00
|
|
|
%files dispatcher-routing-rules
|
2019-08-22 15:48:47 +02:00
|
|
|
%{nmlibdir}/dispatcher.d/10-ifcfg-rh-routes.sh
|
|
|
|
|
%{nmlibdir}/dispatcher.d/no-wait.d/10-ifcfg-rh-routes.sh
|
|
|
|
|
%{nmlibdir}/dispatcher.d/pre-up.d/10-ifcfg-rh-routes.sh
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2024-05-29 15:24:13 +02:00
|
|
|
|
2016-02-02 12:57:35 +01:00
|
|
|
%if %{with nmtui}
|
2013-11-16 00:58:46 +01:00
|
|
|
%files tui
|
2014-02-19 12:34:53 +01:00
|
|
|
%{_bindir}/nmtui
|
2013-11-16 00:58:46 +01:00
|
|
|
%{_bindir}/nmtui-edit
|
2014-02-19 12:34:53 +01:00
|
|
|
%{_bindir}/nmtui-connect
|
|
|
|
|
%{_bindir}/nmtui-hostname
|
2014-11-05 23:38:19 +01:00
|
|
|
%{_mandir}/man1/nmtui*
|
2014-02-24 10:45:34 +01:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2018-07-10 08:47:31 +02:00
|
|
|
|
2024-05-29 15:10:38 +02:00
|
|
|
%if %{with split_ifcfg_rh}
|
2022-02-22 10:41:43 +01:00
|
|
|
%files initscripts-ifcfg-rh
|
|
|
|
|
%{nmplugindir}/libnm-settings-plugin-ifcfg-rh.so
|
|
|
|
|
%{dbus_sys_dir}/nm-ifcfg-rh.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2019-11-12 15:54:22 +01:00
|
|
|
%if %{with nm_cloud_setup}
|
|
|
|
|
%files cloud-setup
|
|
|
|
|
%{_libexecdir}/nm-cloud-setup
|
2022-02-11 13:32:19 +01:00
|
|
|
%{_unitdir}/nm-cloud-setup.service
|
|
|
|
|
%{_unitdir}/nm-cloud-setup.timer
|
2019-11-12 15:54:22 +01:00
|
|
|
%{nmlibdir}/dispatcher.d/90-nm-cloud-setup.sh
|
|
|
|
|
%{nmlibdir}/dispatcher.d/no-wait.d/90-nm-cloud-setup.sh
|
2023-06-07 10:45:22 -04:00
|
|
|
%{nmlibdir}/dispatcher.d/pre-up.d/90-nm-cloud-setup.sh
|
2020-12-03 18:12:21 +01:00
|
|
|
%{_mandir}/man8/nm-cloud-setup.8*
|
2019-11-12 15:54:22 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2024-05-29 15:09:00 +02:00
|
|
|
%if %{with ifcfg_rh}
|
2022-01-11 15:49:43 +01:00
|
|
|
%files initscripts-updown
|
|
|
|
|
%{_libexecdir}/nm-ifup
|
|
|
|
|
%ghost %attr(755, root, root) %{_sbindir}/ifup
|
|
|
|
|
%{_libexecdir}/nm-ifdown
|
|
|
|
|
%ghost %attr(755, root, root) %{_sbindir}/ifdown
|
2024-04-17 10:39:35 +02:00
|
|
|
%endif
|
2022-01-11 15:49:43 +01:00
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%changelog
|
|
|
|
|
__CHANGELOG__
|