File NetworkManager-branding.spec of Package NetworkManager-branding.15634

# spec file for package NetworkManager-branding
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define flavor @BUILD_FLAVOR@
%if "%{flavor}" == ""
%define branding_name %{nil}
ExclusiveArch:  %{nil}
%define branding_name %{flavor}
%define dash -
%if "%{flavor}" == "SLE"
%define build_SLE 1
%define build_openSUSE 1
Name:           NetworkManager-branding%{?dash}%{branding_name}
Version:        42.1
Release:        0
Summary:        Default %{branding_name} branding for %{_sysconfdir}/NetworkManager/NetworkManager.conf
License:        GPL-2.0-or-later
Group:          Productivity/Networking/System
Source1:        NetworkManager-branding-COPYING
BuildRequires:  NetworkManager
BuildRequires:  NetworkManager-branding-upstream
%requires_eq    NetworkManager
Supplements:    packageand(NetworkManager:branding-%{branding_name})
Conflicts:      NetworkManager-branding
Provides:       NetworkManager-branding = %{version}
BuildArch:      noarch
%if (0%{?build_SLE} && 0%{?is_opensuse}) || (0%{?build_openSUSE} && ! 0%{?is_opensuse})
# Don't build SLE branding on openSUSE and vice-versa
ExclusiveArch:  %{nil}

NetworkManager attempts to keep an active network connection available
at all times.  The point of NetworkManager is to make networking
configuration and setup as painless and automatic as possible.	If
using DHCP, NetworkManager is intended to replace default routes,
obtain IP addresses from a DHCP server, and change name servers
whenever it sees fit.

This package provides the default %{branding_name} configuration for
%{_sysconfdir}/NetworkManager/NetworkManager.conf, configured to
check connectivity against

%setup -q -T -c %{name}-%{version}
cp -a %{_sysconfdir}/NetworkManager/NetworkManager.conf ./

cat %{SOURCE0} >> NetworkManager.conf

install -m0644 -D NetworkManager.conf %{buildroot}%{_sysconfdir}/NetworkManager/NetworkManager.conf

%license COPYING

%config(noreplace) %{_sysconfdir}/NetworkManager/NetworkManager.conf

openSUSE Build Service is sponsored by