Add package for OpenStack Wallaby support

This commit is contained in:
sean-lau 2021-07-13 17:40:29 +08:00
parent b2b4fc76c7
commit 7e56a8b68f
2 changed files with 97 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,97 @@
%global _empty_manifest_terminate_build 0
Name: python-flake8-import-order
Version: 0.18.1
Release: 1
Summary: Flake8 and pylama plugin that checks the ordering of import statements.
License: LGPLv3 and MIT and GPLv3
URL: https://github.com/PyCQA/flake8-import-order
Source0: https://files.pythonhosted.org/packages/81/47/5f2cea0164e77dd40726d83b4c865c2a701f60b73cb6af7b539cd42aafb4/flake8-import-order-0.18.1.tar.gz
BuildArch: noarch
%description
A flake8 and Pylama plugin that checks the ordering of your imports. It does
not check anything else about the imports. Merely that they are grouped and ordered correctly.
%package -n python3-flake8-import-order
Summary: Flake8 and pylama plugin that checks the ordering of import statements.
Provides: python-flake8-import-order
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-pycodestyle
BuildRequires: python3-enum34
BuildRequires: python3-pylama
BuildRequires: python3-flake8
BuildRequires: python3-pycodestyle
BuildRequires: python3-pyflakes
BuildRequires: python3-pytest
# General requires
Requires: python3-flake8
Requires: python3-pylama
Requires: python3-pycodestyle
Requires: python3-setuptools
Requires: python3-enum34
Requires: python3-pycodestyle
Requires: python3-pyflakes
%description -n python3-flake8-import-order
A flake8 and Pylama plugin that checks the ordering of your imports. It does
not check anything else about the imports. Merely that they are grouped and ordered correctly.
%package help
Summary: Flake8 and pylama plugin that checks the ordering of import statements.
Provides: python3-flake8-import-order-doc
%description help
A flake8 and Pylama plugin that checks the ordering of your imports. It does
not check anything else about the imports. Merely that they are grouped and ordered correctly.
%prep
%autosetup -n flake8-import-order-0.18.1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
%files -n python3-flake8-import-order -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jul 13 2021 OpenStack_SIG <openstack@openeuler.org> - 0.18.1-1
- Package Spec generate