Markéta Machová
1eb6b8d612
- Update to 2.4.1 * Raise proper DeprecationWarning for COMPRESS_JS_FILTERS and COMPRESS_CSS_FILTERS OBS-URL: https://build.opensuse.org/request/show/895333 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-compressor?expand=0&rev=11
88 lines
3.2 KiB
RPMSpec
88 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-django-compressor
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define mod_name django_compressor
|
|
%define skip_python2 1
|
|
Name: python-django-compressor
|
|
Version: 2.4.1
|
|
Release: 0
|
|
Summary: Python module to compress linked/inline JavaScript/CSS to cached files
|
|
License: Apache-2.0 AND BSD-3-Clause AND MIT
|
|
URL: https://github.com/django-compressor/django-compressor
|
|
Source: https://files.pythonhosted.org/packages/source/d/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
|
BuildRequires: %{python_module Brotli >= 1.0.6}
|
|
BuildRequires: %{python_module Django >= 2.2}
|
|
BuildRequires: %{python_module Jinja2}
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
BuildRequires: %{python_module calmjs}
|
|
BuildRequires: %{python_module csscompressor}
|
|
BuildRequires: %{python_module django-appconf >= 1.0}
|
|
BuildRequires: %{python_module django-sekizai >= 0.9.0}
|
|
BuildRequires: %{python_module html5lib}
|
|
BuildRequires: %{python_module lxml}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module rcssmin >= 1.0.6}
|
|
BuildRequires: %{python_module rjsmin >= 1.1.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module slimit}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Django >= 2.2
|
|
Requires: python-Jinja2
|
|
Requires: python-beautifulsoup4
|
|
Requires: python-csscompressor
|
|
Requires: python-django-appconf >= 1.0.3
|
|
Requires: python-rcssmin >= 1.0.6
|
|
Requires: python-rjsmin >= 1.1.0
|
|
Requires: python-slimit
|
|
Recommends: python-Brotli >= 1.0.6
|
|
Recommends: python-calmjs
|
|
Suggests: python-django-sekizai >= 0.9.0
|
|
Provides: python-django_compressor = %{version}
|
|
Obsoletes: python-django_compressor < %{version}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Django Compressor combines and compresses linked and inline Javascript or CSS
|
|
in a Django templates into cacheable static files by using the "compress"
|
|
template tag.
|
|
|
|
%prep
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# https://github.com/django-compressor/django-compressor/issues/998
|
|
# Upstream needs to fix the tests to work with new python stack
|
|
#%%python_expand %{_bindir}/django-admin.py-%{$python_bin_suffix} test --settings=compressor.test_settings compressor --pythonpath=`pwd` -v2
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc AUTHORS README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|