aekoroglu 20403d4
%global srcname django-compressor
aekoroglu 20403d4
%global _desc\
e72f529
Django Compressor combines and compresses linked and inline Javascript\
e72f529
or CSS in a Django templates into cacheable static files by using the\
e72f529
``compress`` template tag.  HTML in between\
e72f529
``{% compress js/css %}`` and ``{% endcompress %}`` is\
e72f529
parsed and searched for CSS or JS. These styles and scripts are subsequently\
e72f529
processed with optional, configurable compilers and filters.
e72f529
aekoroglu 20403d4
Name:		python-django-compressor
a07f14c
Version:	4.4
aekoroglu 20403d4
Release:	%autorelease
aekoroglu 20403d4
Summary:	Compresses linked and inline JavaScript or CSS into single cached files
e72f529
aekoroglu 20403d4
License:	MIT
aekoroglu 20403d4
URL:		https://github.com/django-compressor/django-compressor
aekoroglu 20403d4
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
4d87370
aekoroglu 20403d4
Patch0:		rdep-version.patch
4d87370
aekoroglu 20403d4
BuildArch:	noarch
bf6c080
aekoroglu 20403d4
BuildRequires:	python3-devel
aekoroglu 20403d4
aekoroglu 20403d4
%description %_desc
4d87370
aekoroglu 20403d4
%package -n python3-%{srcname}
aekoroglu 20403d4
Summary:	%{summary}
4d87370
aekoroglu 20403d4
%description -n python3-%{srcname}
aekoroglu 20403d4
%_desc
aekoroglu 20403d4
aekoroglu 20403d4
# Added in f28 cycle.
aekoroglu 20403d4
Obsoletes: python2-%{srcname} < 2.1-6
aekoroglu 20403d4
Obsoletes: python-%{srcname} < 2.1-6
67447ce
67447ce
%prep
aekoroglu 20403d4
%autosetup -p1 -n %{srcname}-%{version}
aekoroglu 20403d4
	
aekoroglu 20403d4
%generate_buildrequires
aekoroglu 20403d4
%pyproject_buildrequires
4d87370
4d87370
%build
aekoroglu 20403d4
%pyproject_wheel
67447ce
67447ce
%install
aekoroglu 20403d4
%pyproject_install
aekoroglu 20403d4
%pyproject_save_files compressor
4d87370
aekoroglu 20403d4
%files -n python3-%{srcname} -f %{pyproject_files}
4d87370
%doc README.rst
67447ce
67447ce
%changelog
aekoroglu 20403d4
%autochangelog