forked from pool/python-webassets
- Add patch to make tests pass:
* tests.patch - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-webassets?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
ccded4ccf1
commit
5cc03e7ae8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-webassets
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -12,7 +12,7 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -25,15 +25,18 @@ Summary: Media asset management for Python, with glue code for various we
|
||||
# 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
|
||||
License: BSD-2-Clause AND Apache-2.0 AND LGPL-2.1-only AND BSD-3-Clause AND MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/miracle2k/webassets/
|
||||
URL: http://github.com/miracle2k/webassets/
|
||||
Source: https://files.pythonhosted.org/packages/source/w/webassets/webassets-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
Patch0: tests.patch
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: help2man
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -44,21 +47,25 @@ URL rewriting in CSS files.
|
||||
|
||||
%prep
|
||||
%setup -q -n webassets-%{version}
|
||||
%patch0 -p1
|
||||
sed -i 's/#!.*//' src/webassets/filter/rjsmin/rjsmin.py
|
||||
# fix py2 only syntax
|
||||
sed -i -e 's:e.message:e.args[0]:g' tests/test_filters.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}
|
||||
|
||||
%check
|
||||
%{pytest}
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGES LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGES README.rst
|
||||
%python3_only %{_bindir}/webassets
|
||||
%python3_only %{_mandir}/man1/webassets.1%{ext_man}
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user