Name: bootchart Version: 0.9 Release: 4%{?dist} Summary: Boot Process Performance Visualization License: GPLv3+ Url: http://www.bootchart.org/ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Group: Applications/System Requires: jpackage-utils >= 0:1.5 Requires: jakarta-commons-cli >= 0:1.0 BuildRequires: ant BuildRequires: jpackage-utils >= 0:1.5 BuildRequires: jakarta-commons-cli >= 0:1.0 BuildRequires: gcc-java >= 4.0.2 BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description A tool for performance analysis and visualization of the GNU/Linux boot process. Resource utilization and process information are collected during the boot process and are later rendered in a PNG, SVG or EPS encoded chart. %define boottitle "Bootchart logging" %prep %setup -q %build # Remove the bundled commons-cli rm -rf lib/org/apache/commons/cli lib/org/apache/commons/lang CLASSPATH=%{_javadir}/commons-cli.jar ant %install rm -rf $RPM_BUILD_ROOT # jar install -p -D -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # script install -p -D -m 755 script/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name} # javadoc install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} # logger install -p -D -m 755 script/bootchartd $RPM_BUILD_ROOT/sbin/bootchartd install -p -D -m 644 script/bootchartd.conf $RPM_BUILD_ROOT/etc/bootchartd.conf %{_bindir}/aot-compile-rpm %clean rm -rf $RPM_BUILD_ROOT %post # Add a new grub/lilo entry if [ -x /sbin/grubby ]; then grubby --update-kernel=ALL --args="init=/sbin/bootchartd" fi if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi %preun # Remove the grub/lilo entry if [ -x /sbin/grubby ]; then grubby --update-kernel=ALL --remove-args="init=/sbin/bootchartd" fi if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi %files %defattr(-,root,root,-) %doc ChangeLog COPYING INSTALL README README.logger TODO lib/LICENSE.cli.txt lib/LICENSE.compress.txt lib/LICENSE.epsgraphics.txt lib/NOTICE.txt %{_javadocdir}/%{name}-%{version} %{_javadir}/* %attr(0755,root,root) /sbin/bootchartd %config(noreplace) /etc/bootchartd.conf %dir %attr(0755,root,root) %{_bindir}/bootchart %{_libdir}/gcj/%{name} %changelog * Fri Aug 24 2007 Adam Jackson 0.9-4 - Fold the subpackages together, not really worth splitting. - Add gcj pre-compilation. * Thu Aug 16 2007 Adam Jackson 0.9-3 - Fix license. - Change logger group to System Environment/Base. - install -p. - Change buildroot to the new dogma. * Wed Aug 15 2007 Adam Jackson 0.9-2 - Update URL - Change Group to Apps/System. - Merge the base (renderer) and javadoc subpackages. - Force use of bootchartd when it's installed, rather than only install it for the current kernel or mess with rpm triggers. * Fri Dec 15 2006 John (J5) Palmieri - 0.9-1 - Initial fedora package