Use upstream version when working with Source tarball
This commit is contained in:
parent
f347cc18fa
commit
18389c7bab
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user