commit 64806f2008a0f617e4a1f6a07e0dd87af54d7d2e
Author: Jakub Bogusz <[email protected]>
Date:   Sat Jul 21 18:26:49 2018 +0200

    - updated to 1.5.2
    - added python3- package

 python-PasteDeploy.spec | 98 +++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 78 insertions(+), 20 deletions(-)
---
diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec
index f9d1ff3..c720ba6 100644
--- a/python-PasteDeploy.spec
+++ b/python-PasteDeploy.spec
@@ -1,20 +1,41 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+%bcond_with    tests   # unit tests (not included in archive)
+
 %define        module  PasteDeploy
 Summary:       Load, configure, and compose WSGI applications and servers
 Summary(pl.UTF-8):     Wczytywanie, konfiguracja i łączenie aplikacji i 
serwerów WSGI
 Name:          python-%{module}
-Version:       1.5.0
-Release:       3
-License:       X11/MIT
+Version:       1.5.2
+Release:       1
+License:       MIT
 Group:         Libraries/Python
-Source0:       
http://cheeseshop.python.org/packages/source/P/PasteDeploy/%{module}-%{version}.tar.gz
-# Source0-md5: f1a068a0b680493b6eaff3dd7690690f
-URL:           http://pythonpaste.org/deploy/
-BuildRequires: python-devel
-BuildRequires: python-modules
+#Source0Download: https://pypi.org/simple/pastedeploy/
+Source0:       
https://files.pythonhosted.org/packages/source/P/PasteDeploy/%{module}-%{version}.tar.gz
+# Source0-md5: 352b7205c78c8de4987578d19431af3b
+# dead
+#URL:          http://pythonpaste.org/deploy/
+URL:           https://pypi.org/project/PasteDeploy/
+%if %{with python2}
+BuildRequires: python-devel >= 1:2.5
 BuildRequires: python-setuptools >= 0.6-0.a9.1
+%if %{with tests}
+BuildRequires: python-nose >= 0.11
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-setuptools >= 0.6-0.a9.1
+%if %{with tests}
+BuildRequires: python3-nose >= 0.11
+%endif
+%endif
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
-Requires:      python-modules
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python-Paste
+Requires:      python-modules >= 1:2.5
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -30,30 +51,67 @@ URI; URI te mogą odnosić się do pakietów Python Egg dla 
plików
 konfiguracyjnych w stylu INI. Paste Script udostępnia polecenia do
 obsługi aplikacji w oparciu o ten plik konfiguracyjny.
 
+%package -n python3-%{module}
+Summary:       Load, configure, and compose WSGI applications and servers
+Summary(pl.UTF-8):     Wczytywanie, konfiguracja i łączenie aplikacji i 
serwerów WSGI
+Group:         Libraries/Python
+Requires:      python3-Paste
+Requires:      python3-modules >= 1:3.2
+
+%description -n python3-%{module}
+This tool provides code to load WSGI applications and servers from
+URIs; these URIs can refer to Python Eggs for INI-style configuration
+files. Paste Script provides commands to serve applications based on
+this configuration file.
+
+%description -n python3-%{module} -l pl.UTF-8
+To narzędzie zawiera kod do wczytywania aplikacji i serwerów WSGI z
+URI; URI te mogą odnosić się do pakietów Python Egg dla plików
+konfiguracyjnych w stylu INI. Paste Script udostępnia polecenia do
+obsługi aplikacji w oparciu o ten plik konfiguracyjny.
+
 %prep
 %setup -q -n PasteDeploy-%{version}
 
 %build
-%py_build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%py_install \
-       --single-version-externally-managed \
-       --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
 
 %py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc docs/*
-%dir %{py_sitescriptdir}/paste/deploy
-%{py_sitescriptdir}/paste/deploy/*.py[co]
-%{py_sitescriptdir}/paste/deploy/paster_templates
+%doc README docs/*.txt
+%{py_sitescriptdir}/paste/deploy
 %{py_sitescriptdir}/PasteDeploy-%{version}-py*.egg-info
 %{py_sitescriptdir}/PasteDeploy-%{version}-py*-nspkg.pth
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README docs/*.txt
+%{py3_sitescriptdir}/paste/deploy
+%{py3_sitescriptdir}/PasteDeploy-%{version}-py*.egg-info
+%{py3_sitescriptdir}/PasteDeploy-%{version}-py*-nspkg.pth
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PasteDeploy.git/commitdiff/64806f2008a0f617e4a1f6a07e0dd87af54d7d2e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to