Replace git source with pypi one

There has been discovered that github source differs from pypi one
which is causing errors for 4.4 version, i.e. dicovering previous
version 4.3 with setupy.py --version.
This commit is contained in:
karolinku 2024-08-02 12:05:49 +02:00
commit 35c449bbe3
3 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,5 @@
%global srcname django-compressor
%global pypi_name django_compressor
%global _desc\
Django Compressor combines and compresses linked and inline Javascript\
or CSS in a Django templates into cacheable static files by using the\
@ -14,7 +15,7 @@ Summary: Compresses linked and inline JavaScript or CSS into single cached files
License: MIT
URL: https://github.com/django-compressor/django-compressor
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
Source0: %{pypi_source django_compressor}
Patch0: rdep-version.patch
@ -35,8 +36,8 @@ Obsoletes: python2-%{srcname} < 2.1-6
Obsoletes: python-%{srcname} < 2.1-6
%prep
%autosetup -p1 -n %{srcname}-%{version}
%autosetup -p1 -n %{pypi_name}-%{version}
%generate_buildrequires
%pyproject_buildrequires