Package python-module-waitress: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | # vim: set ft=spec: -*- rpm-spec -*- %define modulename waitress %define oldname python-%modulename %def_with python3 %def_disable check %if_with python3 %define py3name python3-module-%modulename %define py3dir %py3name-%version %endif Name: python-module-waitress Version: 0.8.10 Release: alt2.dev0.2 %setup_python_module %modulename Summary: Waitress WSGI server License: ZPLv2.1 Group: Development/Python Url: https://github.com/Pylons/%modulename Packager: Aleksey Avdeev <solo@altlinux.ru> BuildArch: noarch # http://pypi.python.org/packages/source/w/%modulename/%modulename-%version.tar.gz # git://github.com/Pylons/%modulename.git Source: %name-%version.tar Source44: import.info BuildRequires: python-module-coverage python-module-docutils python-module-html5lib python-module-nose python-module-pytest #BuildPreReq: python-module-nose #BuildPreReq: python-module-coverage #BuildPreReq: python-module-sphinx #BuildPreReq: python-module-setuptools-tests %description Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 2.6+ and Python 3.2. It is also known to run on PyPy 1.6.0 on UNIX. It supports HTTP/1.0 and HTTP/1.1. For more information, see %_docdir/%oldname-%version/docs or http://docs.pylonsproject.org/projects/%modulename/en/latest/ . %package tests Summary: Tests for Waitress WSGI server Group: Development/Python BuildArch: noarch Requires: %name = %EVR %description tests %summary This package contains tests for Waitress. %if_with python3 %package -n %py3name Summary: Waitress WSGI server Group: Development/Python BuildArch: noarch BuildRequires: python3-module-coverage python3-module-html5lib python3-module-nose python3-module-pytest python3-module-sphinx BuildPreReq: rpm-build-python3 #BuildPreReq: python3-module-distribute #BuildPreReq: python3-module-nose #BuildPreReq: python3-module-coverage #BuildPreReq: python3-module-sphinx #BuildPreReq: python3-module-setuptools-tests %description -n %py3name Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 2.6+ and Python 3.2. It is also known to run on PyPy 1.6.0 on UNIX. It supports HTTP/1.0 and HTTP/1.1. For more information, see %_docdir/%oldname-%version/docs or http://docs.pylonsproject.org/projects/%modulename/en/latest/ . %package -n %py3name-tests Summary: Tests for Waitress WSGI server Group: Development/Python BuildArch: noarch Requires: %py3name = %EVR %description -n %py3name-tests %summary This package contains tests for Waitress. %endif %prep %setup rm -rf %modulename.egg-info rm -f .gitignore docs/.gitignore # this script has devel paths, not useful in a user system rm -f docs/rebuild %if_with python3 rm -rf ../%py3dir cp -a . ../%py3dir %endif %build %python_build %if_with python3 pushd ../%py3dir %python3_build popd %endif %install %if_with python3 pushd ../%py3dir %python3_install popd pushd %buildroot%_bindir for i in $(ls); do mv $i $i.py3 done popd %endif %python_install %check # by setting the PYTHONPATH to the current dir # we make the package %modulename importable # Usually the testsuite is run after installing # the package in develop mode but we can't install # in develop mode here. PYTHONPATH=. %__python setup.py test -q %if_with python3 pushd ../%py3dir PYTHONPATH=. %__python3 setup.py test -q popd %endif %files %doc README.rst CHANGES.txt COPYRIGHT.txt LICENSE.txt docs %_bindir/* %if_with python3 %exclude %_bindir/*.py3 %endif %python_sitelibdir_noarch/* %exclude %python_sitelibdir_noarch/%modulename/test* %files tests %python_sitelibdir_noarch/%modulename/test* %if_with python3 %files -n %py3name %doc README.rst CHANGES.txt COPYRIGHT.txt LICENSE.txt docs %_bindir/*.py3 %python3_sitelibdir_noarch/* %exclude %python3_sitelibdir_noarch/%modulename/test* %files -n %py3name-tests %python3_sitelibdir_noarch/%modulename/test* %endif %changelog * Wed May 16 2018 Andrey Bychkov <mrdrew@altlinux.org> 0.8.10-alt2.dev0.2 - (NMU) rebuild with python3.6 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.8.10-alt2.dev0.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Tue Jan 26 2016 Sergey Alembekov <rt@altlinux.ru> 0.8.10-alt2.dev0 - Rebuild with "def_disable check" - Cleanup buildreq * Sat Aug 29 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.10-alt1.dev0 - Version 0.8.10dev0 * Wed Jul 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.9-alt1 - Version 0.8.9 * Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.2-alt2.1 - Fixed build * Wed Mar 06 2013 Aleksey Avdeev <solo@altlinux.ru> 0.8.2-alt2 - Add python{,3}-module-waitress-test subpackages * Thu Feb 21 2013 Igor Vlasenko <viy@altlinux.ru> 0.8.2-alt1_4 - update to new release by fcimport * Thu Jan 03 2013 Igor Vlasenko <viy@altlinux.ru> 0.8.2-alt1_3 - initial fc import |