From 11f139716ad588f77203330b5a61815987817cbe Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 20 Oct 2023 01:55:56 +0000 Subject: [PATCH] Use Github archive instead of PyPI sdist The sdist contains *some* but not all of the files needed to run unit tests. --- python-resolvelib.spec | 9 ++++++--- sources | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/python-resolvelib.spec b/python-resolvelib.spec index 8d0e9bc..6efbe0a 100644 --- a/python-resolvelib.spec +++ b/python-resolvelib.spec @@ -1,14 +1,17 @@ # Created by pyp2rpm-3.3.6 %global pypi_name resolvelib +%global forgeurl https://github.com/sarugaku/resolvelib Name: python-%{pypi_name} Version: 1.0.1 +%global tag %{version} +%forgemeta Release: 1%{?dist} Summary: Resolve abstract dependencies into concrete ones License: ISC -URL: https://github.com/sarugaku/resolvelib -Source0: %{pypi_source} +URL: %{forgeurl} +Source: %{forgesource} BuildArch: noarch BuildRequires: python3-devel @@ -31,7 +34,7 @@ Summary: %{summary} %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup %{forgesetupargs} %generate_buildrequires diff --git a/sources b/sources index b3a0cbd..a36e412 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (resolvelib-1.0.1.tar.gz) = 52c872fb2a22c47de022a661dc4d8de8c6af450f1cff6f2b99cd91bf7eccae5b6ee223793f50b9679c1c6caedbd8bb63330915ee6f10533b1a0ed239d068b36f +SHA512 (resolvelib-1.0.1.tar.gz) = a35f7fdbc3aba5b44fdf6b9c55b082156ca641dfe5825611be6364622bcaaf45faafa2c45bdd13d1b5723a55732759a806905ab4b6f366fba0474d1f808d91bc