647389c
# what it's called on pypi
647389c
%global srcname flask-restx
647389c
# what it's imported as
647389c
%global libname flask_restx
647389c
647389c
Name:           python-%{srcname}
647389c
Version:        0.2.0
647389c
Release:        1%{?dist}
647389c
Summary:        Framework for fast, easy and documented API development with Flask
647389c
License:        BSD
647389c
URL:            https://github.com/python-restx/flask-restx
647389c
Source0:        %pypi_source
647389c
BuildArch:      noarch
647389c
647389c
%global _description %{expand:
647389c
Flask-RESTX is an extension for Flask that adds support for quickly
647389c
building REST APIs. It encourages best practices with minimal setup.
647389c
If you are familiar with Flask, Flask-RESTX should be easy to pick up.
647389c
It provides a coherent collection of decorators and tools to describe your API
647389c
and expose its documentation properly using Swagger.}
647389c
647389c
%description %_description
647389c
647389c
647389c
%package -n     python3-%{srcname}
647389c
Summary:        %{summary}
647389c
BuildRequires:  python3-devel
647389c
BuildRequires:  python3-setuptools
647389c
Provides:       python3-flask-restplus = %{version}-%{release}
647389c
# Using < or <= would obsolete ourselves
647389c
Obsoletes:      python3-flask-restplus = 0.13.0
647389c
%{?python_provide:%python_provide python3-%{srcname}}
647389c
647389c
%description -n python3-%{srcname} %_description
647389c
647389c
647389c
%prep
647389c
%autosetup -n %{srcname}-%{version}
647389c
rm -rf %{libname}.egg-info
647389c
rm -f %{libname}/static/files/.npmignore
647389c
647389c
%build
647389c
%py3_build
647389c
647389c
%install
647389c
%py3_install
647389c
647389c
# Upstream requires pinned dependencies versions
647389c
#%%check
647389c
#python3 setup.py test
647389c
647389c
%files -n python3-%{srcname}
647389c
%license LICENSE
647389c
%doc README.rst
647389c
%{python3_sitelib}/%{libname}
647389c
%{python3_sitelib}/%{libname}-*.egg-info/
647389c
647389c
647389c
%changelog
647389c
* Thu Mar 26 2020 Jiri Popelka <jpopelka@redhat.com> - 0.2.0-1
647389c
- Rename python-flask-restplus to python-flask-restx (#1817535)
647389c
647389c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-3
647389c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
647389c
647389c
* Fri Nov 15 2019 Jiri Popelka <jpopelka@redhat.com> - 0.13.0-2
647389c
- add CHANGELOG.rst
647389c
647389c
* Tue Oct 22 2019 Jiri Popelka <jpopelka@redhat.com> - 0.13.0-1
647389c
- init