From 74220f3f5ccad148850f19cf59ffc697abf3e4c0 Mon Sep 17 00:00:00 2001 From: Sarantis Paskalis Date: Feb 03 2009 12:16:44 +0000 Subject: Upgrade to 2.0 --- diff --git a/.cvsignore b/.cvsignore index 5dbf96d..832e543 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -SimPy-1.9.1.tar.gz +SimPy-2.00.tar.gz diff --git a/python-simpy.spec b/python-simpy.spec index 6e742d4..c488215 100644 --- a/python-simpy.spec +++ b/python-simpy.spec @@ -2,13 +2,13 @@ %define pkgname SimPy Name: python-simpy -Version: 1.9.1 -Release: 2%{?dist} +Version: 2.0 +Release: 1%{?dist} Summary: Python simulation framework Group: Development/Languages License: LGPLv2+ URL: http://simpy.sourceforge.net -Source0: http://downloads.sourceforge.net/simpy/SimPy-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/simpy/SimPy-%{version}0.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools-devel @@ -25,6 +25,7 @@ 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 @@ -32,41 +33,46 @@ 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. +package contains the documentation including source code documentation. + %prep -%setup -q -n %{pkgname}-%{version} +%setup -q -n %{pkgname}-%{version}0 # Remove the shebangs to make rpmlint happy sed -i -e '/^#!.*python/,1D' SimPy/*.py -# Remove carriage returns to make rpmlint happy -sed -i 's/\r//' SimPy/*.py # Drop executable bits for files find . -type d -print | xargs chmod 755 find . -type f -print | xargs chmod 644 + %build %{__python} setup.py build + %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT + %clean rm -rf $RPM_BUILD_ROOT + %files %defattr(-,root,root,-) %{python_sitelib}/* -# choose html over txt files for documentation -%doc *.html PKG-INFO LGPLlicense_files SimPyModels -%doc SimPyDocs/*.html SimPyDocs/*.css SimPyDocs/*.pdf SimPyDocs/*.xls -%doc SimPyDocs/bankprograms SimPyDocs/images SimPyDocs/Interfacing SimPyDocs/SimGUIManual SimPyDocs/SimPlotManual SimPyDocs/SimStepManual +%doc LGPLlicense_files + %files doc -%defattr(-,root,root) -%doc SimPyDocs/SimPy_Sourcecode_Documentation/ +%defattr (-,root,root,-) +%doc PKG-INFO READ_ME_FIRST.txt SimPyModels SimPyDocs + %changelog +* Tue Feb 3 2009 Sarantis Paskalis - 2.0-1 +- Upgrade to 2.0 + * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.9.1-2 - Rebuild for Python 2.6 diff --git a/sources b/sources index cd22013..1e4b277 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -857188f768c4f5fed2ab2b047f21a89c SimPy-1.9.1.tar.gz +1d999a7c0b96c460e927a8ec75b8efd9 SimPy-2.00.tar.gz