From 18389c7bab0e37adab709808e39d8e2ebfab0720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 13 Jul 2018 20:38:13 +0200 Subject: [PATCH] Use upstream version when working with Source tarball --- PyYAML.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PyYAML.spec b/PyYAML.spec index 135e39d..c63cd6e 100644 --- a/PyYAML.spec +++ b/PyYAML.spec @@ -1,11 +1,12 @@ Name: PyYAML Version: 4.2 Release: 0.1.b4%{?dist} +%global uversion %{version}b4 Summary: YAML parser and emitter for Python License: MIT URL: https://github.com/yaml/pyyaml -Source0: https://github.com/yaml/pyyaml/archive/%{name}-%{version}.tar.gz +Source0: https://github.com/yaml/pyyaml/archive/%{name}-%{uversion}.tar.gz BuildRequires: gcc BuildRequires: libyaml-devel @@ -64,7 +65,7 @@ Obsoletes: python3-PyYAML < 4.1-5 %prep -%setup -q -n %{name}-%{version} +%setup -q -n %{name}-%{uversion} chmod a-x examples/yaml-highlight/yaml_hl.py # remove pre-generated file