diff --git a/.gitignore b/.gitignore index 97b6fa0..8e9edb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /python-django-compressor-*.tar.gz /django-compressor-*.tar.gz +/django_compressor-4.4.tar.gz diff --git a/python-django-compressor.spec b/python-django-compressor.spec index a36c1d0..09c0c1e 100644 --- a/python-django-compressor.spec +++ b/python-django-compressor.spec @@ -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 diff --git a/sources b/sources index 3139d48..2cab061 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (django-compressor-4.4.tar.gz) = 4fb0fcb1f11d73a724d4d3161b4964f9b4a5bf6ec674d198756ad262d9983528a605aadde6bb10ef2054e477ac08fbc0397242e8969f47d3710bec6f21215086 +SHA512 (django_compressor-4.4.tar.gz) = 54a3443f8900aca89534bb792f6e1d7d46ec9cec81c2bb2e019ea2a0e861845805d187748cc12531209be25c3d9f5dd3cd0f019fb9f439c9b1e7ad2a5785c6c8