File bootchart.spec of Package bootchart
#
# spec file for package bootchart (Version 0.9)
#
# Copyright (c) 2009 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
# Coolo wanted a 'bootchart' package for bootchart2, and
# I certainly don't want a 2.0.x version up-stream yet.
%define real_bootchart2_version 0.0.9
%if 0%{?suse_version}
%define system_requires lsb python-cairo python-gtk
%else
%define system_requires moblin-lsb
%define fdupes true
%define py_sitedir /usr/lib/python2.6/site-packages
%define py_libdir /usr/lib/python2.6
%endif
Name: bootchart
BuildRequires: python-devel
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
Url: http://www.bootchart.org
License: GPL v2 or later
Group: Development/Tools/Other
Summary: Boot Process Charting Application
Version: 2.%{real_bootchart2_version}
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: bootchart2-%{real_bootchart2_version}.tar.bz2
Source3: mkinitrd-boot.sh
Source4: mkinitrd-setup.sh
AutoReqProv: on
Requires: acct %system_requires
Requires(post): mkinitrd
%description
bootchart2 instruments your boot process and provides a tool to render
a graph of what was happening during the boot process later.
Authors:
--------
Ziga Mahkovec <ziga.mahkovec@klika.si>
Anders Norgaard <anders.norgaard@gmail.com>
Henning Niss <henningniss@gmail.com>
Michael Meeks <michael.meeeks@novell.com>
%prep
%setup -q -n bootchart2-%{real_bootchart2_version}
%build
export PY_LIBDIR=%py_libdir
export PY_SITEDIR=%py_sitedir
make
%install
export PY_LIBDIR=%py_libdir
export PY_SITEDIR=%py_sitedir
make install DESTDIR=$RPM_BUILD_ROOT
# SUSE specific bits.
install -m 755 -D %SOURCE3 $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-bootchart.sh
install -m 755 -D %SOURCE4 $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-bootchart.sh
%fdupes
%post
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
if [ "$YAST_IS_RUNNING" != "instsys" -a \
! -e /.buildenv -a \
-x /sbin/update-bootloader -a \
-x /sbin/mkinitrd ]; then
/sbin/mkinitrd
/sbin/update-bootloader --refresh
fi
exit 0
%postun
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
if [ "$YAST_IS_RUNNING" != "instsys" -a \
! -e /.buildenv -a \
-x /sbin/update-bootloader -a \
-x /sbin/mkinitrd ]; then
/sbin/mkinitrd
/sbin/update-bootloader --refresh
fi
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README COPYING
/lib/bootchart
/sbin/*
/usr/bin/*
%config(noreplace) /etc/bootchartd.conf
/lib/mkinitrd
%py_sitedir/pybootchartgui
%changelog