]> git.pld-linux.org Git - packages/python3-gunicorn.git/commitdiff
- python-gunicorn.spec updated to 20.0.4 (for python 3.5+) as python3-gunicorn.spec auto/th/python3-gunicorn-20.0.4-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 7 Feb 2021 12:02:47 +0000 (13:02 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 7 Feb 2021 12:02:47 +0000 (13:02 +0100)
python-gunicorn.spec [deleted file]
python3-gunicorn-dev-log.patch [moved from python-gunicorn-dev-log.patch with 100% similarity]
python3-gunicorn.spec [new file with mode: 0644]

diff --git a/python-gunicorn.spec b/python-gunicorn.spec
deleted file mode 100644 (file)
index 2a20f40..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-%bcond_without tests   # unit tests
-
-%define        module gunicorn
-Summary:       Python WSGI application server
-Summary(pl.UTF-8):     Pythonowy serwer aplikacji WSGI
-Name:          python-%{module}
-# keep 19.x here for python2 support
-Version:       19.10.0
-Release:       1
-License:       MIT
-Group:         Daemons
-#Source0Download: https://pypi.python.org/simple/gunicorn
-Source0:       https://files.pythonhosted.org/packages/source/g/gunicorn/%{module}-%{version}.tar.gz
-# Source0-md5: dfa07409c60f9dd8501fa0503f0bfbb1
-# distro-specific, not upstreamable
-Patch100:      %{name}-dev-log.patch
-URL:           http://gunicorn.org/
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.6
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-coverage >= 4.0
-BuildRequires: python-mock
-BuildRequires: python-pytest >= 3.2.5
-BuildRequires: python-pytest-cov >= 2.5.1
-%if "%{py_ver}" < "2.7"
-BuildRequires: python-unittest2
-%endif
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-coverage >= 4.0
-BuildRequires: python3-pytest >= 3.2.5
-BuildRequires: python3-pytest-cov >= 2.5.1
-%if "%{py3_ver}" < "3.3"
-BuildRequires: python3-mock
-%endif
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: sed >= 4.0
-%if %{with doc}
-BuildRequires: sphinx-pdg
-BuildRequires: python3-sphinx_rtd_theme
-%endif
-Requires:      python-setuptools
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It
-uses the pre-fork worker model, ported from Ruby's Unicorn project. It
-supports WSGI, Django, and Paster applications.
-
-%description -l pl.UTF-8
-Gunicorn ("Green Unicorn" - zielony jednorożec) to pythonowy serwer
-HTTP WSGI dla systemów uniksowych. Wykorzystuje model pre-fork,
-przeniesiony z projektu Unicorn napisanego w języku Ruby. Obsługuje
-aplikacje WSGI, Django i Paster.
-
-%package -n python3-%{module}
-Summary:       Python WSGI application server
-Summary(pl.UTF-8):     Pythonowy serwer aplikacji WSGI
-Group:         Libraries/Python
-Requires:      python3-setuptools
-
-%description -n python3-%{module}
-Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It
-uses the pre-fork worker model, ported from Ruby's Unicorn project. It
-supports WSGI, Django, and Paster applications.
-
-%description -n python3-%{module} -l pl.UTF-8
-Gunicorn ("Green Unicorn" - zielony jednorożec) to pythonowy serwer
-HTTP WSGI dla systemów uniksowych. Wykorzystuje model pre-fork,
-przeniesiony z projektu Unicorn napisanego w języku Ruby. Obsługuje
-aplikacje WSGI, Django i Paster.
-
-%prep
-%setup -q -n %{module}-%{version}
-%patch100 -p1
-
-%{__sed} -i -e 's/==/>=/; s/,<4\.4//' requirements_test.txt
-
-%build
-export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTEST_PLUGINS="pytest_cov.plugin"
-
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python3}
-%py3_install
-
-# rename executables in %{_bindir} so they don't collide
-for executable in gunicorn gunicorn_paster; do
-       %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,python3-}$executable
-done
-%endif
-
-%if %{with python2}
-%py_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE NOTICE README.rst THANKS
-%attr(755,root,root) %{_bindir}/gunicorn
-%attr(755,root,root) %{_bindir}/gunicorn_paster
-%{py_sitescriptdir}/gunicorn
-%{py_sitescriptdir}/gunicorn-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE NOTICE README.rst THANKS
-%attr(755,root,root) %{_bindir}/python3-gunicorn
-%attr(755,root,root) %{_bindir}/python3-gunicorn_paster
-%{py3_sitescriptdir}/gunicorn
-%{py3_sitescriptdir}/gunicorn-%{version}-py*.egg-info
-%endif
diff --git a/python3-gunicorn.spec b/python3-gunicorn.spec
new file mode 100644 (file)
index 0000000..fa54784
--- /dev/null
@@ -0,0 +1,73 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+
+%define        module gunicorn
+Summary:       Python WSGI application server
+Summary(pl.UTF-8):     Pythonowy serwer aplikacji WSGI
+Name:          python3-%{module}
+Version:       20.0.4
+Release:       1
+License:       MIT
+Group:         Daemons
+#Source0Download: https://pypi.python.org/simple/gunicorn
+Source0:       https://files.pythonhosted.org/packages/source/g/gunicorn/%{module}-%{version}.tar.gz
+# Source0-md5: 543669fcbb5739ee2af77184c5e571a1
+# distro-specific, not upstreamable
+Patch100:      %{name}-dev-log.patch
+URL:           https://gunicorn.org/
+BuildRequires: python3-devel >= 1:3.5
+BuildRequires: python3-setuptools >= 3.0
+%if %{with tests}
+BuildRequires: python3-aiohttp
+BuildRequires: python3-coverage >= 4.0
+BuildRequires: python3-pytest >= 3.2.5
+BuildRequires: python3-pytest-cov >= 2.5.1
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+BuildRequires: python3-sphinx_rtd_theme
+%endif
+Requires:      python3-setuptools
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It
+uses the pre-fork worker model, ported from Ruby's Unicorn project. It
+supports WSGI, Django, and Paster applications.
+
+%description -l pl.UTF-8
+Gunicorn ("Green Unicorn" - zielony jednorożec) to pythonowy serwer
+HTTP WSGI dla systemów uniksowych. Wykorzystuje model pre-fork,
+przeniesiony z projektu Unicorn napisanego w języku Ruby. Obsługuje
+aplikacje WSGI, Django i Paster.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch100 -p1
+
+%build
+export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTEST_PLUGINS="pytest_cov.plugin"
+
+%py3_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/{gunicorn,gunicorn-3}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE NOTICE README.rst THANKS
+%attr(755,root,root) %{_bindir}/gunicorn-3
+%{py3_sitescriptdir}/gunicorn
+%{py3_sitescriptdir}/gunicorn-%{version}-py*.egg-info
This page took 0.125325 seconds and 4 git commands to generate.