packages: bootchart2/bootchart2.spec - rel 1; R:systemd-init, install rewor...

cactus cactus at pld-linux.org
Sat Jan 28 09:38:17 CET 2012


Author: cactus                       Date: Sat Jan 28 08:38:17 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 1; R:systemd-init, install rework, files

---- Files affected:
packages/bootchart2:
   bootchart2.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/bootchart2/bootchart2.spec
diff -u packages/bootchart2/bootchart2.spec:1.1 packages/bootchart2/bootchart2.spec:1.2
--- packages/bootchart2/bootchart2.spec:1.1	Sun Dec 11 18:01:00 2011
+++ packages/bootchart2/bootchart2.spec	Sat Jan 28 09:38:12 2012
@@ -3,13 +3,14 @@
 Summary(pl.UTF-8):	Wizualizacja wydajności procesu startu systemu
 Name:		bootchart2
 Version:	0.14.2
-Release:	0.1
+Release:	1
 License:	GPL v2
 Group:		Base
 Source0:	https://github.com/downloads/mmeeks/bootchart/%{name}-%{version}.tar.bz2
 # Source0-md5:	298487b2bda897e974f9862f0a0ad0ee
 URL:		https://github.com/mmeeks/bootchart
 BuildRequires:	python
+Requires:	systemd-init
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,6 +28,9 @@
 %package gui
 Summary:	GUI for bootchart2
 Group:		Base
+Requires:	python-pycairo
+Requires:	python-pygobject
+Requires:	python-pygtk-gtk
 
 %description gui
 A tool for performance analysis and visualization of the GNU/Linux
@@ -39,7 +43,6 @@
 
 %build
 %{__make} \
-	SYSTEMD_UNIT_DIR=%{systemdunitdir} \
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags}"
 
@@ -47,16 +50,31 @@
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
+	NO_PYTHON_COMPILE=1 \
+	PY_LIBDIR=%{py_scriptdir} \
+	SYSTEMD_UNIT_DIR=%{systemdunitdir} \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%post
+%systemd_post
+%systemd_enable bootchart.service
+
+%preun
+%systemd_preun bootchart.service
+
+%postun
+%systemd_postun bootchart.service
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/bootchartd
+%dir /lib/bootchart
+%dir /lib/bootchart/tmpfs
 %attr(755,root,root) /lib/bootchart/bootchart-collector
-%{_sysconfdir}/bootchartd.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bootchartd.conf
 %{systemdunitdir}/bootchart-done.service
 %{systemdunitdir}/bootchart-done.timer
 %{systemdunitdir}/bootchart.service
@@ -75,6 +93,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2012/01/28 08:38:12  cactus
+- rel 1; R:systemd-init, install rework, files
+
 Revision 1.1  2011/12/11 17:01:00  wiget
 - init
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bootchart2/bootchart2.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list