|
|
57f9b03 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
57f9b03 |
%define pkgname SimPy
|
|
|
57f9b03 |
|
|
|
57f9b03 |
Name: python-simpy
|
|
|
a92d2f3 |
Version: 1.7.1
|
|
|
9f4b0f1 |
Release: 4%{?dist}
|
|
|
57f9b03 |
Summary: Python simulation framework
|
|
|
57f9b03 |
Group: Development/Languages
|
|
|
57f9b03 |
License: LGPL
|
|
|
57f9b03 |
URL: http://simpy.sourceforge.net
|
|
|
a92d2f3 |
Source0: http://dl.sf.net/simpy/SimPy-%{version}.tar.gz
|
|
|
57f9b03 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
57f9b03 |
BuildArch: noarch
|
|
|
57f9b03 |
BuildRequires: python-devel
|
|
|
57f9b03 |
Requires: tkinter
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%description
|
|
|
57f9b03 |
SimPy (= Simulation in Python) is an object-oriented, process-based
|
|
|
57f9b03 |
discrete-event simulation language based on standard Python. It
|
|
|
57f9b03 |
provides the modeler with components of a simulation model including
|
|
|
57f9b03 |
processes, for active components like customers, messages, and
|
|
|
57f9b03 |
vehicles, and resources, for passive components that form limited
|
|
|
57f9b03 |
capacity congestion points like servers, checkout counters, and
|
|
|
57f9b03 |
tunnels. It also provides monitor variables to aid in gathering
|
|
|
57f9b03 |
statistics. Random variates are provided by the standard Python random
|
|
|
57f9b03 |
module.
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%package doc
|
|
|
57f9b03 |
Group: Documentation
|
|
|
57f9b03 |
Summary: Source code documentation for SimPy
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%description doc
|
|
|
57f9b03 |
SimPy (= Simulation in Python) is an object-oriented, process-based
|
|
|
57f9b03 |
discrete-event simulation language based on standard Python. This
|
|
|
57f9b03 |
package contains the source code documentation.
|
|
|
57f9b03 |
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%prep
|
|
|
57f9b03 |
%setup -q -n %{pkgname}-%{version}
|
|
|
884ac6d |
# Remove the shebangs to make rpmlint happy
|
|
|
884ac6d |
%{__sed} -i '1{\?^#!/usr/bin/env\ python$?d}' SimPy/*.py
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%build
|
|
|
57f9b03 |
%{__python} setup.py build
|
|
|
57f9b03 |
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%install
|
|
|
57f9b03 |
rm -rf $RPM_BUILD_ROOT
|
|
|
9f4b0f1 |
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
57f9b03 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
57f9b03 |
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%clean
|
|
|
57f9b03 |
rm -rf $RPM_BUILD_ROOT
|
|
|
57f9b03 |
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%files
|
|
|
57f9b03 |
%defattr(-,root,root,-)
|
|
|
9f4b0f1 |
%{python_sitelib}/%{pkgname}/
|
|
|
57f9b03 |
# choose html over txt files for documentation
|
|
|
a92d2f3 |
#%doc *.html PKG-INFO LGPLlicense_files SimPyModels
|
|
|
a92d2f3 |
%doc *.html PKG-INFO SimPyModels
|
|
|
884ac6d |
%doc SimPyDocs/*.html SimPyDocs/*.css
|
|
|
884ac6d |
%doc SimPyDocs/bankprograms SimPyDocs/images SimPyDocs/Interfacing SimPyDocs/SimGUIManual SimPyDocs/SimPlotManual SimPyDocs/SimStepManual
|
|
|
57f9b03 |
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%files doc
|
|
|
57f9b03 |
%defattr(-,root,root)
|
|
|
57f9b03 |
%doc SimPyDocs/SimPy_Sourcecode_Documentation/*
|
|
|
57f9b03 |
|
|
|
57f9b03 |
|
|
|
57f9b03 |
%changelog
|
|
|
9f4b0f1 |
* Wed Sep 6 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.7.1-4
|
|
|
9f4b0f1 |
- Un-ghost .pyo files. Thanks Christian Iseli (bug #205424).
|
|
|
9f4b0f1 |
|
|
|
73103c5 |
* Tue Aug 29 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.7.1-3
|
|
|
73103c5 |
- Bump release for FC6 rebuild.
|
|
|
73103c5 |
|
|
|
3d16eab |
* Mon Jun 19 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.7.1-2
|
|
|
a92d2f3 |
- SimPy-1.7.1
|
|
|
3d16eab |
- Bump release
|
|
|
a92d2f3 |
|
|
|
a92d2f3 |
* Fri Mar 24 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.7-3
|
|
|
528941c |
- Bump release to make tag for building.
|
|
|
528941c |
|
|
|
528941c |
* Fri Mar 24 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.7-2
|
|
|
528941c |
- Bump release
|
|
|
528941c |
|
|
|
884ac6d |
* Thu Mar 23 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.7-1
|
|
|
884ac6d |
- SimPy-1.7
|
|
|
884ac6d |
- Drop shebang removal patch. Implement it with sed script.
|
|
|
884ac6d |
|
|
|
a47378b |
* Mon Feb 20 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.6.1-4
|
|
|
a47378b |
- Rebuild for FC5.
|
|
|
a47378b |
|
|
|
9927cab |
* Mon Dec 26 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.6.1-3
|
|
|
d94481f |
- Add dist in release. Bump release.
|
|
|
9927cab |
|
|
|
57f9b03 |
* Wed Dec 21 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.6.1-2
|
|
|
57f9b03 |
- Add source code documentation as a -doc package (John Mahowald).
|
|
|
57f9b03 |
- Add Requires: tkinter for SimGUI to work (John Mahowald).
|
|
|
57f9b03 |
|
|
|
57f9b03 |
* Fri Nov 25 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 1.6.1-1
|
|
|
57f9b03 |
- First packaging version for FE.
|