Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
matrix-synapse
python-paste
python-paste.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-paste.spec of Package python-paste
%if 0%{?fedora} || 0%{?rhel} > 6 %global with_python3 1 %else %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif Name: python-paste Version: 2.0.2 Release: 1{?dist} Summary: Tools for using a Web Server Gateway Interface stack Group: System Environment/Libraries # Most of the code is MIT # paste/exceptions/collector.py is ZPLv2.0 # paste/evalexception/mochikit/MochiKit.js AFL or MIT # paste/lint.py MIT or Apache v2 # subproccess24.py PySourceColor.py, Python # doctest24.py, Public Domain License: MIT and ZPLv2.0 and Python and Public Domain and (AFL or MIT) and (MIT or ASL 2.0) URL: http://pythonpaste.org Source0: https://pypi.python.org/packages/source/P/Paste/Paste-%{version}.tar.gz # Use a system version of python-tempita before our bundled copy Patch1: paste-unbundle-tempita.patch Patch2: paste-python3.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-nose BuildRequires: python-tempita BuildRequires: pyOpenSSL BuildRequires: python-six Requires: python-tempita Requires: pyOpenSSL Requires: python-setuptools Requires: python-six %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-nose BuildRequires: python3-tempita BuildRequires: python3-six %endif # if with_python3 %description These provide several pieces of "middleware" (or filters) that can be nested to build web applications. Each piece of middleware uses the WSGI (PEP 333) interface, and should be compatible with other middleware based on those interfaces. %if 0%{?with_python3} %package -n python3-paste Summary: Tools for using a Web Server Gateway Interface stack Group: System Environment/Libraries Requires: python3-tempita Requires: python3-setuptools Requires: python3-six # TODO is there a pyOpenSSL for python3 %description -n python3-paste These provide several pieces of "middleware" (or filters) that can be nested to build web applications. Each piece of middleware uses the WSGI (PEP 333) interface, and should be compatible with other middleware based on those interfaces. %endif # with_python3 %prep %setup -q -n Paste-%{version} %patch1 -p1 -b .tmpta %patch2 -p1 -b .py3 # Strip #! lines that make these seem like scripts %{__sed} -i -e '/^#!.*/,1 d' paste/debug/doctest_webapp.py # clean docs directory pushd docs rm StyleGuide.txt popd %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} %endif # with_python3 %build %{__python} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif # with_python3 %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT popd %endif # with_python3 %check export PYTHONPATH=$(pwd) # We don't have access to the wider internet in the buildsystem nosetests -e '.*test_paste_website' %if 0%{?with_python3} pushd %{py3dir} export PYTHONPATH=$(pwd) # We don't have access to the wider internet in the buildsystem nosetests-%{python3_version} -e '.*test_paste_website' popd %endif # with_python3 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/* %{python_sitelib}/* %if 0%{?with_python3} %files -n python3-paste %defattr(-,root,root,-) %{python3_sitelib}/* %endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor