forked from pool/python-webassets
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-webassets?expand=0&rev=1
65 lines
2.3 KiB
RPMSpec
65 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-webassets
|
|
#
|
|
# Copyright (c) 2017 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
|
|
Summary: Media asset management for Python, with glue code for various web frameworks
|
|
# rjsmin=Apache-2.0
|
|
# jspacker=LGPL-2.1
|
|
# cssrewrite=BSD-3-Clause
|
|
# six.py=MIT
|
|
License: BSD-2-Clause AND Apache-2.0 AND LGPL-2.1 AND BSD-3-Clause AND MIT
|
|
Group: Development/Languages/Python
|
|
Url: http://github.com/miracle2k/webassets/
|
|
Source: https://files.pythonhosted.org/packages/source/w/webassets/webassets-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: help2man
|
|
BuildRequires: python-rpm-macros
|
|
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}
|
|
sed -i 's/#!.*//' src/webassets/filter/rjsmin/rjsmin.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
install -d 755 %{buildroot}%{_mandir}/man1
|
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} help2man -o %{buildroot}%{_mandir}/man1/webassets.1 -n webassets --version-string=%{version} -N "$python %{buildroot}%{_bindir}/webassets"}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS CHANGES LICENSE README.rst
|
|
%python3_only %{_bindir}/webassets
|
|
%python3_only %{_mandir}/man1/webassets.1%{ext_man}
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|