File insserv-compat.spec of Package insserv-compat

#
# spec file for package insserv-compat
#
# Copyright (c) 2013 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/
#
# icecream 0


Name:           insserv-compat
Summary:        Simple insserv replacement for systemd only systems
License:        MIT
Group:          System/Base
Version:        0.1
Release:        0
Url:            https://build.opensuse.org/package/show?package=%name&project=openSUSE%3AFactory
Source:         insserv.pl
Source1:        init-functions
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Obsoletes:      insserv <= 1.16.0
Provides:       insserv = 1.16.1-1

%description 
insserv is used enable System V init scripts. This package only
contains a stub implemenation for use on systemd only systems.

%prep
%setup -q -c -T
%build
pod2man -s 8 -c 'The openSUSE boot concept' -r "openSUSE 12.3" -u %SOURCE0 insserv.8

%install
for i in /sbin %{_sbindir} /usr/lib/lsb /lib/lsb %{_mandir}/man8; do
	install -d -m 755 %{buildroot}$i
done
install -m755 %{SOURCE0} %{buildroot}%{_sbindir}/insserv
install -m755 %{SOURCE1} %{buildroot}/lib/lsb/init-functions
install -m644 insserv.8 %{buildroot}%{_mandir}/man8
ln -s ../usr/sbin/insserv  %{buildroot}/sbin/insserv
ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/install_initd
ln -s ../../sbin/insserv  %{buildroot}/usr/lib/lsb/remove_initd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sbindir}/insserv
/sbin/insserv
/lib/lsb/init-functions
/usr/lib/lsb/install_initd
/usr/lib/lsb/remove_initd
%{_mandir}/man8/insserv.*

%changelog
openSUSE Build Service is sponsored by