File insserv.spec of Package insserv
#
# spec file for package insserv
#
# 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/
#
# norootforbuild
Name: insserv
License: GPLv2+
Group: System/Base
Provides: aaa_base:/sbin/insserv
AutoReqProv: on
Version: 1.14.0
Release: 30
Summary: A Program to Arrange Initialization Scripts
Url: http://savannah.nongnu.org/projects/sysvinit/
Source0: http://download.savannah.gnu.org/releases/sysvinit/insserv-%{version}.tar.bz2
Source1: insserv.conf
Patch: insserv-%{version}.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir /etc
%global _sbindir /sbin
%description
Insserv enables an installed system init script (boot script) by
reading the comment header of the script and calculating the
dependencies between all scripts.
Authors:
--------
Dr. Werner Fink <werner@suse.de>
%prep
%setup
%patch
%build
# remove -DOSCBUILD if all packages are fixed
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DOSCBUILD"
make %{?_smp_mflags} INITDIR=%{_sysconfdir}/init.d INSCONF=%{_sysconfdir}/insserv.conf CC="%{__cc}"
%install
make install DESTDIR=%{buildroot} INITDIR=%{_sysconfdir}/init.d INSCONF=%{_sysconfdir}/insserv.conf
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/
mkdir -p %{buildroot}%{_datadir}/insserv/overrides
%files
%defattr(-,root,root)
%config %{_sysconfdir}/insserv.conf
%{_sbindir}/insserv
/lib/lsb/*
%{_prefix}/lib/lsb/*
%{_mandir}/man8/insserv.8.gz
%dir %{_datadir}/insserv
%dir %{_datadir}/insserv/overrides
%changelog