[Erp5-report] r24040 - /spec/mandriva/2008.0/erp5-TimerService/erp5-TimerService.spec
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 6 23:12:38 CEST 2008
Author: kazuhiko
Date: Mon Oct 6 23:12:33 2008
New Revision: 24040
URL: http://svn.erp5.org?rev=24040&view=rev
Log:
use setup.py for correct installation
Modified:
spec/mandriva/2008.0/erp5-TimerService/erp5-TimerService.spec
Modified: spec/mandriva/2008.0/erp5-TimerService/erp5-TimerService.spec
URL: http://svn.erp5.org/spec/mandriva/2008.0/erp5-TimerService/erp5-TimerService.spec?rev=24040&r1=24039&r2=24040&view=diff
==============================================================================
--- spec/mandriva/2008.0/erp5-TimerService/erp5-TimerService.spec (original)
+++ spec/mandriva/2008.0/erp5-TimerService/erp5-TimerService.spec Mon Oct 6 23:12:33 2008
@@ -1,7 +1,8 @@
%define product TimerService
%define version 5.1.2
-%define release 1
+%define release 2
%define pyver 2.4
+%define py_sitedir /usr/lib/python2.4/site-packages
%define rpm_prefix erp5
%define zope_home %{_prefix}/lib/erp5
@@ -30,23 +31,24 @@
ERP5 and CMFActivity for cluster management.
#----------------------------------------------------------------------
-%define python_home %{_libdir}/python%pyver/site-packages
%prep
%setup -q -c
%build
-#cd %{product}/timerserver
-#python setup.py build
+cd %{product}/timerserver
+python2.4 setup.py build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
+%{__rm} -rf %{buildroot}%{software_home}/Products/%{product}/timerserver
+
%py_compile %{buildroot}%{software_home}/Products
-%{__mkdir_p} %{buildroot}%{python_home}
-mv -f %{buildroot}%{software_home}/Products/%{product}/timerserver %{buildroot}%{python_home}
+cd %{product}/timerserver
+python2.4 setup.py install --root=%{buildroot}
%clean
%{__rm} -rf %{buildroot}
@@ -74,11 +76,14 @@
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/INSTALL.txt %{product}/CREDITS.txt %{product}/VERSION.txt
-%{python_home}/timerserver
+%{py_sitedir}/timerserver*
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
+* Mon Oct 6 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 5.1.2-2nxd2008.1
+- use setup.py for correct installation
+
* Mon Oct 06 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 5.1.2-1nxd2008.1
- version 5.1.2
More information about the Erp5-report
mailing list