File upstart.spec of Package upstart

# spec file for package upstart (Version 0.6.5)
# Copyright (c) 2010 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

Name:           upstart
Version:        0.6.5
Release:        7
Summary:        An event-driven init system
Group:          System/Boot
License:        GPLv2 and LGPLv2+
# remove tests which fail in koji
Patch0:         upstart-remove-tests.patch
Patch1:         upstart-telinit.patch
Patch2:         upstart-audit-events.patch
Patch5:         upstart-fix-decl.diff
Patch6:         scripts.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      sysvinit
Provides:       sbin_init
BuildRequires:  audit-devel gettext libexpat-devel
BuildRequires:  dbus-1-devel >= 1.2.16 libnih-devel pkg-config
Requires:       sysvinit-tools

Upstart is an event-based replacement for the /sbin/init daemon which
handles starting of tasks and services during boot, stopping them
during shutdown and supervising them while the system is running.

%setup -q
%patch0 -p1 -b .tests
%patch1 -p1 -b .u
%patch2 -p1 -b .audit
%patch5 -p1
%patch6 -p1

%configure --sbindir=/sbin --libdir=/%{_lib}
make %{?_smp_mflags} VERBOSE=1

rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# libupstart and libnih aren't shipped
rm -f %{buildroot}/%{_lib}/libupstart.*
rm -f %{buildroot}/%{_lib}/libnih.*
rm -f %{buildroot}/%{_includedir}/libnih.h
rm -f %{buildroot}/%{_includedir}/libupstart.h
rm -rf %{buildroot}/%{_includedir}/nih
rm -rf %{buildroot}/%{_includedir}/upstart
rm -rf %{buildroot}/%{_datadir}/aclocal/compiler.m4
rm -rf %{buildroot}/%{_datadir}/aclocal/linker.m4
rm -rf %{buildroot}/%{_datadir}/aclocal/misc.m4
%find_lang %{name}

# times out badly in OBS - works locally
# make check

rm -rf %{buildroot}

%files -f %{name}.lang
%doc NEWS
%doc TODO
%config %{_sysconfdir}/init/
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/Upstart.conf

openSUSE Build Service is sponsored by