1
0
systemd-presets-branding-op.../systemd-presets-branding-openSUSE.spec

63 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package systemd-presets-branding-openSUSE
#
# 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-openSUSE
Version: 0.3.0
Release: 0
Summary: systemd default presets for openSUSE
License: GPL-2.0+
Group: System/Base
Source0: default-openSUSE.preset
Source1: 99-default-disable.preset
BuildRequires: systemd
#!BuildIgnore: systemd-presets-branding
Requires: systemd
Provides: systemd-presets-branding = %{version}
Supplements: packageand(systemd:branding-openSUSE)
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-openSUSE.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)
/usr/lib/systemd/system-preset/*
%changelog