SPECS: koji.spec - pl, service, some other fixes and todos

qboosh qboosh at pld-linux.org
Sat Jan 19 22:02:59 CET 2008


Author: qboosh                       Date: Sat Jan 19 21:02:59 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, service, some other fixes and todos

---- Files affected:
SPECS:
   koji.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/koji.spec
diff -u SPECS/koji.spec:1.6 SPECS/koji.spec:1.7
--- SPECS/koji.spec:1.6	Mon Jan  7 19:25:35 2008
+++ SPECS/koji.spec	Sat Jan 19 22:02:53 2008
@@ -1,9 +1,10 @@
 # $Revision$, $Date$
 Summary:	Build system tools
+Summary(pl.UTF-8):	Narzędzia systemu budującego
 Name:		koji
 Version:	1.2.3
 Release:	0.1
-License:	LGPL
+License:	LGPL v2.1
 Group:		Applications/System
 Source0:	%{name}-%{version}.tar.bz2
 # Source0-md5:	22cc3917703906b92d009190101ca6d5
@@ -20,8 +21,13 @@
 Koji is a system for building and tracking RPMS. The base package
 contains shared libraries and the command-line interface.
 
+%description -l pl.UTF-8
+Koji to system do budowania i śledzenia pakietów RPM. Podstawowy
+pakiet zawiera biblioteki współdzielone i interfejs linii poleceń.
+
 %package hub
 Summary:	Koji XMLRPC interface
+Summary(pl.UTF-8):	Interfejs XMLRPC do Koji
 Group:		Applications/Networking
 Requires:	%{name} = %{version}-%{release}
 Requires:	apache-mod_alias
@@ -30,10 +36,14 @@
 Requires:	python-PyGreSQL
 
 %description hub
-koji-hub is the XMLRPC interface to the koji database
+koji-hub is the XMLRPC interface to the Koji database.
+
+%description hub -l pl.UTF-8
+koji-hub to interfejs XMLRPC do bazy danych Koji.
 
 %package builder
 Summary:	Koji RPM builder daemon
+Summary(pl.UTF-8):	Demon systemu Koji budujący pakiety RPM
 Group:		Applications/System
 Requires(post):	/sbin/chkconfig
 Requires(post):	/sbin/service
@@ -52,17 +62,26 @@
 koji-builder is the daemon that runs on build machines and executes
 tasks that come through the Koji system.
 
+%description builder -l pl.UTF-8
+koji-builder to demon działający na maszynach budujących i wykonujący
+zadania przychodzące poprzez system Koji.
+
 %package utils
 Summary:	Koji Utilities
+Summary(pl.UTF-8):	Narzędzia Koji
 Group:		Applications/Networking
 Requires:	%{name} = %{version}-%{release}
 Requires:	python-PyGreSQL
 
 %description utils
-Utilities for the Koji system
+Utilities for the Koji system.
+
+%description utils -l pl.UTF-8
+Narzędzia dla systemu Koji.
 
 %package web
 Summary:	Koji Web UI
+Summary(pl.UTF-8):	Interfejs WWW do Koji
 Group:		Applications/Networking
 Requires:	%{name} = %{version}-%{release}
 Requires:	apache-mod_auth_kerb
@@ -75,13 +94,14 @@
 Requires:	python-PyGreSQL
 
 %description web
-koji-web is a web UI to the Koji system.
+koji-web is a Web UI to the Koji system.
+
+%description web -l pl.UTF-8
+koji-web to interfejs WWW do systemu Koji.
 
 %prep
 %setup -q
 
-%build
-
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
@@ -92,12 +112,36 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre builder
+# TODO: don't use 55 (reserved for xdm)
+%useradd -u 55 -r -d /home/services/koji -s /bin/false -c "Koji builder" -g nobody kojibuilder
+
+%post builder
+/sbin/chkconfig --add kojid
+%service kojid restart
+
+%preun builder
+if [ "$1" = "0" ]; then
+	%service kojid stop
+	/sbin/chkconfig --del kojid
+fi
+
+%post utils
+/sbin/chkconfig --add kojira
+%service kojira restart
+
+%preun utils
+if [ "$1" = "0" ]; then
+	%service kojira stop
+	/sbin/chkconfig --del kojira
+fi
+
 %files
 %defattr(644,root,root,755)
+%doc docs Authors COPYING
 %attr(755,root,root) %{_bindir}/*
 %{py_sitedir}/%{name}
 %config(noreplace) %{_sysconfdir}/koji.conf
-%doc docs Authors COPYING LGPL
 
 %files hub
 %defattr(644,root,root,755)
@@ -107,7 +151,7 @@
 %files utils
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/kojira
-%{_initrddir}/kojira
+%attr(754,root,root) /etc/rc.d/init.d/kojira
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kojira
 %{_sysconfdir}/kojira
 %config(noreplace) %{_sysconfdir}/kojira/kojira.conf
@@ -121,40 +165,22 @@
 %files builder
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/kojid
-%{_initrddir}/kojid
+%attr(754,root,root) /etc/rc.d/init.d/kojid
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kojid
 %{_sysconfdir}/kojid
 %config(noreplace) %{_sysconfdir}/kojid/kojid.conf
+# TODO: kill -
 %attr(-,kojibuilder,kojibuilder) %{_sysconfdir}/mock/koji
 
-%pre builder
-%useradd -u 55 -r -d /home/services/koji -s /bin/false -c "Koji builder" -g nobody kojibuilder
-
-%post builder
-/sbin/chkconfig --add kojid
-/sbin/service kojid condrestart &> /dev/null || :
-
-%preun builder
-if [ $1 = 0 ]; then
-  %service kojid stop &> /dev/null
-  /sbin/chkconfig --del kojid
-fi
-
-%post utils
-/sbin/chkconfig --add kojira
-/sbin/service kojira condrestart &> /dev/null || :
-%preun utils
-if [ $1 = 0 ]; then
-  %service kojira stop &> /dev/null || :
-  /sbin/chkconfig --del kojira
-fi
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2008-01-19 21:02:53  qboosh
+- pl, service, some other fixes and todos
+
 Revision 1.6  2008-01-07 18:25:35  patrys
 - R: mod_mime
 
@@ -174,4 +200,3 @@
 - initial, taken from Fedora
 - NFY
 - TODO: init scripts, deps, pldization
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/koji.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list