diff --git a/.gitignore b/.gitignore index 613548d..5b42956 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /pefile-2017.8.1.tar.gz /pefile-2017.11.5.tar.gz /pefile-2019.4.18.tar.gz +/pefile-2021.5.13.tar.gz diff --git a/python-pefile.spec b/python-pefile.spec index 4aa7240..5c97cff 100644 --- a/python-pefile.spec +++ b/python-pefile.spec @@ -1,6 +1,6 @@ Name: python-pefile -Version: 2019.4.18 -Release: 5%{?dist} +Version: 2021.5.13 +Release: 1%{?dist} Summary: Python module for working with Portable Executable files License: MIT URL: https://github.com/erocarrera/pefile @@ -23,12 +23,12 @@ Some of the tasks that pefile makes possible are:\ * PEiD signature generation\ -#Source0: https://github.com/erocarrera/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +#Source0: https://github.com/erocarrera/%%{srcname}/archive/v%%{version}/%%{srcname}-%%{version}.tar.gz Source0: https://github.com/erocarrera/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools # For the patch # BuildRequires: git-core @@ -36,12 +36,12 @@ BuildRequires: python3-setuptools %description %{common_desc} -%package -n python3-%{srcname} +%package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -Requires: python3-future +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +Requires: python%{python3_pkgversion}-future -%description -n python3-%{srcname} +%description -n python%{python3_pkgversion}-%{srcname} %{common_desc} @@ -61,14 +61,17 @@ sed -i -e '/^#!\//, 1d' pefile.py # More info on: # https://github.com/erocarrera/pefile/issues/171 # https://github.com/erocarrera/pefile/issues/82#issuecomment-192018385 -# %{__python3} setup.py test +# %%{__python3} setup.py test -%files -n python3-%{srcname} +%files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README* %{python3_sitelib}/* %changelog +* Thu May 13 2021 Michal Ambroz - 2021.5.13-1 +- bump to version 2021.5.13 + * Wed Jan 27 2021 Fedora Release Engineering - 2019.4.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 9a3c4a9..b579299 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pefile-2019.4.18.tar.gz) = 33c53120fd6a0fde22f4076c19ed8f69fc2b53b16d0c581133446d0d770e290dcb2ddd1e9941e8d8debc28c1cb4ff64ff055c2b8c0958015d9121de72ae20c76 +SHA512 (pefile-2021.5.13.tar.gz) = 49018c4839e2c5bea2215b83a76397fc4558e7efc7dae9b10f018c0d45c1e5a7b655386250d81b0f201bd4fccd3d90cc8434006fa051a86896dc87f89a9eacc3