2e3cb4
%global pkgname websockify
2e3cb4
%global summary WSGI based adapter for the Websockets protocol
2e3cb4
Name:           python-%{pkgname}
2e3cb4
Version:        0.9.0
2e3cb4
Release:        4%{?dist}
2e3cb4
Summary:        %{summary}
2e3cb4
2e3cb4
License:        LGPLv3
2e3cb4
URL:            https://github.com/kanaka/websockify
2e3cb4
Source0:        https://github.com/kanaka/websockify/archive/v%{version}.tar.gz#/websockify-%{version}.tar.gz
2e3cb4
BuildArch:      noarch
2e3cb4
2e3cb4
%description
2e3cb4
Python WSGI based adapter for the Websockets protocol
2e3cb4
2e3cb4
%package -n python3-%{pkgname}
2e3cb4
Summary:        %{summary} - Python 3 version
2e3cb4
BuildRequires:  python3-devel
2e3cb4
BuildRequires:  python3-setuptools
2e3cb4
2e3cb4
Requires:       python3-setuptools
2e3cb4
2e3cb4
%{?python_provide:%python_provide python3-%{pkgname}}
2e3cb4
2e3cb4
%description -n python3-%{pkgname}
2e3cb4
Python WSGI based adapter for the Websockets protocol - Python 3 version
2e3cb4
2e3cb4
%package doc
2e3cb4
Summary:        %{summary} - documentation
2e3cb4
2e3cb4
%description doc
2e3cb4
Python WSGI based adapter for the Websockets protocol - documentation
2e3cb4
2e3cb4
%prep
2e3cb4
%autosetup -n %{pkgname}-%{version}
2e3cb4
2e3cb4
# TODO: Have the following handle multi line entries
2e3cb4
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
2e3cb4
2e3cb4
%build
2e3cb4
%py3_build
2e3cb4
2e3cb4
%install
2e3cb4
%py3_install
2e3cb4
2e3cb4
rm -Rf %{buildroot}/usr/share/websockify
2e3cb4
mkdir -p %{buildroot}%{_mandir}/man1/
2e3cb4
install -m 444 docs/websockify.1 %{buildroot}%{_mandir}/man1/
2e3cb4
2e3cb4
%files -n python3-%{pkgname}
2e3cb4
%license COPYING
2e3cb4
%{_mandir}/man1/websockify.1*
2e3cb4
%{python3_sitelib}/websockify/
2e3cb4
%{python3_sitelib}/websockify-%{version}-py%{python3_version}.egg-info
2e3cb4
%{_bindir}/websockify
2e3cb4
2e3cb4
%files doc
2e3cb4
%license COPYING
2e3cb4
%doc docs
2e3cb4
2e3cb4
%changelog
2e3cb4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2e3cb4
2e3cb4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2e3cb4
2e3cb4
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-2
2e3cb4
- Rebuilt for Python 3.9
2e3cb4
2e3cb4
* Thu Mar 26 2020 Yatin Karel <ykarel@redhat.com> - 0.9.0-1
2e3cb4
- Update to 0.9.0 (Resolves #1816608)
2e3cb4
2e3cb4
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-16
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2e3cb4
2e3cb4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-15
2e3cb4
- Rebuilt for Python 3.8.0rc1 (#1748018)
2e3cb4
2e3cb4
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-14
2e3cb4
- Rebuilt for Python 3.8
2e3cb4
2e3cb4
* Sun Aug 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-13
2e3cb4
- Subpackage python2-websockify has been removed
2e3cb4
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
2e3cb4
2e3cb4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-12
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2e3cb4
2e3cb4
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-11
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2e3cb4
2e3cb4
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-10
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2e3cb4
2e3cb4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-9
2e3cb4
- Rebuilt for Python 3.7
2e3cb4
2e3cb4
* Fri Feb 16 2018 2018 Lumír Balhar <lbalhar@redhat.com> - 0.8.0-8
2e3cb4
- Fix directory ownership
2e3cb4
2e3cb4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-7
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2e3cb4
2e3cb4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-6
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2e3cb4
2e3cb4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2e3cb4
2e3cb4
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-4
2e3cb4
- Rebuild for Python 3.6
2e3cb4
2e3cb4
* Mon Aug 29 2016 Jan Beran <jberan@redhat.com> - 0.8.0-3
2e3cb4
- Python 3 subpackage
2e3cb4
2e3cb4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
2e3cb4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2e3cb4
2e3cb4
* Fri Feb 19 2016 Solly Ross <sross@redhat.com> - 0.8.0-1
2e3cb4
- Update to release 0.8.0
2e3cb4
2e3cb4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2e3cb4
2e3cb4
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2e3cb4
2e3cb4
* Wed Apr 29 2015 Pádraig Brady <pbrady@redhat.com> - 0.6.0-2
2e3cb4
- Support big endian systems - rhbz#1216219
2e3cb4
2e3cb4
* Mon Mar 23 2015 Nikola Đipanov <ndipanov@redhat.com> - 0.6.0-1
2e3cb4
- Update to release 0.6.0
2e3cb4
2e3cb4
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2e3cb4
2e3cb4
* Tue Sep 10 2013 Nikola Đipanov <ndipanov@redhat.com> - 0.5.1-1
2e3cb4
- Update to release 0.5.1
2e3cb4
2e3cb4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2e3cb4
2e3cb4
* Thu Jun 20 2013 Pádraig Brady <P@draigBrady.com> - 0.4.1-1
2e3cb4
- Update to release 0.4.1
2e3cb4
2e3cb4
* Tue Mar 12 2013 Pádraig Brady <P@draigBrady.com> - 0.2.0-4
2e3cb4
- Add runtime dependency on setuptools
2e3cb4
2e3cb4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2e3cb4
2e3cb4
* Wed Oct 31 2012 Pádraig Brady <P@draigBrady.com> - 0.2.0-2
2e3cb4
- Remove hard dependency on numpy
2e3cb4
2e3cb4
* Mon Oct 22 2012 Nikola Đipanov <ndipanov@redhat.com> - 0.2.0-1
2e3cb4
- Moving to the upstream version 0.2.0
2e3cb4
2e3cb4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-6
2e3cb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e3cb4
2e3cb4
* Wed Jun 6 2012 Adam Young <ayoung@redhat.com> - 0.1.0-4
2e3cb4
- Added Description
2e3cb4
- Added Manpage
2e3cb4
2e3cb4
* Fri May 11 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.1.0-2
2e3cb4
- spec cleanup
2e3cb4
2e3cb4
* Thu May 10 2012 Adam Young <ayoung@redhat.com> - 0.1.0-1
2e3cb4
- Initial RPM release.
2e3cb4