File systemd-presets-branding-SLE.spec of Package systemd-presets-branding-SLE.1742

#
# spec file for package systemd-presets-branding-SLE
#
# Copyright (c) 2015 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:           systemd-presets-branding-SLE
Version:        12.0
Release:        0
Summary:        systemd default presets for SUSE Linux Enterprise
License:        ISC
Group:          System/Base
Source0:        default-SLE.preset
Source1:        99-default-disable.preset
BuildRequires:  systemd
#!BuildIgnore:  systemd-presets-branding
Requires:       systemd
Provides:       systemd-presets-branding = %{version}
Supplements:    packageand(systemd:branding-SLE)
Conflicts:      otherproviders(systemd-presets-branding)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%systemd_requires

%description
Default presets for systemd on openSUSE distribution.

%prep
%setup -q -T -c

%build

%install
mkdir -p %{buildroot}/usr/lib/systemd/system-preset
install -m644 %{SOURCE0}  %{buildroot}/usr/lib/systemd/system-preset/90-default-SLE.preset
install -m644 %{SOURCE1}  %{buildroot}/usr/lib/systemd/system-preset/

%post
systemctl daemon-reload >/dev/null 2>&1 || :

%postun
if [ $1 -eq 0 ]; then
systemctl daemon-reload >/dev/null 2>&1 || :
fi

%files
%defattr(-,root,root)
%dir /usr/lib/systemd
%dir /usr/lib/systemd/system-preset/
/usr/lib/systemd/system-preset/90-default-SLE.preset
/usr/lib/systemd/system-preset/99-default-disable.preset

%changelog
openSUSE Build Service is sponsored by