SPECS: pld-builder.spec - more something

glen glen at pld-linux.org
Tue Nov 1 21:00:37 CET 2005


Author: glen                         Date: Tue Nov  1 20:00:37 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more something

---- Files affected:
SPECS:
   pld-builder.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/pld-builder.spec
diff -u SPECS/pld-builder.spec:1.18 SPECS/pld-builder.spec:1.19
--- SPECS/pld-builder.spec:1.18	Tue Nov  1 20:22:34 2005
+++ SPECS/pld-builder.spec	Tue Nov  1 21:00:27 2005
@@ -4,16 +4,19 @@
 Name:		pld-builder
 %define		_snap	20051101
 Version:	0.0.%{_snap}
-Release:	0.1
+Release:	0.7
 License:	GPL
 Group:		Development/Building
 Source0:	%{name}.new-%{_snap}.tar.bz2
 # Source0-md5:	736f9e0dd3489a17c719625e5ff33d64
 URL:		http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-builder.new/
+BuildRequires:	python
+Requires:	python-pld-builder = %{version}-%{release}
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sysconfdir	/etc/builder
+%define		_sysconfdir	/etc/pld-builder
+%define		_datadir	/usr/share/%{name}
 
 %description
 PLD rpm builder environment. This is the freshest "new" builder.
@@ -26,6 +29,14 @@
 %description -l pl
 Środowisko budowniczego pakietów dla PLD.
 
+%package -n python-pld-builder
+Summary:	PLD Builder
+Group:		Development/Building
+%pyrequires_eq	python-modules
+
+%description -n python-pld-builder
+PLD Builder python code.
+
 %package client
 Summary:	PLD Builder client
 Group:		Development/Building
@@ -38,14 +49,41 @@
 %prep
 %setup -q -n %{name}.new
 
+sed -i -e '
+	s,~/pld-builder.new/,%{_sharedstatedir}/%{name},
+	/^conf_dir/s,=.*,= "%{_sysconfdir}/",
+
+' PLD_Builder/path.py
+
 %build
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+# client
 install -d $RPM_BUILD_ROOT%{_bindir}
 install client/make-request.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-make-request
 
+# python
+install -d $RPM_BUILD_ROOT%{py_scriptdir}/PLD_Builder
+cp -a PLD_Builder/*.py[co] $RPM_BUILD_ROOT%{py_scriptdir}/PLD_Builder
+
+# other
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a config/{rsync-passwords,*.conf} $RPM_BUILD_ROOT%{_sysconfdir}
+install -d $RPM_BUILD_ROOT%{_datadir}/{bin,admin}
+for a in bin/*.sh; do
+sed -e '
+#	s,cd ~/pld-builder.new,cd %{py_scriptdir},
+	/cd ~\/pld-builder.new/d
+	s,python \(PLD_Builder.*.py\),python %{py_scriptdir}/\1c,
+' $a > $RPM_BUILD_ROOT%{_datadir}/bin/$(basename $a)
+done
+cp -a admin/*.sh $RPM_BUILD_ROOT%{_datadir}/admin
+
+# dirs
+install -d %{_sharedstatedir}/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -53,17 +91,33 @@
 %defattr(644,root,root,755)
 %doc README TODO
 %lang(pl) %doc *.txt
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+
+%dir %{_datadir}
+%dir %{_datadir}/bin
+%attr(755,root,root) %{_datadir}/bin/*
+%dir %{_datadir}/admin
+%attr(755,root,root) %{_datadir}/admin/*
+
+%dir %{_sharedstatedir}/%{name}
 
 %files client
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/%{name}-make-request
 
+%files -n python-pld-builder
+%defattr(644,root,root,755)
+%{py_scriptdir}/PLD_Builder
+
 %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.19  2005/11/01 20:00:27  glen
+- more something
+
 Revision 1.18  2005/11/01 19:22:34  glen
 - adding, once again. written from scratch. not started yet
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pld-builder.spec?r1=1.18&r2=1.19&f=u




More information about the pld-cvs-commit mailing list