From 324990856c6f6a09368310bbab6c2f2b14fd2924 Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: Jul 26 2014 08:03:42 +0000 Subject: Macronization. --- diff --git a/python-pefile.spec b/python-pefile.spec index ad23f4f..5c85693 100644 --- a/python-pefile.spec +++ b/python-pefile.spec @@ -5,7 +5,10 @@ Release: 2%{?dist} Summary: Python module for working with Portable Executable files License: MIT 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 BuildRequires: python2-devel BuildRequires: python-setuptools @@ -29,7 +32,7 @@ Some of the tasks that pefile makes possible are: * PEiD signature generation %prep -%setup -q -n pefile-1.2.10-139 +%setup -qn pefile-%{realver} # Fix end-of-line encoding of the license file: sed -i 's/\r//' COPYING