SPECS: snake.spec - builds, packages on ac (with py2.4 and egg-info)

glen glen at pld-linux.org
Thu Feb 14 00:07:03 CET 2008


Author: glen                         Date: Wed Feb 13 23:07:03 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- builds, packages on ac (with py2.4 and egg-info)

---- Files affected:
SPECS:
   snake.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/snake.spec
diff -u SPECS/snake.spec:1.1 SPECS/snake.spec:1.2
--- SPECS/snake.spec:1.1	Wed Feb 13 23:57:05 2008
+++ SPECS/snake.spec	Thu Feb 14 00:06:57 2008
@@ -6,10 +6,12 @@
 License:	GPL v2+
 Group:		Applications/Networking
 URL:		http://hosted.fedoraproject.org/projects/snake/
-Source0:	https://fedorahosted.org/snake/attachment/wiki/SnakeReleases/%{name}-%{version}.tar.bz2
-# Source0-md5:	2978fb3a5328a268b51703172523f2f7
+Source0:	https://fedorahosted.org/snake/attachment/wiki/SnakeReleases/%{name}-%{version}.tar.bz2?format=raw
+# Source0-md5:	f72759c922da7bd3af906d002cbf0ed8
 BuildRequires:	python-devel
-BuildRequires:	python-setuptools-devel
+BuildRequires:	python-setuptools
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	sed >= 4.0
 Requires:	yum
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -32,6 +34,7 @@
 
 %prep
 %setup -q
+%{__sed} -i -e 's,/etc/init.d,/etc/rc.d/init.d,' setup.py
 
 %build
 CFLAGS="%{rpmcflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
@@ -40,14 +43,17 @@
 rm -rf $RPM_BUILD_ROOT
 %{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/snake
-install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/snake/{kickstarts,trees}
+install -d $RPM_BUILD_ROOT/var/lib/snake
+install -d $RPM_BUILD_ROOT/var/lib/snake/{kickstarts,trees}
+
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post server
 /sbin/chkconfig --add snake-server
+%service snake-server restart
 
 %preun server
 if [ "$1" -eq 0 ]; then
@@ -63,22 +69,22 @@
 %attr(755,root,root) %{_sbindir}/snake-tree
 %attr(755,root,root) %{_sbindir}/snake-ks
 %attr(755,root,root) %{_bindir}/snake-rawhide-status
-%dir %{py_sitedir}/snake
-%{py_sitedir}/snake/__init__.py[co]
-%{py_sitedir}/snake/client.py[co]
-%{py_sitedir}/snake/constants.py[co]
-%{py_sitedir}/snake/dbushelper.py[co]
-%{py_sitedir}/snake/install.py[co]
-%{py_sitedir}/snake/log.py[co]
-%{py_sitedir}/snake/machineinfo.py[co]
-%{py_sitedir}/snake/saverestore.py[co]
-%{py_sitedir}/snake/tui.py[co]
-%{py_sitedir}/snake/tree.py[co]
-%{py_sitedir}/snake/uri.py[co]
-%{py_sitedir}/snake/util.py[co]
-%{py_sitedir}/snake/xmlhelper.py[co]
-%{py_sitedir}/snake/zeroconf.py[co]
-%{py_sitedir}/snake-%{version}-*.egg-info
+%dir %{py_sitescriptdir}/snake
+%{py_sitescriptdir}/snake/__init__.py[co]
+%{py_sitescriptdir}/snake/client.py[co]
+%{py_sitescriptdir}/snake/constants.py[co]
+%{py_sitescriptdir}/snake/dbushelper.py[co]
+%{py_sitescriptdir}/snake/install.py[co]
+%{py_sitescriptdir}/snake/log.py[co]
+%{py_sitescriptdir}/snake/machineinfo.py[co]
+%{py_sitescriptdir}/snake/saverestore.py[co]
+%{py_sitescriptdir}/snake/tui.py[co]
+%{py_sitescriptdir}/snake/tree.py[co]
+%{py_sitescriptdir}/snake/uri.py[co]
+%{py_sitescriptdir}/snake/util.py[co]
+%{py_sitescriptdir}/snake/xmlhelper.py[co]
+%{py_sitescriptdir}/snake/zeroconf.py[co]
+%{py_sitescriptdir}/snake-%{version}-*.egg-info
 %{_mandir}/man1/snake-tree.1*
 %{_mandir}/man1/snake-ks.1*
 %{_mandir}/man1/snake-install.1*
@@ -87,24 +93,24 @@
 %defattr(644,root,root,755)
 %doc docs/DESIGN
 %attr(755,root,root) %{_sbindir}/snake-server
-%dir %{_localstatedir}/lib/snake
-%dir %{_localstatedir}/lib/snake/kickstarts
-%{_localstatedir}/lib/snake/kickstarts/minimal.ks
-%dir %{_localstatedir}/lib/snake/trees
+%dir /var/lib/snake
+%dir /var/lib/snake/kickstarts
+/var/lib/snake/kickstarts/minimal.ks
+%dir /var/lib/snake/trees
 %config(noreplace) %{_sysconfdir}/snake.conf
-%config(noreplace) /etc/logrotate.d/snake-server
+#%config(noreplace) /etc/logrotate.d/snake-server
 %attr(754,root,root) /etc/rc.d/init.d/snake-server
-%{py_sitedir}/snake/compose.py[co]
-%{py_sitedir}/snake/config.py[co]
-%{py_sitedir}/snake/dbushelper.py[co]
-%{py_sitedir}/snake/kickstart.py[co]
-%{py_sitedir}/snake/labindex.py[co]
-%{py_sitedir}/snake/labquery.py[co]
-%{py_sitedir}/snake/machine.py[co]
-%{py_sitedir}/snake/plugins.py[co]
-%{py_sitedir}/snake/server.py[co]
-%{py_sitedir}/snake/ksdb.py[co]
-%{py_sitedir}/snake/treedb.py[co]
+%{py_sitescriptdir}/snake/compose.py[co]
+%{py_sitescriptdir}/snake/config.py[co]
+%{py_sitescriptdir}/snake/dbushelper.py[co]
+%{py_sitescriptdir}/snake/kickstart.py[co]
+%{py_sitescriptdir}/snake/labindex.py[co]
+%{py_sitescriptdir}/snake/labquery.py[co]
+%{py_sitescriptdir}/snake/machine.py[co]
+%{py_sitescriptdir}/snake/plugins.py[co]
+%{py_sitescriptdir}/snake/server.py[co]
+%{py_sitescriptdir}/snake/ksdb.py[co]
+%{py_sitescriptdir}/snake/treedb.py[co]
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -112,6 +118,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008-02-13 23:06:57  glen
+- builds, packages on ac (with py2.4 and egg-info)
+
 Revision 1.1  2008-02-13 22:57:05  glen
 - raw from upstream .spec (well with some adapter and brains)
-
================================================================

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



More information about the pld-cvs-commit mailing list