[pyflakes/epel7] no py3 on rhel7, remove bundled egg-info

Matthias Runge mrunge at fedoraproject.org
Wed May 7 15:21:19 UTC 2014


commit d1cc361823a1449b81fdd1c69cc1ef2526cc3edc
Author: Matthias Runge <mrunge at redhat.com>
Date:   Wed May 7 17:21:16 2014 +0200

    no py3 on rhel7, remove bundled egg-info

 pyflakes.spec |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/pyflakes.spec b/pyflakes.spec
index e1da592..fa9758f 100644
--- a/pyflakes.spec
+++ b/pyflakes.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} || 0%{?rhel} >= 7
+%if 0%{?fedora}
 %bcond_without python3
 %else
 %bcond_with python3
@@ -7,7 +7,7 @@
 
 Name:           pyflakes
 Version:        0.7.3
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A simple program which checks Python source files for errors
 
 Group:          Development/Languages
@@ -17,7 +17,6 @@ URL:            https://launchpad.net/pyflakes
 Source0:        http://pypi.python.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
 Source1:        http://cdn.debian.net/debian/pool/main/p/pyflakes/pyflakes_0.7.3-1.debian.tar.gz
 Patch0:         https://github.com/pyflakes/pyflakes/pull/17.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  python-setuptools
@@ -48,6 +47,10 @@ Requires:       python3-setuptools
 %prep
 %setup -q -a 1
 %patch0 -p1
+
+# remove bundled egg-info
+rm -rf {name}.egg-info
+
 %if %{with python3}
 rm -rf %{py3dir}
 cp -a . %{py3dir}
@@ -83,11 +86,7 @@ cd %{py3dir}
 cd -
 %endif
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS LICENSE NEWS.txt PKG-INFO README.rst
 %{_bindir}/pyflakes
 %{python_sitelib}/pyflakes*
@@ -106,6 +105,10 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
+* Wed May 07 2014 Matthias Runge <mrunge at redhat.com> - 0.7.3-5
+- import for epel7
+- minor spec cleanup (remove bundled egg-info, no py3 on rhel7)
+
 * Wed Dec 11 2013 Ville Skyttä <ville.skytta at iki.fi> - 0.7.3-4
 - Avoid interfering with pies in version check (#1039706, Timothy Crosley).
 - Refresh Debian additions tarball.


More information about the scm-commits mailing list