Macronization.

This commit is contained in:
Christopher Meng 2014-07-26 16:03:42 +08:00
parent 5b636be224
commit 324990856c

View File

@ -5,7 +5,10 @@ Release: 2%{?dist}
Summary: Python module for working with Portable Executable files Summary: Python module for working with Portable Executable files
License: MIT License: MIT
URL: http://code.google.com/p/pefile/ URL: http://code.google.com/p/pefile/
Source0: http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz
%global realver $(echo %{version} | tr "_" "-")
Source0: http://pefile.googlecode.com/files/pefile-%{realver}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python-setuptools BuildRequires: python-setuptools
@ -29,7 +32,7 @@ Some of the tasks that pefile makes possible are:
* PEiD signature generation * PEiD signature generation
%prep %prep
%setup -q -n pefile-1.2.10-139 %setup -qn pefile-%{realver}
# Fix end-of-line encoding of the license file: # Fix end-of-line encoding of the license file:
sed -i 's/\r//' COPYING sed -i 's/\r//' COPYING