|
|
@ -1,8 +1,12 @@
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-waitress
|
|
|
|
Name: python-waitress
|
|
|
|
Version: 0.8.9
|
|
|
|
Version: 0.8.9
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Waitress WSGI server
|
|
|
|
Summary: Waitress WSGI server
|
|
|
|
|
|
|
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
License: ZPLv2.1
|
|
|
@ -27,6 +31,7 @@ It supports HTTP/1.0 and HTTP/1.1.
|
|
|
|
For more information, see %{_pkgdocdir}/docs or
|
|
|
|
For more information, see %{_pkgdocdir}/docs or
|
|
|
|
http://docs.pylonsproject.org/projects/waitress/en/latest/ .
|
|
|
|
http://docs.pylonsproject.org/projects/waitress/en/latest/ .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-waitress
|
|
|
|
%package -n python3-waitress
|
|
|
|
Summary: Waitress WSGI server
|
|
|
|
Summary: Waitress WSGI server
|
|
|
|
Requires: python3
|
|
|
|
Requires: python3
|
|
|
@ -46,6 +51,7 @@ It supports HTTP/1.0 and HTTP/1.1.
|
|
|
|
|
|
|
|
|
|
|
|
For more information, see %{_pkgdocdir}/docs or
|
|
|
|
For more information, see %{_pkgdocdir}/docs or
|
|
|
|
http://docs.pylonsproject.org/projects/waitress/en/latest/ .
|
|
|
|
http://docs.pylonsproject.org/projects/waitress/en/latest/ .
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n waitress-%{version}
|
|
|
|
%setup -q -n waitress-%{version}
|
|
|
@ -54,23 +60,29 @@ rm -f .gitignore docs/.gitignore
|
|
|
|
# this script has devel paths, not useful in a user system
|
|
|
|
# this script has devel paths, not useful in a user system
|
|
|
|
rm -f docs/rebuild
|
|
|
|
rm -f docs/rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# Run the Python 3 install first so that the Python 2 version
|
|
|
|
# Run the Python 3 install first so that the Python 2 version
|
|
|
|
# of /usr/bin/waitress-server "wins":
|
|
|
|
# of /usr/bin/waitress-server "wins":
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
@ -83,9 +95,11 @@ popd
|
|
|
|
# in develop mode here.
|
|
|
|
# in develop mode here.
|
|
|
|
PYTHONPATH=. %{__python2} setup.py nosetests
|
|
|
|
PYTHONPATH=. %{__python2} setup.py nosetests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
PYTHONPATH=. %{__python3} setup.py nosetests
|
|
|
|
PYTHONPATH=. %{__python3} setup.py nosetests
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -94,13 +108,17 @@ popd
|
|
|
|
%{python2_sitelib}/waitress
|
|
|
|
%{python2_sitelib}/waitress
|
|
|
|
%{python2_sitelib}/waitress-%{version}-py2.?.egg-info
|
|
|
|
%{python2_sitelib}/waitress-%{version}-py2.?.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-waitress
|
|
|
|
%files -n python3-waitress
|
|
|
|
%doc README.rst CHANGES.txt COPYRIGHT.txt LICENSE.txt docs
|
|
|
|
%doc README.rst CHANGES.txt COPYRIGHT.txt LICENSE.txt docs
|
|
|
|
%{python3_sitelib}/waitress
|
|
|
|
%{python3_sitelib}/waitress
|
|
|
|
%{python3_sitelib}/waitress-%{version}-py3.?.egg-info
|
|
|
|
%{python3_sitelib}/waitress-%{version}-py3.?.egg-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Apr 27 2015 Ralph Bean <rbean@redhat.com> - 0.8.9-5
|
|
|
|
|
|
|
|
- Conditionalize the python3 subpackage.
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 14 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.9-4
|
|
|
|
* Mon Jul 14 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.9-4
|
|
|
|
- Fix comment in %description about versioned directory for docs
|
|
|
|
- Fix comment in %description about versioned directory for docs
|
|
|
|