diff --git a/python36-falcon3.spec b/python36-falcon3.spec new file mode 100644 index 0000000..88073d2 --- /dev/null +++ b/python36-falcon3.spec @@ -0,0 +1,47 @@ +# +# spec file for package python-falcon 3.0.1 on RHEL7 +# Copyright (c) 2021 Ecole Polytechnique +# Federale de Lausanne - Switzerland +# + +%define python_sitelib /usr/lib64/python3.6/site-packages +%define _unpackaged_files_terminate_build 0 + +Name: python-falcon +Version: 3.0.1 +Release: 0 +Summary: An unladen web framework for building APIs and app backends. +License: Apache-2.0 +URL: https://falconframework.org +Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python36-devel + +%description +`Falcon `__ is a reliable, +high-performance Python web framework for building +large-scale app backends and microservices. It encourages the REST +architectural style, and tries to do as little as possible while +remaining highly effective. + +Falcon apps work with any `WSGI `_ +or `ASGI `_ server, and run like a +champ under CPython 3.5+ and PyPy 3.5+ (3.6+ required for ASGI). + +%prep +%setup -q -n falcon-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* +/usr/bin/falcon-inspect-app +/usr/bin/falcon-print-routes