python-pefile/python-pefile.spec

75 lines
2.6 KiB
RPMSpec
Raw Normal View History

2009-05-11 15:11:16 +00:00
Name: python-pefile
# upstream version embeds a dash, we replace this with an underscore:
2013-08-08 01:20:25 +00:00
Version: 1.2.10_123
Release: 1%{?dist}
2009-05-11 15:11:16 +00:00
Summary: Python module for working with Portable Executable files
License: MIT
URL: http://code.google.com/p/pefile/
2013-08-09 02:18:19 +00:00
Source0: http://pefile.googlecode.com/files/pefile-1.2.10-123.tar.gz
2009-05-11 15:11:16 +00:00
BuildArch: noarch
2013-08-08 01:20:25 +00:00
BuildRequires: python2-devel
2013-08-09 02:18:19 +00:00
BuildRequires: python-setuptools
2009-05-11 15:11:16 +00:00
%description
2013-08-08 01:20:25 +00:00
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
2009-05-11 15:11:16 +00:00
%prep
2013-08-08 01:20:25 +00:00
%setup -q -n pefile-1.2.10-123
2009-05-11 15:11:16 +00:00
# Fix end-of-line encoding of the license file:
2013-08-08 01:20:25 +00:00
sed -i 's/\r//' COPYING
2009-05-11 15:11:16 +00:00
%build
%{__python} setup.py build
%install
2013-08-09 02:18:19 +00:00
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
2009-05-11 15:11:16 +00:00
%files
2013-08-08 01:20:25 +00:00
%doc COPYING README
2009-05-11 15:11:16 +00:00
%{python_sitelib}/*
%changelog
2013-08-08 01:20:25 +00:00
* Thu Aug 08 2013 Christopher Meng <rpm@cicku.me> - 1.2.10_123-1
- Update to new version.
* 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