2009-05-11 15:11:16 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
Name: python-pefile
|
|
|
|
# upstream version embeds a dash, we replace this with an underscore:
|
|
|
|
Version: 1.2.10_63
|
2011-02-09 05:40:28 +00:00
|
|
|
Release: 4%{?dist}
|
2009-05-11 15:11:16 +00:00
|
|
|
Summary: Python module for working with Portable Executable files
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://code.google.com/p/pefile/
|
|
|
|
Source0: http://pefile.googlecode.com/files/pefile-1.2.10-63.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
pefile is a platform-independent Python module for reading and working with
|
|
|
|
Portable Executable (aka PE) files, most commonly known as .exe and .dll files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pefile-1.2.10-63
|
|
|
|
|
|
|
|
# Fix end-of-line encoding of the license file:
|
|
|
|
%{__sed} -i 's/\r//' COPYING
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES_up_to_1.2.6 COPYING README
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|