From 324990856c6f6a09368310bbab6c2f2b14fd2924 Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: Sat, 26 Jul 2014 16:03:42 +0800 Subject: [PATCH] Macronization. --- python-pefile.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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