Fix requirement (rhbz #1474447)

This commit is contained in:
Athmane Madjoudj 2017-07-25 18:10:32 +01:00
parent 80a93421d3
commit 0ab6abd5b8

View File

@ -17,7 +17,7 @@ Some of the tasks that pefile makes possible are:\
Name: python-%{srcname} Name: python-%{srcname}
Version: 2017.5.26 Version: 2017.5.26
Release: 1%{?dist} Release: 2%{?dist}
Summary: Python module for working with Portable Executable files Summary: Python module for working with Portable Executable files
License: MIT License: MIT
URL: https://github.com/erocarrera/pefile URL: https://github.com/erocarrera/pefile
@ -25,6 +25,11 @@ URL: https://github.com/erocarrera/pefile
Source0: https://github.com/erocarrera/pefile/archive/v%{version}/pefile-%{version}.tar.gz Source0: https://github.com/erocarrera/pefile/archive/v%{version}/pefile-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python3-devel
BuildRequires: python3-setuptools
# For the patch # For the patch
# BuildRequires: git-core # BuildRequires: git-core
@ -34,8 +39,7 @@ BuildArch: noarch
%package -n python2-%{srcname} %package -n python2-%{srcname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}} %{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel Requires: python2-future
BuildRequires: python2-setuptools
%description -n python2-%{srcname} %description -n python2-%{srcname}
%{common_desc} %{common_desc}
@ -43,8 +47,7 @@ BuildRequires: python2-setuptools
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}} %{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel Requires: python3-future
BuildRequires: python3-setuptools
%description -n python3-%{srcname} %description -n python3-%{srcname}
%{common_desc} %{common_desc}
@ -77,6 +80,9 @@ sed -i -e '/^#!\//, 1d' pefile.py
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Tue Jul 25 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.5.26-2
- Fix requirement (rhbz #1474447)
* Sat May 27 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.5.26-1 * Sat May 27 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.5.26-1
- Update to 2017.5.26 - Update to 2017.5.26
- Remove upstreamed patch - Remove upstreamed patch