SPECS: initng.spec - add gui package. wasn't able to test as it cr...

glen glen at pld-linux.org
Sat Jan 14 18:13:29 CET 2006


Author: glen                         Date: Sat Jan 14 17:13:29 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add gui package. wasn't able to test as it crashes
- lazyness - disable utmp patch on amd64

---- Files affected:
SPECS:
   initng.spec (1.51 -> 1.52) 

---- Diffs:

================================================================
Index: SPECS/initng.spec
diff -u SPECS/initng.spec:1.51 SPECS/initng.spec:1.52
--- SPECS/initng.spec:1.51	Sat Jan 14 17:03:21 2006
+++ SPECS/initng.spec	Sat Jan 14 18:13:24 2006
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	gui		# build gui. needs kdepyuic from python-PyKDE. crashes.
+#
 Summary:	A next generation init replacement
 Summary(pl):	Zamiennik inita następnej generacji
 Name:		initng
@@ -19,12 +23,16 @@
 BuildRequires:	automake
 BuildRequires:	libtool
 BuildRequires:	sed >= 4.0
+%{?with_gui:BuildRequires:	python-PyKDE >= 4.0.0}
 Requires:	bash
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_exec_prefix	/
 %define		_sysconfdir		/etc/%{name}
 %define		_libdir			/%{_lib}/%{name}
+%define		_bindir			%{_prefix}/sbin
+# this is to avoid ugly //sbin
+%define		_sbindir		/sbin
 
 %description
 Initng is a full replacement of the old and in many ways deprecated
@@ -40,6 +48,16 @@
 szybszy start systemu uniksowego oraz zapewnia większą kontrolę i
 statystyki.
 
+%package gui
+Summary:	InitNG GUI
+Group:		X11/Applications
+Requires:	python
+Requires:	python-PyQt
+Requires:	python-PyKDE
+
+%description gui
+InitNG Runlevel Editor with DCOP support.
+
 # just temp place holder for those scripts
 %package fixes
 Summary:	initng experimental patches and fixes
@@ -75,7 +93,13 @@
 %prep
 %setup -q %{?_snap:-n %{name}}
 %patch0 -p1
+%ifnarch amd64
+# patch needs fixing:
+#initng_initctl.c: In function `makeutmp':
+#initng_initctl.c:228: warning: passing arg 1 of `gettimeofday' from incompatible pointer type
+#make[3]: *** [initng_initctl.lo] Error 1
 %patch1 -p1
+%endif
 
 %build
 %{__libtoolize}
@@ -95,6 +119,11 @@
 %{__make} \
 	CPPFLAGS='-DINITNG_PLUGIN_DIR=\"/%{_lib}/%{name}\"'
 
+%if %{with gui}
+%{__make} generate \
+	-C gui/runlevelEditor
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -105,6 +134,12 @@
 # validity
 libtool --mode=install cp devtool/test_parser $RPM_BUILD_ROOT%{_sbindir}/%{name}-test_parser
 
+%if %{with gui}
+cd gui/runlevelEditor
+install InitNGRunlevelEditor.py $RPM_BUILD_ROOT%{_bindir}
+install initng.py $RPM_BUILD_ROOT%{_bindir}
+%endif
+
 # no devel package, so no devel files
 rm -f $RPM_BUILD_ROOT/%{_lib}/libinitng.la
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
@@ -160,6 +195,12 @@
 %{_mandir}/man8/install_service.8*
 %{_mandir}/man8/system_off.8*
 
+%if %{with gui}
+%files gui
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*.py
+%endif
+
 %files fixes
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) /etc/pcmcia/network
@@ -203,6 +244,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.52  2006/01/14 17:13:24  glen
+- add gui package. wasn't able to test as it crashes
+- lazyness - disable utmp patch on amd64
+
 Revision 1.51  2006/01/14 16:03:21  glen
 - 0.5.2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/initng.spec?r1=1.51&r2=1.52&f=u



More information about the pld-cvs-commit mailing list