[python-TraitsBackendQt: 6/6] New upstream release

supercyper supercyper at fedoraproject.org
Fri Aug 13 15:19:07 UTC 2010


commit 614e431544f62761cd7977f0d60d9353f289fa71
Author: Chen Lei <supercyper at 163.com>
Date:   Fri Aug 13 23:18:26 2010 +0800

    New upstream release

 .gitignore                  |    2 +-
 python-TraitsBackendQt.spec |   51 ++++++++++++++++++++----------------------
 sources                     |    2 +-
 3 files changed, 26 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a5076b8..98bb8cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-TraitsBackendQt-3.2.0.tar.gz
+TraitsBackendQt-3.4.0.tar.gz
diff --git a/python-TraitsBackendQt.spec b/python-TraitsBackendQt.spec
index 64bb58b..8dbeb90 100644
--- a/python-TraitsBackendQt.spec
+++ b/python-TraitsBackendQt.spec
@@ -1,21 +1,18 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
 Name:           python-TraitsBackendQt
-Version:        3.2.0
-Release:        2%{?dist}
-Summary:        PyQt backend for Traits and TraitsGUI
-
-Group:          Development/Languages
+Version:        3.4.0
+Release:        1%{?dist}
+Summary:        PyQt backend for Traits and TraitsGUI (Pyface)
+Group:          Development/Libraries
 # Confirmed from upstream that some files are BSD and most are GPLed
-License:        BSD and GPLv2
-URL:            http://pypi.python.org/pypi/TraitsBackendQt/%{version}
-#md5=ffebd2e9ddec6a73611f59f5699e92c6
-Source0:        http://pypi.python.org/packages/source/T/TraitsBackendQt/TraitsBackendQt-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+License:        BSD and (GPLv2 or GPLv3 with exceptions)
+URL:            http://code.enthought.com/projects/traits_gui
+Source0:        http://www.enthought.com/repo/ETS/TraitsBackendQt-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  python-devel, python-setuptools
+BuildRequires:  python2-devel, python-setuptools
+Requires:       python-TraitsGUI
+# EnthoughtBase and Traits come with TraitsGUI
 Requires:       PyQt4
+Provides:       python-TraitsBackend = %{version}-%{release}
 
 %description
 The TraitsBackendQt project contains an implementation of TraitsGUI
@@ -24,30 +21,30 @@ of Traits-based objects.
 
 %prep
 %setup -q -n TraitsBackendQt-%{version}
+
+rm -rf *.egg-info
+
 sed -i 's/\r//' image_LICENSE.txt
-rm -rf TraitsBackendQt.egg-info
 
 %build
-%{__python} setup.py release build
-
+%{__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}/TraitsBackendQt-%{version}-*.egg-info/requires.txt
-
- 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 
 %files
 %defattr(-,root,root,-)
-%doc *.txt
-%{python_sitelib}/*
-
+%doc *.txt docs/*.txt
+%{python_sitelib}/*.egg-info
+%{python_sitelib}/*.pth
+%{python_sitelib}/enthought/traits/ui/qt4
+%{python_sitelib}/enthought/pyface/ui/qt4
 
 %changelog
+* Fri Aug 13 2010 Chen Lei <supercyper at 163.com> - 3.4.0-1
+- Update spec to match latest guidelines w.r.t %%clean
+- Add Provides:python-TraitsBackend
+
 * Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 3.2.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 
diff --git a/sources b/sources
index 4c86506..d742867 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7a8214f4600c9d3b49af544ac59661a9  TraitsBackendQt-3.2.0.tar.gz
+c4fa9e037a872ba58d30465cd0b40a43  TraitsBackendQt-3.4.0.tar.gz


More information about the scm-commits mailing list