diff --git a/.gitignore b/.gitignore index 76edc00..2535b0c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /v0.17.3.tar.gz /pyrsistent-0.18.0.tar.gz /pyrsistent-0.18.1.tar.gz +/pyrsistent-29f5ac97f1356c82dc44dfe4e5a46cc3e9e91a4c.tar.gz diff --git a/python-pyrsistent.spec b/python-pyrsistent.spec index 16faf67..0b9cbb4 100644 --- a/python-pyrsistent.spec +++ b/python-pyrsistent.spec @@ -4,15 +4,23 @@ # 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.18.1 +Version: 0.19.2 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/v%%{version}/pyrsistent-%%{version}.tar.gz +Source0: %{url}/archive/%{commit}/pyrsistent-%{commit}.tar.gz BuildRequires: python3-devel BuildRequires: gcc @@ -60,7 +68,8 @@ BuildArch: noarch %prep -%autosetup -n pyrsistent-%{version} -p1 +#%%autosetup -n pyrsistent-%%{version} +%autosetup -n pyrsistent-%{commit} # Loosen exact-version pins in requirements.txt; we must tolerate newer # versions and use what is packaged. diff --git a/sources b/sources index c4e7809..d9bc398 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyrsistent-0.18.1.tar.gz) = ae7e8bc6d1dab52cd6a2a8447514b88f966f34c1cbd3e1aa06aec705f9ffd73e74865b10accdc62185dd9b132da4640c116eaf92c341031c9471e7422a408232 +SHA512 (pyrsistent-29f5ac97f1356c82dc44dfe4e5a46cc3e9e91a4c.tar.gz) = 989a166848c55f44885b3a106482ca08da88e044750cf1fd49b3f94bbcf4cff08b2ef2e7b39c4e9fcc7f3ade84863014f6564864a0fbcba8340bb0868f83aabf