20214cf
%global pkgname websockify
20214cf
%global summary WSGI based adapter for the Websockets protocol
20214cf
Name:           python-%{pkgname}
fd6a6ea
Version:        0.8.0
bfce643
Release:        5%{?dist}
20214cf
Summary:        %{summary}
b0886e5
b0886e5
License:        LGPLv3
b0886e5
URL:            https://github.com/kanaka/websockify
5afe400
Source0:        https://github.com/kanaka/websockify/archive/v%{version}.tar.gz#/websockify-%{version}.tar.gz
b0886e5
BuildArch:      noarch
5c24223
b0886e5
%description
b0886e5
Python WSGI based adapter for the Websockets protocol
b0886e5
20214cf
%package -n python2-%{pkgname}
20214cf
Summary:        %{summary} - Python 2 version
20214cf
BuildRequires:  python2-devel
20214cf
BuildRequires:  python2-setuptools
20214cf
20214cf
Requires:       python2-setuptools
20214cf
20214cf
%{?python_provide:%python_provide python2-%{pkgname}}
20214cf
20214cf
%description -n python2-%{pkgname}
20214cf
Python WSGI based adapter for the Websockets protocol - Python 2 version
20214cf
20214cf
%package -n python3-%{pkgname}
20214cf
Summary:        %{summary} - Python 3 version
20214cf
BuildRequires:  python3-devel
20214cf
BuildRequires:  python3-setuptools
20214cf
20214cf
Requires:       python3-setuptools
20214cf
20214cf
%{?python_provide:%python_provide python3-%{pkgname}}
20214cf
20214cf
%description -n python3-%{pkgname}
20214cf
Python WSGI based adapter for the Websockets protocol - Python 3 version
20214cf
20214cf
%package doc
20214cf
Summary:        %{summary} - documentation
20214cf
20214cf
%description doc
20214cf
Python WSGI based adapter for the Websockets protocol - documentation
20214cf
b0886e5
%prep
20214cf
%autosetup -n %{pkgname}-%{version}
b0886e5
75108db
# TODO: Have the following handle multi line entries
75108db
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
75108db
b0886e5
%build
20214cf
%py2_build
20214cf
%py3_build
b0886e5
b0886e5
%install
20214cf
%py2_install
20214cf
rm %{buildroot}%{_bindir}/*
20214cf
%py3_install
b0886e5
5afe400
rm -Rf %{buildroot}/usr/share/websockify
b0886e5
mkdir -p %{buildroot}%{_mandir}/man1/
b0886e5
install -m 444 docs/websockify.1 %{buildroot}%{_mandir}/man1/
b0886e5
20214cf
%files -n python2-%{pkgname}
20214cf
%license LICENSE.txt
20214cf
%{python2_sitelib}/websockify/*
20214cf
%{python2_sitelib}/websockify-%{version}-py?.?.egg-info
b0886e5
20214cf
%files -n python3-%{pkgname}
20214cf
%license LICENSE.txt
b0886e5
%{_mandir}/man1/websockify.1*
20214cf
%{python3_sitelib}/websockify/*
20214cf
%{python3_sitelib}/websockify-%{version}-py?.?.egg-info
b0886e5
%{_bindir}/websockify
b0886e5
20214cf
%files doc
20214cf
%license LICENSE.txt
20214cf
%doc docs
b0886e5
b0886e5
%changelog
bfce643
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
bfce643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bfce643
ac1de85
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-4
ac1de85
- Rebuild for Python 3.6
ac1de85
20214cf
* Mon Aug 29 2016 Jan Beran <jberan@redhat.com> - 0.8.0-3
20214cf
- Python 3 subpackage
20214cf
63499bb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
63499bb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
63499bb
fd6a6ea
* Fri Feb 19 2016 Solly Ross <sross@redhat.com> - 0.8.0-1
fd6a6ea
- Update to release 0.8.0
fd6a6ea
88f1b7b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
88f1b7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
88f1b7b
781a80b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
781a80b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
781a80b
daa7743
* Wed Apr 29 2015 Pádraig Brady <pbrady@redhat.com> - 0.6.0-2
daa7743
- Support big endian systems - rhbz#1216219
daa7743
Nikola Dipanov c87e43c
* Mon Mar 23 2015 Nikola Đipanov <ndipanov@redhat.com> - 0.6.0-1
Nikola Dipanov c87e43c
- Update to release 0.6.0
Nikola Dipanov c87e43c
c56834d
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
c56834d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c56834d
20214cf
* Tue Sep 10 2013 Nikola Đipanov <ndipanov@redhat.com> - 0.5.1-1
Nikola Dipanov 541b9c5
- Update to release 0.5.1
Nikola Dipanov 541b9c5
4631506
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
4631506
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4631506
5afe400
* Thu Jun 20 2013 Pádraig Brady <P@draigBrady.com> - 0.4.1-1
5afe400
- Update to release 0.4.1
5afe400
5c24223
* Tue Mar 12 2013 Pádraig Brady <P@draigBrady.com> - 0.2.0-4
5c24223
- Add runtime dependency on setuptools
5c24223
dbbddbf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
dbbddbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dbbddbf
75108db
* Wed Oct 31 2012 Pádraig Brady <P@draigBrady.com> - 0.2.0-2
75108db
- Remove hard dependency on numpy
75108db
Nikola Dipanov aad6864
* Mon Oct 22 2012 Nikola Đipanov <ndipanov@redhat.com> - 0.2.0-1
Nikola Dipanov aad6864
- Moving to the upstream version 0.2.0
Nikola Dipanov aad6864
790d30c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-6
790d30c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
790d30c
8393f94
* Wed Jun 6 2012 Adam Young <ayoung@redhat.com> - 0.1.0-4
b0886e5
- Added Description
b0886e5
- Added Manpage
b0886e5
b0886e5
* Fri May 11 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.1.0-2
b0886e5
- spec cleanup
b0886e5
b0886e5
* Thu May 10 2012 Adam Young <ayoung@redhat.com> - 0.1.0-1
b0886e5
- Initial RPM release.
20214cf