[python-zope-schema] 4.4.1-1
Ralph Bean
ralph at fedoraproject.org
Wed Aug 20 15:23:27 UTC 2014
commit 818804d1d387290ca996e32bc609da9f7c1f1478
Author: Ralph Bean <rbean at redhat.com>
Date: Wed Aug 20 11:23:15 2014 -0400
4.4.1-1
.gitignore | 1 +
python-zope-schema.spec | 34 ++++++++++++++++++++++------------
sources | 2 +-
3 files changed, 24 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a4e150b..ceb4584 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/zope.schema-4.2.2.tar.gz
/zope.schema-4.3.2.zip
/zope.schema-4.4.0.zip
+/zope.schema-4.4.1.tar.gz
diff --git a/python-zope-schema.spec b/python-zope-schema.spec
index 76f4ac2..1736982 100644
--- a/python-zope-schema.spec
+++ b/python-zope-schema.spec
@@ -1,3 +1,9 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
%global modname zope.schema
%if 0%{?fedora}
@@ -6,9 +12,9 @@
Summary: Zope 3 schemas
Name: python-zope-schema
-Version: 4.4.0
-Release: 3%{?dist}
-Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.zip
+Version: 4.4.1
+Release: 1%{?dist}
+Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
License: ZPLv2.1
Group: Development/Libraries
BuildArch: noarch
@@ -61,7 +67,7 @@ cp -a . %{py3dir}
%build
-%{__python} setup.py build
+%{__python2} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
@@ -94,11 +100,11 @@ pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
popd
%endif
-%{__python} setup.py install --root=%{buildroot}
+%{__python2} setup.py install --root=%{buildroot}
%check
-%{__python} setup.py test
-%if 0%{?with_python3}
+%{__python2} setup.py test
+%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py test
popd
@@ -108,11 +114,11 @@ popd
%defattr(-,root,root,-)
%doc LICENSE.txt CHANGES.rst COPYRIGHT.txt README.rst
%doc html/
-%{python_sitelib}/zope/schema/
-%exclude %{python_sitelib}/zope/schema/tests/
-%exclude %{python_sitelib}/zope/schema/*.txt
-%{python_sitelib}/%{modname}-*.egg-info
-%{python_sitelib}/%{modname}-*-nspkg.pth
+%{python2_sitelib}/zope/schema/
+%exclude %{python2_sitelib}/zope/schema/tests/
+%exclude %{python2_sitelib}/zope/schema/*.txt
+%{python2_sitelib}/%{modname}-*.egg-info
+%{python2_sitelib}/%{modname}-*-nspkg.pth
%if 0%{?with_python3}
%files -n python3-zope-schema
@@ -127,6 +133,10 @@ popd
%changelog
+* Wed Aug 20 2014 Ralph Bean <rbean at redhat.com> - 4.4.1-1
+- Latest upstream.
+- Modernized python macros.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index f8ba21e..68d03ef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b092f232ede39b7d9344bc18547e22f4 zope.schema-4.4.0.zip
+afb9281217b79840e1679abeb302467a zope.schema-4.4.1.tar.gz
More information about the scm-commits
mailing list