From 647389cced8adf1a1c42a30814f6084e55b82bc9 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Mar 30 2020 14:51:07 +0000 Subject: Initial import (#1817535). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4f17e91 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/flask-restx-0.2.0.tar.gz diff --git a/python-flask-restx.spec b/python-flask-restx.spec new file mode 100644 index 0000000..e634020 --- /dev/null +++ b/python-flask-restx.spec @@ -0,0 +1,70 @@ +# what it's called on pypi +%global srcname flask-restx +# what it's imported as +%global libname flask_restx + +Name: python-%{srcname} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Framework for fast, easy and documented API development with Flask +License: BSD +URL: https://github.com/python-restx/flask-restx +Source0: %pypi_source +BuildArch: noarch + +%global _description %{expand: +Flask-RESTX is an extension for Flask that adds support for quickly +building REST APIs. It encourages best practices with minimal setup. +If you are familiar with Flask, Flask-RESTX should be easy to pick up. +It provides a coherent collection of decorators and tools to describe your API +and expose its documentation properly using Swagger.} + +%description %_description + + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Provides: python3-flask-restplus = %{version}-%{release} +# Using < or <= would obsolete ourselves +Obsoletes: python3-flask-restplus = 0.13.0 +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{libname}.egg-info +rm -f %{libname}/static/files/.npmignore + +%build +%py3_build + +%install +%py3_install + +# Upstream requires pinned dependencies versions +#%%check +#python3 setup.py test + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{libname} +%{python3_sitelib}/%{libname}-*.egg-info/ + + +%changelog +* Thu Mar 26 2020 Jiri Popelka - 0.2.0-1 +- Rename python-flask-restplus to python-flask-restx (#1817535) + +* Thu Jan 30 2020 Fedora Release Engineering - 0.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Nov 15 2019 Jiri Popelka - 0.13.0-2 +- add CHANGELOG.rst + +* Tue Oct 22 2019 Jiri Popelka - 0.13.0-1 +- init diff --git a/sources b/sources new file mode 100644 index 0000000..0543f4d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (flask-restx-0.2.0.tar.gz) = baddd920437aced447fe388f127d2791e808f0103682507b48751d15d2879cb6a4033f0332d03255d085b3db0a18307e157a4fe90e7dc23f2deedfc5785f4f48