forked from pool/python-tornado6
Accepting request 910351 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/910351 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tornado6?expand=0&rev=7
This commit is contained in:
2
python-tornado6-rpmlintrc
Normal file
2
python-tornado6-rpmlintrc
Normal file
@@ -0,0 +1,2 @@
|
||||
# keep the empty javascript resource for the demo
|
||||
addFilter("zero-length .*demos/facebook/static/facebook.js")
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 5 12:51:05 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Remove exec bits from demos: fix boo#1189066
|
||||
- Add python-tornado6-rpmlintrc for empty JS resource in demo
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 8 20:46:57 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ Summary: Open source version of scalable, non-blocking web server that po
|
||||
License: Apache-2.0
|
||||
URL: https://www.tornadoweb.org
|
||||
Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz
|
||||
Source99: python-tornado6-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE ignore-resourcewarning-doctests.patch -- ignore resource warnings on OBS
|
||||
Patch0: ignore-resourcewarning-doctests.patch
|
||||
BuildRequires: %{python_module base >= 3.5}
|
||||
@@ -84,10 +85,12 @@ rm -r %{buildroot}%{$python_sitearch}/tornado/test
|
||||
# deduplicate files in python platlibdir
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
# install demos into docdir and deduplicate
|
||||
mkdir -p %{buildroot}%{_docdir}/$python-tornado6/
|
||||
cp -r demos %{buildroot}%{_docdir}/$python-tornado6/
|
||||
find %{buildroot}%{_docdir}/$python-tornado6 -name "*.py" -exec sed -i "1{s|^#!.*$|%{_bindir}/$python|}" {} \;
|
||||
%fdupes %{buildroot}%{_docdir}/$python-tornado6
|
||||
pdocdir=%{buildroot}%{_docdir}/$python-tornado6
|
||||
mkdir -p ${pdocdir}
|
||||
cp -r demos ${pdocdir}/
|
||||
find ${pdocdir} -name "*.py" -exec sed -i "1{s|^#!.*$|%{_bindir}/$python|}" {} \;
|
||||
find ${pdocdir} -type f -exec chmod a-x {} \;
|
||||
%fdupes ${pdocdir}
|
||||
}
|
||||
|
||||
%check
|
||||
|
||||
Reference in New Issue
Block a user