]> git.pld-linux.org Git - packages/python-PasteDeploy.git/blame - python-PasteDeploy.spec
rebuild with tests and docs
[packages/python-PasteDeploy.git] / python-PasteDeploy.spec
CommitLineData
64806f20
JB
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5%bcond_with tests # unit tests (not included in archive)
6
6be0d297 7%define module PasteDeploy
66ad93f9 8Summary: Load, configure, and compose WSGI applications and servers
90b9ebca 9Summary(pl.UTF-8): Wczytywanie, konfiguracja i łączenie aplikacji i serwerów WSGI
6be0d297 10Name: python-%{module}
64806f20 11Version: 1.5.2
e168565b 12Release: 7
64806f20 13License: MIT
6be0d297 14Group: Libraries/Python
64806f20
JB
15#Source0Download: https://pypi.org/simple/pastedeploy/
16Source0: https://files.pythonhosted.org/packages/source/P/PasteDeploy/%{module}-%{version}.tar.gz
17# Source0-md5: 352b7205c78c8de4987578d19431af3b
18# dead
19#URL: http://pythonpaste.org/deploy/
20URL: https://pypi.org/project/PasteDeploy/
21%if %{with python2}
22BuildRequires: python-devel >= 1:2.5
a470b79b 23BuildRequires: python-setuptools >= 0.6-0.a9.1
64806f20
JB
24%if %{with tests}
25BuildRequires: python-nose >= 0.11
26%endif
27%endif
28%if %{with python3}
29BuildRequires: python3-devel >= 1:3.2
30BuildRequires: python3-setuptools >= 0.6-0.a9.1
31%if %{with tests}
32BuildRequires: python3-nose >= 0.11
33%endif
34%endif
f876f2dd 35BuildRequires: rpm-pythonprov
64806f20
JB
36BuildRequires: rpmbuild(macros) >= 1.714
37Requires: python-Paste
38Requires: python-modules >= 1:2.5
66ad93f9 39BuildArch: noarch
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
62439de5
JB
43This tool provides code to load WSGI applications and servers from
44URIs; these URIs can refer to Python Eggs for INI-style configuration
45files. Paste Script provides commands to serve applications based on
46this configuration file.
47
a3388fb6
JR
48%description -l pl.UTF-8
49To narzędzie zawiera kod do wczytywania aplikacji i serwerów WSGI z
50URI; URI te mogą odnosić się do pakietów Python Egg dla plików
51konfiguracyjnych w stylu INI. Paste Script udostępnia polecenia do
52obsługi aplikacji w oparciu o ten plik konfiguracyjny.
66ad93f9 53
64806f20
JB
54%package -n python3-%{module}
55Summary: Load, configure, and compose WSGI applications and servers
56Summary(pl.UTF-8): Wczytywanie, konfiguracja i łączenie aplikacji i serwerów WSGI
57Group: Libraries/Python
58Requires: python3-Paste
59Requires: python3-modules >= 1:3.2
60
61%description -n python3-%{module}
62This tool provides code to load WSGI applications and servers from
63URIs; these URIs can refer to Python Eggs for INI-style configuration
64files. Paste Script provides commands to serve applications based on
65this configuration file.
66
67%description -n python3-%{module} -l pl.UTF-8
68To narzędzie zawiera kod do wczytywania aplikacji i serwerów WSGI z
69URI; URI te mogą odnosić się do pakietów Python Egg dla plików
70konfiguracyjnych w stylu INI. Paste Script udostępnia polecenia do
71obsługi aplikacji w oparciu o ten plik konfiguracyjny.
72
66ad93f9 73%prep
74%setup -q -n PasteDeploy-%{version}
75
76%build
64806f20
JB
77%if %{with python2}
78%py_build %{?with_tests:test}
79%endif
80
81%if %{with python3}
82%py3_build %{?with_tests:test}
83%endif
66ad93f9 84
85%install
86rm -rf $RPM_BUILD_ROOT
64806f20
JB
87
88%if %{with python2}
89%py_install
66ad93f9 90
7b815568 91%py_postclean
64806f20
JB
92%endif
93
94%if %{with python3}
95%py3_install
96%endif
66ad93f9 97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
64806f20 101%if %{with python2}
66ad93f9 102%files
103%defattr(644,root,root,755)
64806f20
JB
104%doc README docs/*.txt
105%{py_sitescriptdir}/paste/deploy
6be0d297
ER
106%{py_sitescriptdir}/PasteDeploy-%{version}-py*.egg-info
107%{py_sitescriptdir}/PasteDeploy-%{version}-py*-nspkg.pth
64806f20
JB
108%endif
109
110%if %{with python3}
111%files -n python3-%{module}
112%defattr(644,root,root,755)
113%doc README docs/*.txt
114%{py3_sitescriptdir}/paste/deploy
115%{py3_sitescriptdir}/PasteDeploy-%{version}-py*.egg-info
116%{py3_sitescriptdir}/PasteDeploy-%{version}-py*-nspkg.pth
117%endif
This page took 0.139188 seconds and 4 git commands to generate.