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

#
# spec file for package NetworkManager-branding-SLE
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           NetworkManager-branding-SLE
Version:        15.0
Release:        0
Summary:        Default SLE branding for %{_sysconfdir}/NetworkManager/NetworkManager.conf
License:        GPL-2.0+
Group:          Productivity/Networking/System
Url:            http://www.gnome.org/projects/NetworkManager/
Source0:        NetworkManager.conf.in
Source1:        %{name}-COPYING
BuildRequires:  NetworkManager
BuildRequires:  NetworkManager-branding-upstream
%requires_eq    NetworkManager
Supplements:    packageand(NetworkManager:branding-SLE)
Conflicts:      otherproviders(NetworkManager-branding)
Provides:       NetworkManager-branding = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
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 SLE configuration for
%{_sysconfdir}/NetworkManager/NetworkManager.conf, configured to
check connectivity against http://conncheck.opensuse.org.

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

%build
cat %{SOURCE0} >> NetworkManager.conf

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

%files
%defattr(-,root,root)
%doc COPYING
%config(noreplace) %{_sysconfdir}/NetworkManager/NetworkManager.conf

%changelog