From a9512cb4472e990eff47a62a220a6540dfd5cfd0 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Oct 17 2016 13:06:48 +0000 Subject: Merge branch 'pre-review' --- diff --git a/.gitignore b/.gitignore index e69de29..a1a59eb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rangehttpserver-1.2.0.tar.gz diff --git a/python-rangehttpserver.spec b/python-rangehttpserver.spec new file mode 100644 index 0000000..ec17f93 --- /dev/null +++ b/python-rangehttpserver.spec @@ -0,0 +1,67 @@ +# 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: 2%{?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 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 index e69de29..3e84386 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fce1a6ca85bb58406ba29a2ce4abf58a rangehttpserver-1.2.0.tar.gz