2019-09-24 09:06:27 +00:00
|
|
|
|
Name: python-pefile
|
|
|
|
|
Version: 2019.4.18
|
2021-01-27 12:14:46 +00:00
|
|
|
|
Release: 5%{?dist}
|
2019-09-24 09:06:27 +00:00
|
|
|
|
Summary: Python module for working with Portable Executable files
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/erocarrera/pefile
|
|
|
|
|
|
|
|
|
|
|
2016-11-01 18:49:57 +00:00
|
|
|
|
%global srcname pefile
|
|
|
|
|
|
|
|
|
|
%global common_desc pefile is a multi-platform Python module to read and work with Portable\
|
|
|
|
|
Executable (aka PE) files. Most of the information in the PE Header is \
|
|
|
|
|
accessible, as well as all the sections, section's information and data.\
|
|
|
|
|
pefile requires some basic understanding of the layout of a PE file. Armed \
|
|
|
|
|
with it it's possible to explore nearly every single feature of the file.\
|
|
|
|
|
Some of the tasks that pefile makes possible are:\
|
|
|
|
|
* Modifying and writing back to the PE image\
|
|
|
|
|
* Header Inspection\
|
|
|
|
|
* Sections analysis\
|
|
|
|
|
* Retrieving data\
|
|
|
|
|
* Warnings for suspicious and malformed values\
|
|
|
|
|
* Packer detection with PEiD’s signatures\
|
|
|
|
|
* PEiD signature generation\
|
|
|
|
|
|
|
|
|
|
|
2019-09-24 09:06:27 +00:00
|
|
|
|
#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
|
2009-05-11 15:11:16 +00:00
|
|
|
|
BuildArch: noarch
|
2016-11-01 20:15:16 +00:00
|
|
|
|
|
2017-07-25 17:10:32 +00:00
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
2016-11-01 20:15:16 +00:00
|
|
|
|
# For the patch
|
2017-05-27 15:55:18 +00:00
|
|
|
|
# BuildRequires: git-core
|
2009-05-11 15:11:16 +00:00
|
|
|
|
|
|
|
|
|
%description
|
2016-11-01 18:49:57 +00:00
|
|
|
|
%{common_desc}
|
2013-08-08 01:20:25 +00:00
|
|
|
|
|
2016-11-01 18:49:57 +00:00
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
2017-07-25 17:10:32 +00:00
|
|
|
|
Requires: python3-future
|
2009-05-11 15:11:16 +00:00
|
|
|
|
|
2016-11-01 18:49:57 +00:00
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
|
%{common_desc}
|
2009-05-11 15:11:16 +00:00
|
|
|
|
|
2016-11-01 18:49:57 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
2017-05-27 15:55:18 +00:00
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
2016-11-01 20:46:00 +00:00
|
|
|
|
sed -i -e '/^#!\//, 1d' pefile.py
|
2009-05-11 15:11:16 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2016-11-01 18:49:57 +00:00
|
|
|
|
%py3_build
|
2009-05-11 15:11:16 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2016-11-01 18:49:57 +00:00
|
|
|
|
%py3_install
|
2009-05-11 15:11:16 +00:00
|
|
|
|
|
2019-09-24 09:06:27 +00:00
|
|
|
|
# check
|
|
|
|
|
# regression tests in this package are based on binary blob of exe files - commercial and malware
|
|
|
|
|
# at this point (2019-09-20) not suitable to be in Fedora.
|
|
|
|
|
# More info on:
|
|
|
|
|
# https://github.com/erocarrera/pefile/issues/171
|
|
|
|
|
# https://github.com/erocarrera/pefile/issues/82#issuecomment-192018385
|
|
|
|
|
# %{__python3} setup.py test
|
2016-11-01 18:49:57 +00:00
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README*
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
2009-05-11 15:11:16 +00:00
|
|
|
|
%changelog
|
2021-01-27 12:14:46 +00:00
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2019.4.18-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
2020-07-29 02:43:49 +00:00
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.4.18-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
2020-05-26 01:29:52 +00:00
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2019.4.18-3
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
2020-01-30 14:00:09 +00:00
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.4.18-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
2019-09-24 09:06:27 +00:00
|
|
|
|
* Fri Sep 20 2019 Michal Ambroz <rebus _AT seznam.cz> - 2019.4.18-1
|
|
|
|
|
- bump to version 2019.4.18
|
|
|
|
|
|
2019-08-19 08:49:28 +00:00
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2017.11.5-8
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
2019-07-26 15:07:44 +00:00
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017.11.5-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
2019-02-02 08:17:52 +00:00
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017.11.5-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
2018-10-11 16:56:51 +00:00
|
|
|
|
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2017.11.5-5
|
|
|
|
|
- Python2 binary package has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
2018-07-14 01:22:25 +00:00
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.11.5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-06-19 09:12:55 +00:00
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2017.11.5-3
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
2018-02-09 09:44:41 +00:00
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.11.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
2017-11-08 21:33:10 +00:00
|
|
|
|
* Wed Nov 08 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.11.5-1
|
|
|
|
|
- Update to 2017.11.5 (rhbz #1509751)
|
|
|
|
|
|
2017-08-05 18:26:20 +00:00
|
|
|
|
* Sat Aug 05 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.8.1-1
|
|
|
|
|
- Update to 2017.8.1
|
|
|
|
|
|
2017-07-27 11:15:57 +00:00
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.5.26-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
2017-07-25 17:10:32 +00:00
|
|
|
|
* Tue Jul 25 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.5.26-2
|
|
|
|
|
- Fix requirement (rhbz #1474447)
|
|
|
|
|
|
2017-05-27 15:55:18 +00:00
|
|
|
|
* Sat May 27 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2017.5.26-1
|
|
|
|
|
- Update to 2017.5.26
|
|
|
|
|
- Remove upstreamed patch
|
|
|
|
|
|
2017-02-11 09:55:46 +00:00
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2016.3.28-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
2016-12-19 17:20:37 +00:00
|
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2016.3.28-2
|
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
|
2016-11-01 18:49:57 +00:00
|
|
|
|
* Tue Nov 01 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 2016.3.28-1
|
|
|
|
|
- Update to 2016.3.28
|
|
|
|
|
- Revamp the specfile
|
2016-11-01 20:40:15 +00:00
|
|
|
|
- Add patch to fix the build
|
2016-11-01 18:49:57 +00:00
|
|
|
|
|
2016-07-19 10:56:04 +00:00
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_139-5
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
|
2016-02-04 20:27:39 +00:00
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.10_139-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
2015-06-18 20:15:13 +00:00
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_139-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
2014-06-07 22:01:50 +00:00
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_139-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
2014-02-07 09:22:01 +00:00
|
|
|
|
* Tue Jan 07 2014 Christopher Meng <rpm@cicku.me> - 1.2.10_139-1
|
|
|
|
|
- Update to 1.2.10_139
|
|
|
|
|
|
2013-08-08 01:20:25 +00:00
|
|
|
|
* Thu Aug 08 2013 Christopher Meng <rpm@cicku.me> - 1.2.10_123-1
|
2014-02-07 09:22:01 +00:00
|
|
|
|
- Update to 1.2.10_123
|
2013-08-08 01:20:25 +00:00
|
|
|
|
|
2013-08-04 08:59:06 +00:00
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_63-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
2013-02-14 20:04:06 +00:00
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_63-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
2012-07-21 07:42:43 +00:00
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_63-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
2012-01-14 01:58:51 +00:00
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_63-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
2011-02-09 05:40:28 +00:00
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_63-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
2010-07-22 05:01:02 +00:00
|
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.10_63-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
|
2009-07-26 20:50:55 +00:00
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10_63-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
2009-05-11 15:11:16 +00:00
|
|
|
|
* Fri May 8 2009 David Malcolm <dmalcolm@redhat.com> - 1.2.10_63-1
|
|
|
|
|
- initial packaging
|
|
|
|
|
|