c9898ce
%global srcname waitress
7d555e5
Igor Gnatenko 80840b1
%global _docdir_fmt %{name}
9618347
c9898ce
Name:           python-%{srcname}
6750ccc
Version:        1.0.2
6750ccc
Release:        1%{?dist}
be5e56a
Summary:        Waitress WSGI server
be5e56a
be5e56a
License:        ZPLv2.1
c9898ce
URL:            https://github.com/Pylons/%{srcname}
Igor Gnatenko 80840b1
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
be5e56a
be5e56a
BuildArch:      noarch
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
# No docs as we don't have packaged pylons theme for sphinx
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
%global _description \
Igor Gnatenko 80840b1
Waitress is meant to be a production-quality pure-Python WSGI server with\
Igor Gnatenko 80840b1
very acceptable performance. It has no dependencies except ones which live\
Igor Gnatenko 80840b1
in the Python standard library. It runs on CPython on Unix and Windows under\
Igor Gnatenko 80840b1
Python 2.6+ and Python 3.3+. It is also known to run on PyPy 1.6.0+ on UNIX.\
be5e56a
It supports HTTP/1.0 and HTTP/1.1.
be5e56a
Igor Gnatenko 80840b1
%description %{_description}
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
%package -n python2-%{srcname}
Igor Gnatenko 80840b1
Summary:        %{summary}
Igor Gnatenko 80840b1
%{?python_provide:%python_provide python2-%{srcname}}
Igor Gnatenko 80840b1
BuildRequires:  python2-devel
Igor Gnatenko 80840b1
BuildRequires:  python2-setuptools
Igor Gnatenko 80840b1
BuildRequires:  python2-nose
Igor Gnatenko 80840b1
BuildRequires:  python2-coverage
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
%description -n python2-%{srcname} %{_description}
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
Python 2 version.
be5e56a
c9898ce
%package -n python3-%{srcname}
be5e56a
Summary:        Waitress WSGI server
be5e56a
BuildRequires:  python3-devel
be5e56a
BuildRequires:  python3-setuptools
be5e56a
BuildRequires:  python3-nose
be5e56a
BuildRequires:  python3-coverage
be5e56a
Igor Gnatenko 80840b1
%description -n python3-%{srcname} %{_description}
be5e56a
Igor Gnatenko 80840b1
Python 3 version.
be5e56a
be5e56a
%prep
Igor Gnatenko 80840b1
%autosetup -n %{srcname}-%{version}
be5e56a
be5e56a
%build
Igor Gnatenko 80840b1
%py2_build
Igor Gnatenko 80840b1
%py3_build
be5e56a
be5e56a
%install
Igor Gnatenko 80840b1
%py2_install
Igor Gnatenko 80840b1
%py3_install
be5e56a
5325847
#check
5325847
# disable checks for now as they fail trying to lookup localhost in koji.
5325847
# 
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
%files -n python2-%{srcname}
Igor Gnatenko 80840b1
%license COPYRIGHT.txt LICENSE.txt
Igor Gnatenko 80840b1
%doc README.rst CHANGES.txt
Igor Gnatenko 80840b1
%{python2_sitelib}/%{srcname}/
Igor Gnatenko 80840b1
%{python2_sitelib}/%{srcname}-*.egg-info/
Igor Gnatenko 80840b1
Igor Gnatenko 80840b1
%files -n python3-%{srcname}
Igor Gnatenko 80840b1
%license COPYRIGHT.txt LICENSE.txt
Igor Gnatenko 80840b1
%doc README.rst CHANGES.txt
fd20a2a
%{_bindir}/waitress-serve
Igor Gnatenko 80840b1
%{python3_sitelib}/%{srcname}/
Igor Gnatenko 80840b1
%{python3_sitelib}/%{srcname}-*.egg-info/
be5e56a
be5e56a
%changelog
6750ccc
* Sat Feb 18 2017 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 1.0.2-1
6750ccc
- Update to 1.0.2. Fixes bug #1419297
6750ccc
ad25b69
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
ad25b69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ad25b69
9d1bf93
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.1-2
9d1bf93
- Rebuild for Python 3.6
9d1bf93
eaf0f01
* Tue Oct 25 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.1-1
eaf0f01
- Update to 1.0.1. Fixes bug #1387885
eaf0f01
5325847
* Sat Sep 03 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.0-1
5325847
- Update to 1.0.0. Fixes bug #1372330
5325847
2f4c1eb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
2f4c1eb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2f4c1eb
Igor Gnatenko 80840b1
* Wed Jun 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.0-3
Igor Gnatenko 80840b1
- Modernize spec to comply with new packaging guidelines
Igor Gnatenko 80840b1
c9898ce
* Thu May 26 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.9.0-2
c9898ce
- Fixed Source0 to point to new PyPi predictable URL format
c9898ce
b37b685
* Thu May 5 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.9.0-1
b37b685
- Update to 0.9.0
b37b685
- Fixed 2 warnings from fedpkg lint
b37b685
66dcbf8
* Sun Apr 10 2016 Kevin Fenzi <kevin@scrye.com> - 0.9.0b1-1
66dcbf8
- Update to 0.9.0b1. Fixes bug #1325661
66dcbf8
60ea378
* Mon Mar 21 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.9.0b0-1
60ea378
- New (beta) version
60ea378
0bd52fc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.10-3
0bd52fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0bd52fc
8d89616
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.10-2
8d89616
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
8d89616
102eea2
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 0.8.10-1
102eea2
- new version
102eea2
a259989
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.9-6
a259989
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a259989
7d555e5
* Mon Apr 27 2015 Ralph Bean <rbean@redhat.com> - 0.8.9-5
7d555e5
- Conditionalize the python3 subpackage.
62ae517
9183a71
* Mon Jul 14 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.9-4
b37b685
- Fix comment in description section about versioned directory for docs
9183a71
- Use __python2 macro instead of __python
9183a71
1f6bd94
* Sat Jun 14 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.9-3
62ae517
- Run the tests with nose to avoid unclosed socket errors
62ae517
f90c165
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.9-2
f90c165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f90c165
4acd94a
* Sun May 25 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.9-1
4acd94a
- Update to upstream
4acd94a
5db2e91
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.8-2
5db2e91
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
5db2e91
fb481d4
* Sun Dec 22 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.8-1
fb481d4
- Update to upstream
fb481d4
c40d74b
* Sun Dec 8 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.5-3
c40d74b
- Remove python3 dependency on the python-waitress python2 package
c40d74b
9618347
* Wed Aug 7 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.5-2
9618347
- Update description to use the new Fedora 20 _pkgdocdir macro, which
9618347
  is also defined for backwards cmompatibility
9618347
739d078
* Wed Jul 31 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.5-1
739d078
- Update to upstream
739d078
fd20a2a
* Sat Jul 6 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.4-1
fd20a2a
- Update to upstream
fd20a2a
- Added waitress-serve as a binary executable in /usr/bin
fd20a2a
36e73db
* Sun May 12 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.3-1
36e73db
- Update to upstream
36e73db
dc4874d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-4
dc4874d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dc4874d
be5e56a
* Wed Nov 28 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.2-3
b37b685
- Use version macro in the Source0 to avoid duplicates
be5e56a
* Sat Nov 24 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.2-2
be5e56a
- Point to the local docs directory in the description for the documentation
be5e56a
- Remove py3dir before copying the files to it in the prep phase
be5e56a
- Remove -O1 in the build phase as it is not used anymore in the Fedora
be5e56a
  Packaging guidelines
be5e56a
- Remove files rpmlint doesn't like
be5e56a
* Mon Nov 19 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.8.2-1
be5e56a
- New package.