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>
|
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
|
License: Apache-2.0
|
||||||
URL: https://www.tornadoweb.org
|
URL: https://www.tornadoweb.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz
|
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
|
# PATCH-FIX-OPENSUSE ignore-resourcewarning-doctests.patch -- ignore resource warnings on OBS
|
||||||
Patch0: ignore-resourcewarning-doctests.patch
|
Patch0: ignore-resourcewarning-doctests.patch
|
||||||
BuildRequires: %{python_module base >= 3.5}
|
BuildRequires: %{python_module base >= 3.5}
|
||||||
@@ -84,10 +85,12 @@ rm -r %{buildroot}%{$python_sitearch}/tornado/test
|
|||||||
# deduplicate files in python platlibdir
|
# deduplicate files in python platlibdir
|
||||||
%fdupes %{buildroot}%{$python_sitearch}
|
%fdupes %{buildroot}%{$python_sitearch}
|
||||||
# install demos into docdir and deduplicate
|
# install demos into docdir and deduplicate
|
||||||
mkdir -p %{buildroot}%{_docdir}/$python-tornado6/
|
pdocdir=%{buildroot}%{_docdir}/$python-tornado6
|
||||||
cp -r demos %{buildroot}%{_docdir}/$python-tornado6/
|
mkdir -p ${pdocdir}
|
||||||
find %{buildroot}%{_docdir}/$python-tornado6 -name "*.py" -exec sed -i "1{s|^#!.*$|%{_bindir}/$python|}" {} \;
|
cp -r demos ${pdocdir}/
|
||||||
%fdupes %{buildroot}%{_docdir}/$python-tornado6
|
find ${pdocdir} -name "*.py" -exec sed -i "1{s|^#!.*$|%{_bindir}/$python|}" {} \;
|
||||||
|
find ${pdocdir} -type f -exec chmod a-x {} \;
|
||||||
|
%fdupes ${pdocdir}
|
||||||
}
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|||||||
Reference in New Issue
Block a user