Package from git tag instead of commit

This commit is contained in:
Benjamin A. Beasley 2022-12-29 09:24:32 -05:00
parent bf151b3a77
commit dad9cca72c
3 changed files with 4 additions and 12 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@
/pyrsistent-0.18.0.tar.gz
/pyrsistent-0.18.1.tar.gz
/pyrsistent-29f5ac97f1356c82dc44dfe4e5a46cc3e9e91a4c.tar.gz
/pyrsistent-0.19.2.tar.gz

View File

@ -4,13 +4,6 @@
# We can generate PDF documentation as a substitute.
%bcond_without doc_pdf
# Upstream has not yet pushed the tag for v0.19.2, but it is clear which commit
# corresponds to the PyPI release. Therefore, this is not treated as a snapshot
# from a package-versioning perspective.
#
# https://github.com/tobgu/pyrsistent/issues/262#issuecomment-1302000278
%global commit 29f5ac97f1356c82dc44dfe4e5a46cc3e9e91a4c
Name: python-pyrsistent
Summary: Persistent/Functional/Immutable data structures
Version: 0.19.2
@ -19,8 +12,7 @@ Release: %autorelease
# The entire source is (SPDX) MIT, except pyrsistent/_toolz.py which is BSD-3-Clause.
License: MIT AND BSD-3-Clause
URL: https://github.com/tobgu/pyrsistent/
#Source0: %%{url}/archive/v%%{version}/pyrsistent-%%{version}.tar.gz
Source0: %{url}/archive/%{commit}/pyrsistent-%{commit}.tar.gz
Source0: %{url}/archive/v%{version}/pyrsistent-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: gcc
@ -68,8 +60,7 @@ BuildArch: noarch
%prep
#%%autosetup -n pyrsistent-%%{version}
%autosetup -n pyrsistent-%{commit}
%autosetup -n pyrsistent-%{version}
# Loosen exact-version pins in requirements.txt; we must tolerate newer
# versions and use what is packaged.

View File

@ -1 +1 @@
SHA512 (pyrsistent-29f5ac97f1356c82dc44dfe4e5a46cc3e9e91a4c.tar.gz) = 989a166848c55f44885b3a106482ca08da88e044750cf1fd49b3f94bbcf4cff08b2ef2e7b39c4e9fcc7f3ade84863014f6564864a0fbcba8340bb0868f83aabf
SHA512 (pyrsistent-0.19.2.tar.gz) = 1b954e2621ffad03a8885abf69673d842669c0f69f26f33ef02353b7eb46dd966c8d56b208cbc9de3ed197218ef578221bb5bc389b14db7321224e7a21515f7e