diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a1a59eb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rangehttpserver-1.2.0.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/python-rangehttpserver.spec b/python-rangehttpserver.spec new file mode 100644 index 0000000..96c6901 --- /dev/null +++ b/python-rangehttpserver.spec @@ -0,0 +1,85 @@ +# Note: I am completely uninterested in Python 2 at this point. If you want +# this package to be built for Python 2 in addition to Python 3, I would be +# more than happy to give you this package. + +%global modname RangeHTTPServer +%global srcname rangehttpserver +%global sum SimpleHTTPServer with support for Range requests + +Name: python-%{srcname} +Summary: %{sum} +URL: https://pypi.python.org/pypi/%{srcname} +License: ASL 2.0 + +Version: 1.2.0 +Release: 8%{?dist} +Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description +SimpleHTTPServer with support for Range requests. + + +%package -n python3-%{srcname} +Summary: %{sum} + +BuildRequires: python3-devel +# For the unit tests +BuildRequires: python3-pytest +BuildRequires: python3-requests + +Requires: python3-requests + +%description -n python3-%{srcname} +%{description} + + +%prep +%setup -q -n %{srcname}-%{version} + + +%build +%py3_build + + +%install +%py3_install + + +%check +# Tests aren't included in the dist... +#py.test-3 + + +%files -n python3-%{srcname} +# FIXME: Add the licence: https://github.com/danvk/RangeHTTPServer/pull/15 +%{python3_sitelib}/%{modname} +%{python3_sitelib}/%{srcname}*.egg-info + + +%changelog +* Sat Jul 14 2018 Fedora Release Engineering - 1.2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.2.0-7 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.2.0-3 +- Rebuild for Python 3.6 + +* Sat Oct 15 2016 Mathieu Bridon - 1.2.0-2 +- Fix the licence tag. +- Add two comments as requested during the review. + +* Sat Oct 15 2016 Mathieu Bridon - 1.2.0-1 +- Initial package for Fedora. diff --git a/sources b/sources new file mode 100644 index 0000000..3e84386 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +fce1a6ca85bb58406ba29a2ce4abf58a rangehttpserver-1.2.0.tar.gz