[python-Traits] - Update to 4.3.0 - Add python lib provides filter - Add Provides: python-traits - Drop line-ending

Orion Poplawski orion at fedoraproject.org
Tue Apr 23 21:36:22 UTC 2013


commit 7602083e1c6984fa710a175c967c1c2834e45d65
Author: Orion Poplawski <orion at nwra.com>
Date:   Tue Apr 23 15:36:20 2013 -0600

    - Update to 4.3.0
    - Add python lib provides filter
    - Add Provides: python-traits
    - Drop line-ending fix, no longer needed
    - Add %check
    - Drop %defattr

 .gitignore         |    1 +
 python-Traits.spec |   50 ++++++++++++++++++++------------------------------
 sources            |    2 +-
 3 files changed, 22 insertions(+), 31 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index cccafde..195ce17 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 Traits-3.4.0.tar.gz
 /Traits-3.5.0.tar.gz
 /traits-4.2.0.tar.gz
+/traits-4.3.0.tar.gz
diff --git a/python-Traits.spec b/python-Traits.spec
index 07ae5f2..7f60624 100644
--- a/python-Traits.spec
+++ b/python-Traits.spec
@@ -1,6 +1,6 @@
 Name:           python-Traits
-Version:        4.2.0
-Release:        3%{?dist}
+Version:        4.3.0
+Release:        1%{?dist}
 Summary:        Explicitly typed attributes for Python
 Group:          Development/Libraries
 # Images have different licenses. For image license breakdown check
@@ -12,6 +12,10 @@ URL:            http://code.enthought.com/projects/traits/
 Source0:        http://www.enthought.com/repo/ets/traits-%{version}.tar.gz
 BuildRequires:  python-setupdocs, python-setuptools, python2-devel
 Requires:       numpy
+Provides:       python-traits = %{version}-%{release}
+
+# we don't want to provide private python extension libs in either the python2 or python3 dirs
+%global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$
 
 %description
 The traits package developed by Enthought provides a special type
@@ -33,27 +37,11 @@ attributes, traits also have several additional characteristics:
 
 rm -rf *.egg-info
 
-# fix wrong-file-end-of-line-encoding
-OLDIFS=$IFS
-IFS=:
-for file in `find examples \( -name "*.py" -o -name "*.desc" -o -name \
- "*.txt" \) -printf "%p$IFS"`; do 
- sed "s|\r||g" $file > $file.new && \
- touch -r $file $file.new && \
- mv $file.new $file
-done
-IFS=$OLDIFS
-
-for file in *.txt; do
- sed "s|\r||g" $file > $file.new && \
- touch -r $file $file.new && \
- mv $file.new $file
-done
-
 # file not utf-8
-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
+for f in image_LICENSE_Eclipse.txt docs/Pydoh_T3UMdoc_HOWTO.txt
+do
+  iconv -f iso8859-1 -t utf-8 ${f} > ${f}.conv && mv -f ${f}.conv ${f}
+done
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" python setup.py build
@@ -64,22 +52,24 @@ python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 rm $RPM_BUILD_ROOT%{python_sitearch}/traits/protocols/_speedups.c
 rm $RPM_BUILD_ROOT%{python_sitearch}/traits/ctraits.c
 
-# fix wrong-file-end-of-line-encoding
-for file in `find build/docs -name "*.txt" -o -name "*.css" -o -name \
- "*.py"`; do
- sed "s|\r||g" $file > $file.new && \
- touch -r $file $file.new && \
- mv $file.new $file
-done
+%check
+python setup.py test
 
 %files
-%defattr(-,root,root,-)
 %doc *.txt docs/*.pdf examples
 %doc docs/traitsdocreadme.txt docs/CHANGES.txt
 %{python_sitearch}/*.egg-info
 %{python_sitearch}/traits
 
 %changelog
+* Tue Apr 23 2013 Orion Poplawski <orion at cora.nwra.com> - 4.3.0-1
+- Update to 4.3.0
+- Add python lib provides filter
+- Add Provides: python-traits
+- Drop line-ending fix, no longer needed
+- Add %%check
+- Drop %%defattr
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.2.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
diff --git a/sources b/sources
index 703a159..eea5ed1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ae27b323d521af8b15c39a180e28a3f4  traits-4.2.0.tar.gz
+f78c15c44e0f965cc2ab799806a80388  traits-4.3.0.tar.gz


More information about the scm-commits mailing list