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

59 lines
1.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package systemd-presets-branding-openSUSE
#
# Copyright (c) 2011 SUSE LINUX Products 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.1.0
Release: 0
License: GPLv2+
Summary: systemd default presets for openSUSE
Group: System/Base
Source0: default-openSUSE.preset
BuildRequires: systemd
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}/lib/systemd/system.preset
install -m644 %{SOURCE0} %{buildroot}/lib/systemd/system.preset
%post
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%postun
if [ $1 -eq 0 ]; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%files
%defattr(-,root,root)
/lib/systemd/system.preset/*
%changelog