[python-TraitsGUI: 3/4] New upstream release

supercyper supercyper at fedoraproject.org
Fri Aug 13 09:44:17 UTC 2010


commit 00e958aa4d3b0bd4d4c805e7137c93319ef6b095
Author: Chen Lei <supercyper at 163.com>
Date:   Fri Aug 13 17:41:55 2010 +0800

    New upstream release

 .gitignore            |    2 +-
 python-TraitsGUI.spec |   69 +++++++++++++++++++++++++++----------------------
 sources               |    2 +-
 3 files changed, 40 insertions(+), 33 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fd68d14..9da2e51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-TraitsGUI-3.1.0.tar.gz
+TraitsGUI-3.4.0.tar.gz
diff --git a/python-TraitsGUI.spec b/python-TraitsGUI.spec
index 0a04a55..02665d2 100644
--- a/python-TraitsGUI.spec
+++ b/python-TraitsGUI.spec
@@ -1,64 +1,71 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
 Name:           python-TraitsGUI
-Version:        3.1.0
-Release:        2%{?dist}
+Version:        3.4.0
+Release:        1%{?dist}
 Summary:        Traits-capable windowing framework
-
 Group:          Development/Libraries
 # Source code is under BSD but images are under different licenses
 # and details are inside image_LICENSE.txt
 License:        BSD and EPL and LGPLv2 and LGPLv3 and Public Domain
-URL:            http://pypi.python.org/pypi/TraitsGUI
-Source0:        http://pypi.python.org/packages/source/T/TraitsGUI/TraitsGUI-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+URL:            http://code.enthought.com/projects/traits_gui/
+Source0:        http://www.enthought.com/repo/ETS/TraitsGUI-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  python-devel, python-setuptools, python-setupdocs
-Requires:       python-TraitsBackendQt
+BuildRequires:  python2-devel, python-setuptools, python-setupdocs
+Requires:       python-EnthoughtBase, python-Traits
 
 %description
 The TraitsGUI project contains a toolkit-independent GUI abstraction layer
 (known as Pyface), which is used to support the "visualization" features of
-the Traits package.
+the Traits package. Thus, you can write code in terms of the Traits API
+(views, items, editors, etc.), and let TraitsGUI and your selected toolkit
+and back-end take care of the details of displaying them.
+        
+To display Traits-based user interfaces, in addition to the TraitsGUI project,
+you must install one of the following combinations of packages:
+        
+    * Traits, TraitsBackendWX, and wxPython
+    * Traits, TraitsBackendQt, and PyQt
 
 %prep
 %setup -q -n TraitsGUI-%{version}
-rm -rf TraitsGUI.egg-info
-sed -i 's/\r//' image_*.txt examples/workbench/example_workbench_window.py \
- examples/workbench/images/image_LICENSE.txt examples/workbench/person.py \
- examples/workbench/example_workbench_window.py examples/dock/images/image_LICENSE.txt \
- examples/workbench/example_workbench.py examples/images/image_LICENSE.txt
+
+rm -rf *.egg-info
+
+# fix wrong-file-end-of-line-encoding
+sed -i 's/\r//' image_*.txt examples/workbench/*.py \
+ examples/workbench/images/image_LICENSE.txt \
+ examples/dock/images/image_LICENSE.txt \
+ examples/images/image_LICENSE.txt
+
+# file not utf-8
 iconv -f iso8859-1 -t utf-8 image_LICENSE_OOo.txt > image_LICENSE_OOo.txt.conv \
  && mv -f image_LICENSE_OOo.txt.conv image_LICENSE_OOo.txt
 iconv -f iso8859-1 -t utf-8 image_LICENSE_Eclipse.txt > image_LICENSE_Eclipse.txt.conv \
  && mv -f image_LICENSE_Eclipse.txt.conv image_LICENSE_Eclipse.txt
 
-chmod -x examples/workbench/black_view.py examples/workbench/blue_view.py \
- examples/workbench/red_view.py examples/workbench/yellow_view.py \
- examples/workbench/green_view.py
-
+# remove exec permission
+find examples -type f -exec chmod 0644 {} ";"
 
 %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,-)
-%doc *.txt examples
-%{python_sitelib}/*
-
+%doc *.txt examples docs/*.txt docs/*.pdf
+%{python_sitelib}/*.egg-info
+%{python_sitelib}/*.pth
+%{python_sitelib}/enthought/pyface
+%{python_sitelib}/enthought/resource
+%{python_sitelib}/enthought/traits/*
 
 %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
+- Remove Requires:python-TraitsBackendQt
+- Fix directory ownership
+
 * Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 3.1.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 
diff --git a/sources b/sources
index bc3d85b..400373e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e3a4f419217043f147af3760e8747add  TraitsGUI-3.1.0.tar.gz
+f83c3e05f8448b7bfd4d4a011da15771  TraitsGUI-3.4.0.tar.gz


More information about the scm-commits mailing list