diff --git a/.cvsignore b/.cvsignore index e69de29..4d51faa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +SimPy-1.6.1.tar.gz diff --git a/python-simpy-1.6.1-no-shebang.patch b/python-simpy-1.6.1-no-shebang.patch new file mode 100644 index 0000000..d4f6b7a --- /dev/null +++ b/python-simpy-1.6.1-no-shebang.patch @@ -0,0 +1,112 @@ +diff -urN SimPy-orig/__init__.py SimPy/__init__.py +--- SimPy-orig/__init__.py 2005-11-16 12:55:29.000000000 +0200 ++++ SimPy/__init__.py 2005-11-25 15:38:44.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """ SimPy a process-based simulation package in Python + + LICENSE: +diff -urN SimPy-orig/Lister.py SimPy/Lister.py +--- SimPy-orig/Lister.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/Lister.py 2005-11-25 15:39:07.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """Lister 1.6.1 + Pretty-printer for SimPy class objects + '$Revision: 1.1.1.6 $ $Date: 2005/11/12 04:39:47 $ kgm' +diff -urN SimPy-orig/Monitor.py SimPy/Monitor.py +--- SimPy-orig/Monitor.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/Monitor.py 2005-11-25 15:39:16.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """Monitor 1.6.1 + '$Revision: 1.1.1.8 $ $Date: 2005/11/12 04:39:57 $ kgm' + This dummy module is only provided for backward compatibility. +diff -urN SimPy-orig/MonitorTest.py SimPy/MonitorTest.py +--- SimPy-orig/MonitorTest.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/MonitorTest.py 2005-11-25 15:39:26.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """ + Testing Monitor, Tally. + This may be included in SimPyTest eventually. +diff -urN SimPy-orig/SimGUI.py SimPy/SimGUI.py +--- SimPy-orig/SimGUI.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/SimGUI.py 2005-11-25 15:39:43.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """SimGUI 1.6.1 + __version__ = '$Revision: 1.1.1.5 $ $Date: 2005/11/12 04:40:06 $ kgm' + +diff -urN SimPy-orig/SimPlot.py SimPy/SimPlot.py +--- SimPy-orig/SimPlot.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/SimPlot.py 2005-11-25 15:39:49.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """ SimPlot 1.6.1 + + $Revision: 1.1.1.10 $ $Date: 2005/11/16 09:39:29 $ kgm +diff -urN SimPy-orig/Simulation.py SimPy/Simulation.py +--- SimPy-orig/Simulation.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/Simulation.py 2005-11-25 15:39:56.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """Simulation 1.6.1 + __version__ = '$Revision: 1.1.1.17 $ $Date: 2005/11/12 08:18:36 $ kgm' + LICENSE: +diff -urN SimPy-orig/SimulationRT.py SimPy/SimulationRT.py +--- SimPy-orig/SimulationRT.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/SimulationRT.py 2005-11-25 15:40:03.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """SimulationRT 1.6.1 + __version__ = '$Revision: 1.1.1.9 $ $Date: 2005/11/12 05:43:35 $ kgm' + LICENSE: +diff -urN SimPy-orig/SimulationStep.py SimPy/SimulationStep.py +--- SimPy-orig/SimulationStep.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/SimulationStep.py 2005-11-25 15:40:10.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """SimulationStep 1.6.1 + __version__ = '$Revision: 1.1.1.9 $ $Date: 2005/11/12 05:43:35 $ kgm' + LICENSE: +diff -urN SimPy-orig/SimulationTrace.py SimPy/SimulationTrace.py +--- SimPy-orig/SimulationTrace.py 2005-11-16 12:55:28.000000000 +0200 ++++ SimPy/SimulationTrace.py 2005-11-25 15:40:17.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """SimulationTrace 1.6.1 + __version__ = '$Revision: 1.1.1.11 $ $Date: 2005/11/12 05:43:35 $ kgm' + LICENSE: +diff -urN SimPy-orig/testSimPy.py SimPy/testSimPy.py +--- SimPy-orig/testSimPy.py 2005-11-16 12:55:29.000000000 +0200 ++++ SimPy/testSimPy.py 2005-11-25 15:40:33.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # testSimPy.py test routines + # $Author: kgmuller $ $Revision: 1.1.1.11 $ + # $Date: 2005/11/16 09:35:50 $ +diff -urN SimPy-orig/testSimPyRT.py SimPy/testSimPyRT.py +--- SimPy-orig/testSimPyRT.py 2005-11-16 12:55:29.000000000 +0200 ++++ SimPy/testSimPyRT.py 2005-11-25 15:40:43.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # testSimPyRT.py test routines + #Based on testSimpy.py to test full compatibility + #between Simulation and SimulationRT +diff -urN SimPy-orig/testSimPyStep.py SimPy/testSimPyStep.py +--- SimPy-orig/testSimPyStep.py 2005-11-16 12:55:29.000000000 +0200 ++++ SimPy/testSimPyStep.py 2005-11-25 15:40:53.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # testSimPyStep.py test routines + # $Author: kgmuller $ $Revision: 1.1.1.5 $ + # $Date: 2005/11/12 04:40:49 $ +diff -urN SimPy-orig/testSimPyTrace.py SimPy/testSimPyTrace.py +--- SimPy-orig/testSimPyTrace.py 2005-11-16 12:55:29.000000000 +0200 ++++ SimPy/testSimPyTrace.py 2005-11-25 15:41:28.000000000 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # testSimPyTrace.py test routines + # $Author: kgmuller $ $Revision: 1.1.1.5 $ + # $Date: 2005/11/12 04:41:03 $ diff --git a/python-simpy.spec b/python-simpy.spec new file mode 100644 index 0000000..84f51b7 --- /dev/null +++ b/python-simpy.spec @@ -0,0 +1,79 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%define pkgname SimPy + +Name: python-simpy +Version: 1.6.1 +Release: 2 +Summary: Python simulation framework +Group: Development/Languages +License: LGPL +URL: http://simpy.sourceforge.net +Source0: http://download.sourceforge.net/simpy/SimPy-%{version}.tar.gz +Patch1: python-simpy-1.6.1-no-shebang.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: python-devel +Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") +Requires: tkinter + +%description +SimPy (= Simulation in Python) is an object-oriented, process-based +discrete-event simulation language based on standard Python. It +provides the modeler with components of a simulation model including +processes, for active components like customers, messages, and +vehicles, and resources, for passive components that form limited +capacity congestion points like servers, checkout counters, and +tunnels. It also provides monitor variables to aid in gathering +statistics. Random variates are provided by the standard Python random +module. + +%package doc +Group: Documentation +Summary: Source code documentation for SimPy + +%description doc +SimPy (= Simulation in Python) is an object-oriented, process-based +discrete-event simulation language based on standard Python. This +package contains the source code documentation. + + +%prep +%setup -q -n %{pkgname}-%{version} +%patch1 + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +# choose html over txt files for documentation +%doc *.html PKG-INFO LGPLlicense_files SimPyDocs SimPyModels +%dir %{python_sitelib}/%{pkgname}/ +%{python_sitelib}/%{pkgname}/*.py +%{python_sitelib}/%{pkgname}/*.pyc +%ghost %{python_sitelib}/%{pkgname}/*.pyo + + +%files doc +%defattr(-,root,root) +%doc SimPyDocs/SimPy_Sourcecode_Documentation/* + + +%changelog +* Wed Dec 21 2005 Sarantis Paskalis - 1.6.1-2 +- Add source code documentation as a -doc package (John Mahowald). +- Add Requires: tkinter for SimGUI to work (John Mahowald). + +* Fri Nov 25 2005 Sarantis Paskalis - 1.6.1-1 +- First packaging version for FE. diff --git a/sources b/sources index e69de29..83dfcca 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6de42d6289bee6d767d07f8839f89d07 SimPy-1.6.1.tar.gz