File python-webassets.spec of Package python-webassets

#
# spec file for package python-webassets
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-webassets
Version:        0.12.1
Release:        0
License:        BSD-2-Clause
Summary:        Media asset management for Python, with glue code for various web frameworks
Url:            http://github.com/miracle2k/webassets/
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/w/webassets/webassets-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
# test dependencies
BuildRequires:  %{python_module nose}
BuildRequires:  %{python_module mock}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module Jinja2}
BuildRequires:  fdupes
BuildArch:      noarch

%python_subpackages

%description
Merges, minifies and compresses Javascript and CSS files, supporting a variety
of different filters, including YUI, jsmin, jspacker or CSS tidy. Also supports
URL rewriting in CSS files.

%prep
%setup -q -n webassets-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%python_exec setup.py test

%files %{python_files}
%doc AUTHORS CHANGES LICENSE README.rst
%python3_only %{_bindir}/webassets
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by