[python-EnthoughtBase] New upstream release

supercyper supercyper at fedoraproject.org
Fri Aug 13 08:46:44 UTC 2010


commit bd23f785f62eafd83f86452987bbd6017488e961
Author: Chen Lei <supercyper at 163.com>
Date:   Fri Aug 13 16:46:02 2010 +0800

    New upstream release

 .gitignore                |    2 +-
 python-EnthoughtBase.spec |   57 ++++++++++++++++++++------------------------
 sources                   |    2 +-
 3 files changed, 28 insertions(+), 33 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index bd8a0b0..4aad828 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-EnthoughtBase-3.0.3.tar.gz
+EnthoughtBase-3.0.5.tar.gz
diff --git a/python-EnthoughtBase.spec b/python-EnthoughtBase.spec
index 2513c41..22a24d3 100644
--- a/python-EnthoughtBase.spec
+++ b/python-EnthoughtBase.spec
@@ -1,20 +1,14 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
 Name:           python-EnthoughtBase
-Version:        3.0.3
-Release:        2%{?dist}
+Version:        3.0.5
+Release:        1%{?dist}
 Summary:        Core packages for the Enthought Tool Suite
-
 Group:          Development/Libraries
-License:        BSD and/or LGPLv2+
-URL:            http://pypi.python.org/pypi/EnthoughtBase/%{version}
-#md5=cc555fca3d43c6d8d9ad7a5fdf3e74a1
-Source0:        http://pypi.python.org/packages/source/E/EnthoughtBase/EnthoughtBase-%{version}.tar.gz
-Source1:        README.fedora.%{name}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+# enthought/util/guid.py and images are LGPLv2+
+License:        BSD and LGPLv2+
+URL:            http://code.enthought.com/projects/enthought_base.php
+Source0:        http://www.enthought.com/repo/ETS/EnthoughtBase-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  python-setuptools, python-devel, python-setupdocs, python-sphinx, unzip
+BuildRequires:  python-setuptools, python2-devel, python-setupdocs
 
 %description
 
@@ -33,35 +27,36 @@ by many other projects in the Enthought Tool Suite:
 
 %prep
 %setup -q -n EnthoughtBase-%{version}
-sed -i 's/\#\!.*$//' enthought/util/guid.py
+
+rm -rf *.egg-info
+
+# remove shebang
+sed -i '/^#!\//, 1d' enthought/util/guid.py enthought/util/updates/info2xml.py
+
+# fix wrong-file-end-of-line-encoding
 sed -i 's/\r//' image_LICENSE.txt
-rm -rf EnthoughtBase.egg-info
 
+# remove exec permission
+find examples -type f -exec chmod 0644 {} ";"
 
 %build
-%{__python} setup.py build
-unzip docs/html.zip
-
+python setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-sed -i 's/\.dev$//g' $RPM_BUILD_ROOT/%{python_sitelib}/EnthoughtBase-%{version}-*.egg-info/requires.txt
-cp %{SOURCE1} README.fedora
-%{__install} -p -m 644 enthought/logger/plugin/preferences.ini\
- $RPM_BUILD_ROOT/%{python_sitelib}/enthought/logger/plugin/preferences.ini
+python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
 %defattr(-,root,root,-)
-%doc *.txt examples html README.fedora
-%{python_sitelib}/*
-
+%doc *.txt docs/*.txt examples build/docs/html
+%{python_sitelib}/enthought
+%{python_sitelib}/*.egg-info
+%{python_sitelib}/*.pth
 
 %changelog
+* Fri Aug 13 2010 Chen Lei <supercyper at 163.com> 3.0.5-1
+- Update spec to match latest guidelines w.r.t %%clean
+- Fix several rpmlint warnings
+
 * Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 3.0.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 
diff --git a/sources b/sources
index 4883ac8..42dd089 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1d46a0d68ae1a0aceab842a51997f00d  EnthoughtBase-3.0.3.tar.gz
+dce9dcea96c6bae722a34118f31dd12d  EnthoughtBase-3.0.5.tar.gz


More information about the scm-commits mailing list