2013-11-16 00:58:46 +01:00
|
|
|
# SPEC file to build NetworkManager for testing. It aims for a similar
|
|
|
|
|
# configuration as rhel-7.0 and Fedora rawhide
|
|
|
|
|
#
|
|
|
|
|
# This spec file is not used to create any packages for RHEL, Fedora or any
|
|
|
|
|
# other distribution.
|
|
|
|
|
|
|
|
|
|
%define dbus_version 1.1
|
|
|
|
|
%define dbus_glib_version 0.94
|
|
|
|
|
|
|
|
|
|
%define glib2_version 2.24.0
|
|
|
|
|
%define wireless_tools_version 1:28-0pre9
|
|
|
|
|
%define libnl3_version 3.2.7
|
|
|
|
|
%define ppp_version 2.4.5
|
|
|
|
|
|
|
|
|
|
%define snapshot %{nil}
|
|
|
|
|
%define git_sha __COMMIT__
|
|
|
|
|
%define realversion __VERSION__
|
2014-03-02 18:44:16 +01:00
|
|
|
%define release_version __RELEASE_VERSION__
|
2013-11-16 00:58:46 +01:00
|
|
|
|
2014-02-19 12:34:53 +01:00
|
|
|
%global with_nmtui 1
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%global regen_docs 1
|
|
|
|
|
%else
|
|
|
|
|
%global regen_docs 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define systemd_dir %{_prefix}/lib/systemd/system
|
|
|
|
|
%define udev_dir %{_prefix}/lib/udev
|
|
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%global with_adsl 1
|
|
|
|
|
%global with_bluetooth 1
|
2014-05-14 11:04:07 +02:00
|
|
|
%global with_wifi 1
|
2014-05-14 14:13:47 +02:00
|
|
|
%global with_wimax 0
|
2014-03-14 12:34:13 +01:00
|
|
|
%global with_wwan 1
|
|
|
|
|
|
2014-05-19 18:55:59 +02:00
|
|
|
# WiMAX still supported on <= F19
|
2014-02-19 12:15:01 +01:00
|
|
|
%if ! 0%{?rhel} && (! 0%{?fedora} || 0%{?fedora} < 20)
|
2013-11-16 00:58:46 +01:00
|
|
|
%global with_wimax 1
|
|
|
|
|
%endif
|
2014-05-19 18:55:59 +02:00
|
|
|
|
|
|
|
|
# Bluetooth requires the WWAN plugin
|
|
|
|
|
%if 0%{?with_bluetooth}
|
|
|
|
|
%global with_wwan 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
# No hardware-based plugins on s390
|
|
|
|
|
%global with_adsl 0
|
|
|
|
|
%global with_bluetooth 0
|
|
|
|
|
%global with_wifi 0
|
|
|
|
|
%global with_wimax 0
|
|
|
|
|
%global with_wwan 0
|
2013-11-16 00:58:46 +01:00
|
|
|
%endif
|
|
|
|
|
|
2014-02-19 12:15:01 +01:00
|
|
|
%if 0%{?rhel} || (0%{?fedora} > 19)
|
|
|
|
|
%global with_teamctl 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
Name: NetworkManager
|
|
|
|
|
Summary: Network connection manager and user applications
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: %{realversion}
|
2014-05-12 13:00:27 +02:00
|
|
|
Release: %{release_version}%{snapshot}.%{git_sha}%{?dist}
|
2013-11-16 00:58:46 +01:00
|
|
|
Group: System Environment/Base
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://www.gnome.org/projects/NetworkManager/
|
|
|
|
|
|
|
|
|
|
Source: __SOURCE1__
|
|
|
|
|
Source1: NetworkManager.conf
|
|
|
|
|
Source2: 00-server.conf
|
|
|
|
|
|
2014-03-14 12:34:13 +01:00
|
|
|
#Patch1: 0001-some.patch
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
2014-02-19 12:15:01 +01:00
|
|
|
%if 0%{?fedora} && 0%{?fedora} < 20
|
2013-11-16 00:58:46 +01:00
|
|
|
Requires(post): chkconfig
|
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
|
%endif
|
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
Requires: dbus >= %{dbus_version}
|
|
|
|
|
Requires: dbus-glib >= %{dbus_glib_version}
|
|
|
|
|
Requires: glib2 >= %{glib2_version}
|
|
|
|
|
Requires: iproute
|
|
|
|
|
Requires: dhclient >= 12:4.1.0
|
|
|
|
|
Requires: libnl3 >= %{libnl3_version}
|
|
|
|
|
Requires: %{name}-glib%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: ppp = %{ppp_version}
|
|
|
|
|
Requires: avahi-autoipd
|
|
|
|
|
Requires: dnsmasq
|
|
|
|
|
Requires: udev
|
|
|
|
|
Requires: iptables
|
2014-06-04 11:50:39 +02:00
|
|
|
Requires: readline
|
2013-11-16 00:58:46 +01:00
|
|
|
Obsoletes: dhcdbd
|
2014-03-14 12:34:13 +01:00
|
|
|
Obsoletes: NetworkManager < 1:0.9.9.1-2
|
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
|
|
|
|
|
|
|
|
|
|
BuildRequires: dbus-devel >= %{dbus_version}
|
|
|
|
|
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
BuildRequires: wireless-tools-devel >= %{wireless_tools_version}
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
|
|
BuildRequires: gobject-introspection-devel >= 0.10.3
|
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
|
BuildRequires: /usr/bin/autopoint
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: libnl3-devel >= %{libnl3_version}
|
|
|
|
|
BuildRequires: perl(XML::Parser)
|
|
|
|
|
BuildRequires: automake autoconf intltool libtool
|
|
|
|
|
BuildRequires: ppp = %{ppp_version}
|
|
|
|
|
BuildRequires: ppp-devel = %{ppp_version}
|
|
|
|
|
BuildRequires: nss-devel >= 3.11.7
|
|
|
|
|
BuildRequires: polkit-devel
|
|
|
|
|
BuildRequires: dhclient
|
2014-06-04 11:50:39 +02:00
|
|
|
BuildRequires: readline-devel
|
2013-11-16 00:58:46 +01:00
|
|
|
%if %{regen_docs}
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
|
BuildRequires: libgudev1-devel >= 143
|
|
|
|
|
BuildRequires: vala-tools
|
|
|
|
|
BuildRequires: iptables
|
|
|
|
|
%if 0%{?with_wimax}
|
|
|
|
|
BuildRequires: wimax-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: systemd >= 200-3 systemd-devel
|
|
|
|
|
BuildRequires: libsoup-devel
|
|
|
|
|
BuildRequires: libndp-devel >= 1.0
|
2014-05-19 18:55:59 +02:00
|
|
|
%if 0%{?with_wwan} && (0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19))
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: ModemManager-glib-devel >= 1.0
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_nmtui}
|
|
|
|
|
BuildRequires: newt-devel
|
|
|
|
|
%endif
|
2014-02-19 12:15:01 +01:00
|
|
|
%if 0%{?with_teamctl}
|
2013-11-16 00:58:46 +01:00
|
|
|
BuildRequires: teamd-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
NetworkManager is a system network service that manages your network devices
|
|
|
|
|
and connections, attempting to keep active network connectivity when available.
|
|
|
|
|
It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE devices, and
|
|
|
|
|
provides VPN integration with a variety of different VPN services.
|
|
|
|
|
|
|
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%if 0%{?with_adsl}
|
|
|
|
|
%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}
|
|
|
|
|
Obsoletes: NetworkManager < 1:0.9.9.1-2
|
2014-03-20 20:01:32 +01:00
|
|
|
Obsoletes: NetworkManager-atm
|
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
|
|
|
|
|
|
|
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%if 0%{?with_bluetooth}
|
|
|
|
|
%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}
|
|
|
|
|
Requires: NetworkManager-wwan
|
2014-05-20 13:58:45 +02:00
|
|
|
%if (0%{?fedora} > 19)
|
2014-05-19 18:55:59 +02:00
|
|
|
Requires: bluez >= 5.0
|
|
|
|
|
%else
|
|
|
|
|
Requires: bluez >= 4.101-5
|
|
|
|
|
%endif
|
2014-03-14 12:34:13 +01:00
|
|
|
Obsoletes: NetworkManager < 1:0.9.9.1-2
|
2014-03-20 20:01:32 +01:00
|
|
|
Obsoletes: NetworkManager-bt
|
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
|
|
|
|
|
|
|
|
|
|
|
2014-05-14 11:04:07 +02:00
|
|
|
%if 0%{?with_wifi}
|
|
|
|
|
%package wifi
|
|
|
|
|
Summary: Wifi plugin for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2014-05-19 18:55:59 +02:00
|
|
|
Requires: wpa_supplicant >= 1:1.1
|
2014-05-14 11:04:07 +02:00
|
|
|
Obsoletes: NetworkManager < 1:0.9.9.1-2
|
|
|
|
|
|
|
|
|
|
%description wifi
|
|
|
|
|
This package contains NetworkManager support for Wifi and OLPC devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2014-03-14 12:34:13 +01:00
|
|
|
%if 0%{?with_wwan}
|
|
|
|
|
%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
|
2014-03-14 12:34:13 +01:00
|
|
|
Obsoletes: NetworkManager < 1:0.9.9.1-2
|
|
|
|
|
|
|
|
|
|
%description wwan
|
|
|
|
|
This package contains NetworkManager support for mobile broadband (3G) devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%if 0%{?with_wimax}
|
|
|
|
|
%package wimax
|
|
|
|
|
Summary: Intel WiMAX device support for NetworkManager
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: wimax
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description wimax
|
|
|
|
|
This package contains NetworkManager support for Intel WiMAX mobile broadband
|
|
|
|
|
devices.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries and headers for adding NetworkManager support to applications
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: dbus-devel >= %{dbus_version}
|
|
|
|
|
Requires: dbus-glib >= %{dbus_glib_version}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains various headers accessing some NetworkManager functionality
|
|
|
|
|
from applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package glib
|
|
|
|
|
Summary: Libraries for adding NetworkManager support to applications that use glib.
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: dbus >= %{dbus_version}
|
|
|
|
|
Requires: dbus-glib >= %{dbus_glib_version}
|
|
|
|
|
|
|
|
|
|
%description glib
|
|
|
|
|
This package contains the libraries that make it easier to use some NetworkManager
|
|
|
|
|
functionality from applications that use glib.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package glib-devel
|
|
|
|
|
Summary: Header files for adding NetworkManager support to applications that use glib.
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: %{name}-glib%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: glib2-devel
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
Requires: dbus-glib-devel >= %{dbus_glib_version}
|
|
|
|
|
|
|
|
|
|
%description glib-devel
|
|
|
|
|
This package contains the header and pkg-config files for development applications using
|
|
|
|
|
NetworkManager functionality from applications that use glib.
|
|
|
|
|
|
|
|
|
|
%package config-server
|
|
|
|
|
Summary: NetworkManager config file for "server-like" defaults
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%if 0%{with_nmtui}
|
|
|
|
|
%package tui
|
|
|
|
|
Summary: NetworkManager curses-based UI
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: %{name}-glib%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n NetworkManager-%{realversion}
|
|
|
|
|
|
2014-03-14 12:34:13 +01:00
|
|
|
#%patch1 -p1 -b .0001-some.orig
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%if %{regen_docs}
|
|
|
|
|
# back up pristine docs and use them instead of generated ones, which make
|
|
|
|
|
# multilib unhappy due to different timestamps in the generated content
|
|
|
|
|
%{__cp} -R docs ORIG-docs
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
#autopoint --force
|
|
|
|
|
#intltoolize --force
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--with-dhclient=yes \
|
|
|
|
|
--with-dhcpcd=no \
|
|
|
|
|
--with-crypto=nss \
|
|
|
|
|
--enable-more-warnings=error \
|
|
|
|
|
--enable-ppp=yes \
|
2014-02-19 12:15:01 +01:00
|
|
|
%if 0%{?rhel} || (0%{?fedora} > 19)
|
2013-11-16 00:58:46 +01:00
|
|
|
--with-modem-manager-1=yes \
|
|
|
|
|
%else
|
|
|
|
|
--with-modem-manager-1=no \
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_wimax}
|
|
|
|
|
--enable-wimax=yes \
|
|
|
|
|
%else
|
|
|
|
|
--enable-wimax=no \
|
|
|
|
|
%endif
|
|
|
|
|
--enable-vala=yes \
|
|
|
|
|
%if 0%{?regen_docs}
|
|
|
|
|
--enable-gtk-doc \
|
2014-04-15 20:25:18 +02:00
|
|
|
%else
|
|
|
|
|
--disable-gtk-doc \
|
2013-11-16 00:58:46 +01:00
|
|
|
%endif
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
--with-wext=yes \
|
|
|
|
|
%else
|
|
|
|
|
--with-wext=no \
|
2014-02-19 12:15:01 +01:00
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_teamctl}
|
|
|
|
|
--enable-teamctl=yes \
|
|
|
|
|
%else
|
|
|
|
|
--enable-teamctl=no \
|
2013-11-16 00:58:46 +01:00
|
|
|
%endif
|
|
|
|
|
--enable-polkit=yes \
|
|
|
|
|
--enable-modify-system=yes \
|
|
|
|
|
--enable-concheck \
|
|
|
|
|
--with-session-tracking=systemd \
|
|
|
|
|
--with-suspend-resume=systemd \
|
|
|
|
|
--with-systemdsystemunitdir=%{systemd_dir} \
|
|
|
|
|
--with-udev-dir=%{udev_dir} \
|
|
|
|
|
--with-system-ca-path=/etc/pki/tls/certs \
|
|
|
|
|
--with-tests=yes \
|
|
|
|
|
--with-valgrind=no \
|
|
|
|
|
--enable-ifcfg-rh=yes \
|
|
|
|
|
--with-system-libndp=yes \
|
|
|
|
|
--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \
|
|
|
|
|
--with-dist-version=%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# install NM
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%{__cp} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.d
|
|
|
|
|
%{__cp} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.d
|
|
|
|
|
|
|
|
|
|
# create a VPN directory
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/VPN
|
|
|
|
|
|
|
|
|
|
# create a keyfile plugin system settings directory
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/system-connections
|
|
|
|
|
|
|
|
|
|
# create a dnsmasq.d directory
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dnsmasq.d
|
|
|
|
|
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
|
|
|
|
|
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_localstatedir}/lib/NetworkManager
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/pppd/%{ppp_version}/*.la
|
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/NetworkManager/*.la
|
|
|
|
|
|
|
|
|
|
install -m 0755 test/.libs/nm-online %{buildroot}/%{_bindir}
|
|
|
|
|
|
|
|
|
|
%if %{regen_docs}
|
|
|
|
|
# install the pristine docs
|
|
|
|
|
%{__cp} ORIG-docs/libnm-glib/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libnm-glib/
|
|
|
|
|
%{__cp} ORIG-docs/libnm-util/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libnm-util/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post NetworkManager.service NetworkManager-wait-online.service NetworkManager-dispatcher.service
|
|
|
|
|
|
|
|
|
|
%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 || :
|
|
|
|
|
fi
|
|
|
|
|
%systemd_preun NetworkManager-wait-online.service NetworkManager-dispatcher.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun
|
|
|
|
|
|
2014-02-19 12:15:01 +01:00
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%post glib -p /sbin/ldconfig
|
|
|
|
|
%postun glib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%doc COPYING NEWS AUTHORS README CONTRIBUTING TODO
|
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/nm-avahi-autoipd.conf
|
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf
|
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf
|
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
|
%{_bindir}/nmcli
|
|
|
|
|
%{_datadir}/bash-completion/completions/nmcli
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/dispatcher.d
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/dnsmasq.d
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/VPN
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/NetworkManager.conf
|
|
|
|
|
%{_bindir}/nm-online
|
|
|
|
|
%{_libexecdir}/nm-dhcp-helper
|
|
|
|
|
%{_libexecdir}/nm-avahi-autoipd.action
|
|
|
|
|
%{_libexecdir}/nm-dispatcher.action
|
|
|
|
|
%dir %{_libdir}/NetworkManager
|
|
|
|
|
%{_libdir}/NetworkManager/libnm-settings-plugin*.so
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
%dir %{_localstatedir}/lib/NetworkManager
|
|
|
|
|
%dir %{_sysconfdir}/NetworkManager/system-connections
|
|
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.NetworkManager.service
|
|
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
|
|
|
|
|
%{_libdir}/pppd/%{ppp_version}/nm-pppd-plugin.so
|
|
|
|
|
%{_datadir}/polkit-1/actions/*.policy
|
|
|
|
|
%{udev_dir}/rules.d/*.rules
|
|
|
|
|
# systemd stuff
|
|
|
|
|
%{systemd_dir}/NetworkManager.service
|
|
|
|
|
%{systemd_dir}/NetworkManager-wait-online.service
|
|
|
|
|
%{systemd_dir}/NetworkManager-dispatcher.service
|
|
|
|
|
%{systemd_dir}/network-online.target.wants/NetworkManager-wait-online.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
|
|
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%if 0%{?with_adsl}
|
|
|
|
|
%files adsl
|
2014-03-14 12:34:13 +01:00
|
|
|
%defattr(-,root,root,0755)
|
2014-03-20 20:01:32 +01:00
|
|
|
%{_libdir}/%{name}/libnm-device-plugin-adsl.so
|
2014-05-14 14:13:47 +02:00
|
|
|
%else
|
|
|
|
|
%exclude %{_libdir}/%{name}/libnm-device-plugin-adsl.so
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2014-03-20 20:01:32 +01:00
|
|
|
%if 0%{?with_bluetooth}
|
|
|
|
|
%files bluetooth
|
2014-03-14 12:34:13 +01:00
|
|
|
%defattr(-,root,root,0755)
|
2014-03-20 20:01:32 +01:00
|
|
|
%{_libdir}/%{name}/libnm-device-plugin-bluetooth.so
|
2014-05-14 14:13:47 +02:00
|
|
|
%else
|
|
|
|
|
%exclude %{_libdir}/%{name}/libnm-device-plugin-bluetooth.so
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2014-05-14 11:04:07 +02:00
|
|
|
%if 0%{?with_wifi}
|
|
|
|
|
%files wifi
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%{_libdir}/%{name}/libnm-device-plugin-wifi.so
|
|
|
|
|
%else
|
|
|
|
|
%exclude %{_libdir}/%{name}/libnm-device-plugin-wifi.so
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-03-14 12:34:13 +01:00
|
|
|
%if 0%{?with_wwan}
|
|
|
|
|
%files wwan
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%{_libdir}/%{name}/libnm-device-plugin-wwan.so
|
|
|
|
|
%{_libdir}/%{name}/libnm-wwan.so
|
2014-05-14 14:13:47 +02:00
|
|
|
%else
|
|
|
|
|
%exclude %{_libdir}/%{name}/libnm-device-plugin-wwan.so
|
|
|
|
|
%exclude %{_libdir}/%{name}/libnm-wwan.so
|
2014-03-14 12:34:13 +01:00
|
|
|
%endif
|
|
|
|
|
|
2013-11-16 00:58:46 +01:00
|
|
|
%if 0%{?with_wimax}
|
|
|
|
|
%files wimax
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%{_libdir}/%{name}/libnm-device-plugin-wimax.so
|
2014-05-14 14:13:47 +02:00
|
|
|
%else
|
|
|
|
|
%exclude %{_libdir}/%{name}/libnm-device-plugin-wimax.so
|
2013-11-16 00:58:46 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%doc ChangeLog docs/api/html/*
|
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
|
%{_includedir}/%{name}/%{name}.h
|
|
|
|
|
%{_includedir}/%{name}/NetworkManagerVPN.h
|
|
|
|
|
%{_includedir}/%{name}/nm-version.h
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html/NetworkManager
|
|
|
|
|
%{_datadir}/gtk-doc/html/NetworkManager/*
|
|
|
|
|
%{_datadir}/vala/vapi/*.deps
|
|
|
|
|
%{_datadir}/vala/vapi/*.vapi
|
|
|
|
|
|
|
|
|
|
%files glib
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%{_libdir}/libnm-glib.so.*
|
|
|
|
|
%{_libdir}/libnm-glib-vpn.so.*
|
|
|
|
|
%{_libdir}/libnm-util.so.*
|
|
|
|
|
%{_libdir}/girepository-1.0/NetworkManager-1.0.typelib
|
|
|
|
|
%{_libdir}/girepository-1.0/NMClient-1.0.typelib
|
|
|
|
|
|
|
|
|
|
%files glib-devel
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%dir %{_includedir}/libnm-glib
|
|
|
|
|
%{_includedir}/libnm-glib/*.h
|
|
|
|
|
%{_includedir}/%{name}/nm-setting*.h
|
|
|
|
|
%{_includedir}/%{name}/nm-connection.h
|
|
|
|
|
%{_includedir}/%{name}/nm-utils-enum-types.h
|
|
|
|
|
%{_includedir}/%{name}/nm-utils.h
|
|
|
|
|
%{_libdir}/pkgconfig/libnm-glib.pc
|
|
|
|
|
%{_libdir}/pkgconfig/libnm-glib-vpn.pc
|
|
|
|
|
%{_libdir}/pkgconfig/libnm-util.pc
|
|
|
|
|
%{_libdir}/libnm-glib.so
|
|
|
|
|
%{_libdir}/libnm-glib-vpn.so
|
|
|
|
|
%{_libdir}/libnm-util.so
|
|
|
|
|
%{_datadir}/gir-1.0/NetworkManager-1.0.gir
|
|
|
|
|
%{_datadir}/gir-1.0/NMClient-1.0.gir
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html/libnm-glib
|
|
|
|
|
%{_datadir}/gtk-doc/html/libnm-glib/*
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html/libnm-util
|
|
|
|
|
%{_datadir}/gtk-doc/html/libnm-util/*
|
|
|
|
|
|
|
|
|
|
%files config-server
|
|
|
|
|
%defattr(-,root,root,0755)
|
2014-05-21 16:21:50 +02:00
|
|
|
%dir %{_sysconfdir}/%{name}/conf.d
|
2013-11-16 00:58:46 +01:00
|
|
|
%config %{_sysconfdir}/%{name}/conf.d/00-server.conf
|
|
|
|
|
|
2014-02-24 10:45:34 +01:00
|
|
|
%if 0%{?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-02-24 10:45:34 +01:00
|
|
|
%endif
|
2013-11-16 00:58:46 +01:00
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
__CHANGELOG__
|
|
|
|
|
|