python-pefile/python-pefile.spec

129 lines
4.1 KiB
RPMSpec
Raw Normal View History

%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 PEiDs signatures\
* PEiD signature generation\
Name: python-%{srcname}
Version: 2016.3.28
Release: 1%{?dist}
2009-05-11 15:11:16 +00:00
Summary: Python module for working with Portable Executable files
License: MIT
URL: https://github.com/erocarrera/pefile
2014-07-26 08:03:42 +00:00
Source0: https://github.com/erocarrera/pefile/archive/v%{version}/pefile-%{version}.tar.gz
2016-11-01 20:40:15 +00:00
# Github PR #152
Patch0: pefile-fix-build-43c1cc79a71.patch
2009-05-11 15:11:16 +00:00
BuildArch: noarch
2016-11-01 20:15:16 +00:00
# For the patch
BuildRequires: git-core
2009-05-11 15:11:16 +00:00
%description
%{common_desc}
2013-08-08 01:20:25 +00:00
%package -n python2-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}}
2016-11-01 20:15:16 +00:00
BuildRequires: python2-devel
BuildRequires: python2-setuptools
2013-08-08 01:20:25 +00:00
%description -n python2-%{srcname}
%{common_desc}
2013-08-08 01:20:25 +00:00
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
2016-11-01 20:15:16 +00:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2009-05-11 15:11:16 +00:00
%description -n python3-%{srcname}
%{common_desc}
2009-05-11 15:11:16 +00:00
%prep
2016-11-01 20:15:16 +00:00
%autosetup -S git -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 20:40:15 +00:00
%py2_build
%py3_build
2009-05-11 15:11:16 +00:00
%install
2016-11-01 20:40:15 +00:00
%py2_install
%py3_install
2009-05-11 15:11:16 +00:00
%check
2016-11-01 20:40:15 +00:00
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{srcname}
%license LICENSE
%doc README*
2014-02-07 09:22:01 +00:00
%{python2_sitelib}/*
2009-05-11 15:11:16 +00:00
%files -n python3-%{srcname}
%license LICENSE
%doc README*
%{python3_sitelib}/*
2009-05-11 15:11:16 +00:00
%changelog
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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