17
0
Files
python-django-compressor/python-django-compressor.spec
Tomáš Chvátal 02b29b3631 - Update to 2.4 release:
* support for newer django releases
- Drop merged patch:
  * pr_956.patch

- Rename to django-compressor to match up pypi name

- Add pr_956.patch to fix tests to use sys.executable

- Update to 2.3 release:
  - Drop support for Django 1.8, 1.9 and 1.10
  - Add support for Django 2.1 and 2.2, as well as Python 3.7
  - Update all dependencies. This required minor code changes, you might need to update some optional dependencies if you use any
  - Allow the mixed use of JS/CSS in Sekizai's templatetags `{% addtoblock "js" %}` and `{% addtoblock "css" %}` (#891)
  - Allow the implementation of new types other than css and js. (#900)
  - Update jinja2 extension to behave similar to the django tag (#899)
  - Fix crash in offline compression when child nodelist is None, again (#605)
  - Support STATIC_URL and COMPRESS_URL being string-like objects
  - Improve compress command memory usage (#870)
  - Ensure generated file always contains a base name (#775)
  - Add BrotliCompressorFileStorage (#867)
- Drop merged patch compressor-django2.patch

- Use noun phrase for summary.

- Add patch to build with django 2.0:
  * compressor-django2.patch

- Add missing dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-compressor?expand=0&rev=3
2020-01-06 14:40:20 +00:00

81 lines
2.9 KiB
RPMSpec

#
# spec file for package python-django-compressor
#
# Copyright (c) 2020 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
Name: python-django-compressor
Version: 2.4
Release: 0
Summary: Python module to compress linked/inline JavaScript/CSS to cached files
License: MIT AND BSD-3-Clause AND Apache-2.0
Group: Development/Languages/Python
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 >= 1.11}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module csscompressor}
BuildRequires: %{python_module django-appconf >= 1.0}
BuildRequires: %{python_module django-sekizai >= 0.9.0}
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 >= 1.11
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
Suggests: python-django-sekizai >= 0.9.0
Provides: 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
%python_expand %{_bindir}/django-admin.py-%{$python_bin_suffix} test --settings=compressor.test_settings compressor --pythonpath=`pwd`
%files %{python_files}
%license LICENSE
%doc AUTHORS README.rst
%{python_sitelib}/*
%changelog