Пакет python-module-httpbin: Specfile

%define oname httpbin

Name: python-module-%oname
Version: 0.7.0
Release: alt1
Summary: HTTP Request and Response Service
License: MIT
Group: Development/Python
Url: https://pypi.python.org/pypi/httpbin/
# https://github.com/postmanlabs/httpbin
BuildArch: noarch

Source: %oname-%version.tar

BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-module-pytest
BuildPreReq: python3-module-flask-common
BuildPreReq: python3-module-flask
BuildPreReq: python3-module-six
BuildPreReq: python3-module-werkzeug

%description
Testing an HTTP Library can become difficult sometimes. PostBin.org is
fantastic for testing POST requests, but not much else. This exists to
cover all kinds of HTTP scenarios. Additional endpoints are being
considered.

All endpoint responses are JSON-encoded.

%package -n python3-module-%oname
Summary: HTTP Request and Response Service
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
Testing an HTTP Library can become difficult sometimes. PostBin.org is
fantastic for testing POST requests, but not much else. This exists to
cover all kinds of HTTP scenarios. Additional endpoints are being
considered.

All endpoint responses are JSON-encoded.

%prep
%setup -n %oname-%version

%build
%python3_build_debug

%install
%python3_install

%files -n python3-module-%oname
%doc AUTHORS *.md LICENSE
%python3_sitelibdir/*


%changelog
* Tue Oct 01 2019 Anton Farygin <rider@altlinux.ru> 0.7.0-alt1
- 0.7.0
- built without python-2.7 support

* Fri Mar 30 2018 Andrey Bychkov <mrdrew@altlinux.org> 0.6.2-alt1.1
- Fixed requires

* Wed Mar 28 2018 Andrey Bychkov <mrdrew@altlinux.org> 0.6.2-alt1
- Updated version to 0.6.2

* Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.2.0-alt1.git20140826.1.1
- (NMU) rebuild with rpm-build-python3-0.1.9
  (for common python3/site-packages/ and auto python3.3-ABI dep when needed)

* Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.2.0-alt1.git20140826.1
- NMU: Use buildreq for BR.

* Mon Nov 10 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.0-alt1.git20140826
- Initial build for Sisyphus