From 357da2b216bf7881012b9e0664c728c855989077 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: May 13 2016 19:58:23 +0000 Subject: Update to 1.2.3 - Build python3 on EL7 --- diff --git a/pyflakes.spec b/pyflakes.spec index e247514..9508799 100644 --- a/pyflakes.spec +++ b/pyflakes.spec @@ -1,12 +1,12 @@ -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 6 %bcond_without python3 %else -# Until dependencies are available in EPEL7 %bcond_with python3 %endif +%{!?python3_pkgversion: %global python3_pkgversion 3} Name: pyflakes -Version: 1.2.2 +Version: 1.2.3 Release: 1%{?dist} Summary: A simple program which checks Python source files for errors @@ -14,7 +14,7 @@ License: MIT URL: https://github.com/pyflakes/pyflakes Source0: https://github.com/pyflakes/pyflakes/archive/%{version}.tar.gz -Source1: http://cdn.debian.net/debian/pool/main/p/pyflakes/pyflakes_1.1.0-2.debian.tar.xz +Source1: http://cdn.debian.net/debian/pool/main/p/pyflakes/pyflakes_1.2.3-1.debian.tar.xz Patch0: %{name}-1.1.0-python3-man.patch BuildArch: noarch @@ -33,14 +33,14 @@ check on style. %{desc} %if %{with python3} -%package -n python3-%{name} +%package -n python%{python3_pkgversion}-%{name} Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -Requires: python3-setuptools -%{?python_provide:%python_provide python3-%{name}} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-setuptools +%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} -%description -n python3-%{name} +%description -n python%{python3_pkgversion}-%{name} %{desc} %endif @@ -75,7 +75,7 @@ install -pm 644 debian/pyflakes3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes. %{_mandir}/man1/pyflakes.1* %if %{with python3} -%files -n python3-%{name} +%files -n python%{python3_pkgversion}-%{name} %license LICENSE %doc AUTHORS NEWS.txt README.rst %{_bindir}/python3-pyflakes @@ -85,6 +85,10 @@ install -pm 644 debian/pyflakes3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes. %endif %changelog +* Fri May 13 2016 Ville Skyttä - 1.2.3-1 +- Update to 1.2.3 +- Build python3 on EL7 + * Sat May 7 2016 Ville Skyttä - 1.2.2-1 - Update to 1.2.2 diff --git a/sources b/sources index 1a090ee..8255858 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -a4978656d4ed1f7c6c675523c1263913 pyflakes_1.1.0-2.debian.tar.xz -fe759b9381a6500e67a2ddbbeb5161a4 1.2.2.tar.gz +2ac2e148a5c46b6bb06c4785be76f7cc 1.2.3.tar.gz +1486cb6b617f94acd3e36712cb1e9785 pyflakes_1.2.3-1.debian.tar.xz