Пакет apache2-mod_wsgi: 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 | %define _unpackaged_files_terminate_build 1 %def_with check Name: apache2-mod_wsgi Version: 4.5.24 Release: alt0.M80P.1 Summary: Python WSGI module for Apache2 Group: System/Servers License: ASL 2.0 # Source-git: https://github.com/GrahamDumpleton/mod_wsgi Url: http://www.modwsgi.org Source: %name-%version.tar Patch0: 0001-Add-basic-tests.patch BuildRequires(pre): apache2-devel BuildRequires: python-dev BuildRequires: python3-dev %if_with check BuildRequires: nss_wrapper BuildRequires: socket_wrapper BuildRequires: pytest BuildRequires: python-module-nose BuildRequires: python-module-pytest BuildRequires: python-module-requests BuildRequires: pytest3 BuildRequires: python3-module-nose BuildRequires: python3-module-pytest BuildRequires: python3-module-requests %endif Requires: apache2 >= %apache2_version Provides: mod_wsgi = %EVR %description The mod_wsgi package implements a simple to use Apache module which can host any Python web application which supports the Python WSGI specification. %package py3 Summary: Python3 WSGI module for Apache2 Group: System/Servers Requires: apache2 >= %apache2_version Provides: mod_wsgi-py3 = %EVR %description py3 The mod_wsgi-py3 package implements a simple to use Apache module which can host any Python3 web application which supports the Python3 WSGI specification. %prep %setup %patch0 -p1 cp -a . ../wsgi-py3 %build %add_optflags -fno-strict-aliasing %configure --with-apxs=%apache2_apxs --with-python=python %make pushd ../wsgi-py3 %configure --with-apxs=%apache2_apxs --with-python=python3 %make popd %install mkdir -p %buildroot%apache2_mods_available pushd ../wsgi-py3 %makeinstall_std mv %buildroot%apache2_moduledir/mod_wsgi{,-py3}.so echo -e '<IfModule !wsgi_module>\n\tLoadModule wsgi_module %apache2_moduledir/mod_wsgi-py3.so\n</IfModule>' > \ %buildroot%apache2_mods_available/wsgi-py3.load popd %makeinstall_std echo -e '<IfModule !wsgi_module>\n\tLoadModule wsgi_module %apache2_libexecdir/mod_wsgi.so\n</IfModule>' > \ %buildroot%apache2_mods_available/wsgi.load %check %make check DESTDIR=%buildroot pushd ../wsgi-py3 %make check DESTDIR=%buildroot popd %files %doc *.rst LICENSE %apache2_moduledir/mod_wsgi.so %config(noreplace) %apache2_mods_available/wsgi.load %files py3 %doc *.rst LICENSE %apache2_moduledir/mod_wsgi-py3.so %config(noreplace) %apache2_mods_available/wsgi-py3.load %changelog * Mon Dec 23 2019 Stanislav Levin <slev@altlinux.org> 4.5.24-alt0.M80P.1 - 4.5.1 -> 4.5.24. - Built with Python3 (Closes: #37670). * Wed Apr 06 2016 Andrey Cherepanov <cas@altlinux.org> 4.5.1-alt1 - New version * Tue Apr 05 2016 Andrey Cherepanov <cas@altlinux.org> 3.3-alt1.2 - Rebuild with new apache2 * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 3.3-alt1.1 - Rebuild with Python-2.7 * Fri Nov 26 2010 Michael A. Kangin <prividen@altlinux.org> 3.3-alt1 - new version * Sun Dec 20 2009 Alexey Morsov <swi@altlinux.ru> 3.1-alt1 - new version * Sat Nov 28 2009 Alexey Morsov <swi@altlinux.ru> 2.8-alt1 - new version * Mon Nov 16 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.5-alt1.1 - Rebuilt with python 2.6 * Wed Sep 09 2009 Alexey Morsov <swi@altlinux.ru> 2.5-alt1 - new version * Thu Sep 04 2008 Alexey Morsov <swi@altlinux.ru> 2.3-alt1 - initial build |