2011-09-29 11:35:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package systemd-presets-branding-openSUSE
|
|
|
|
#
|
2013-02-22 10:08:22 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-29 11:35:44 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-10-07 14:57:22 +02:00
|
|
|
|
2011-09-29 11:35:44 +02:00
|
|
|
Name: systemd-presets-branding-openSUSE
|
2012-10-18 09:21:25 +02:00
|
|
|
Version: 0.2.0
|
2011-09-29 11:35:44 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: systemd default presets for openSUSE
|
2012-07-05 08:37:38 +02:00
|
|
|
License: GPL-2.0+
|
2011-09-29 11:35:44 +02:00
|
|
|
Group: System/Base
|
|
|
|
Source0: default-openSUSE.preset
|
|
|
|
BuildRequires: systemd
|
2011-10-16 11:53:08 +02:00
|
|
|
#!BuildIgnore: systemd-presets-branding
|
2011-09-29 11:35:44 +02:00
|
|
|
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
|
2012-10-18 09:21:25 +02:00
|
|
|
mkdir -p %{buildroot}/usr/lib/systemd/system-preset
|
|
|
|
install -m644 %{SOURCE0} %{buildroot}/usr/lib/systemd/system-preset
|
2011-09-29 11:35:44 +02:00
|
|
|
|
|
|
|
%post
|
2012-10-18 09:21:25 +02:00
|
|
|
systemctl daemon-reload >/dev/null 2>&1 || :
|
2011-09-29 11:35:44 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2012-10-18 09:21:25 +02:00
|
|
|
systemctl daemon-reload >/dev/null 2>&1 || :
|
2011-09-29 11:35:44 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-10-18 09:21:25 +02:00
|
|
|
/usr/lib/systemd/system-preset/*
|
2011-09-29 11:35:44 +02:00
|
|
|
|
|
|
|
%changelog
|