pyflakes/pyflakes.spec

109 lines
2.9 KiB
RPMSpec
Raw Normal View History

2020-11-24 11:00:44 +08:00
%global _empty_manifest_terminate_build 0
2021-07-19 16:42:01 +08:00
%global common_desc \
Pyflakes A simple program which checks Python source files for errors.Pyflakes
Name: python-pyflakes
Version: 3.2.0
2023-08-03 13:07:03 +08:00
Release: 1
2021-07-19 16:42:01 +08:00
Summary: passive checker of Python programs
License: MIT
URL: https://github.com/PyCQA/pyflakes
Source0: https://files.pythonhosted.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
2021-07-19 16:42:01 +08:00
BuildArch: noarch
2019-11-26 10:46:14 +08:00
%description
2021-07-19 16:42:01 +08:00
%{common_desc}
2019-11-26 10:46:14 +08:00
2020-11-24 11:00:44 +08:00
%package -n python3-pyflakes
2021-07-19 16:42:01 +08:00
Summary: passive checker of Python programs
Provides: python-pyflakes
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
2020-11-24 11:00:44 +08:00
%description -n python3-pyflakes
2021-07-19 16:42:01 +08:00
%{common_desc}
2020-11-24 11:00:44 +08:00
2019-11-26 10:46:14 +08:00
%package help
2021-07-19 16:42:01 +08:00
Summary: passive checker of Python programs
Provides: python3-pyflakes-doc
2019-11-26 10:46:14 +08:00
%description help
2021-07-19 16:42:01 +08:00
%{common_desc}
2019-11-26 10:46:14 +08:00
%prep
2023-08-03 13:07:03 +08:00
%autosetup -n pyflakes-%{version} -p1
2019-11-26 10:46:14 +08:00
%build
%py3_build
2021-07-19 16:42:01 +08:00
2019-11-26 10:46:14 +08:00
%install
%py3_install
2020-11-24 11:00:44 +08:00
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
2021-07-19 16:42:01 +08:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2020-11-24 11:00:44 +08:00
fi
if [ -d usr/lib64 ]; then
2021-07-19 16:42:01 +08:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2020-11-24 11:00:44 +08:00
fi
if [ -d usr/bin ]; then
2021-07-19 16:42:01 +08:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2020-11-24 11:00:44 +08:00
fi
if [ -d usr/sbin ]; then
2021-07-19 16:42:01 +08:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2020-11-24 11:00:44 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2021-07-19 16:42:01 +08:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2020-11-24 11:00:44 +08:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2021-07-19 16:42:01 +08:00
%check
%{__python3} setup.py test
2020-11-24 11:00:44 +08:00
%files -n python3-pyflakes -f filelist.lst
%dir %{python3_sitelib}/*
2021-07-19 16:42:01 +08:00
2020-11-24 11:00:44 +08:00
%files help -f doclist.lst
%{_docdir}/*
2019-11-26 10:46:14 +08:00
%changelog
* Thu Feb 22 2024 xu_ping <707078654@qq.com> - 3.2.0-1
- Upgrade package to version 3.2.0
2023-08-03 13:07:03 +08:00
* Thu Aug 3 2023 Dongxing Wang <dxwangk@isoftstone.com> - 3.1.0-1
- Upgrade package to version 3.1.0
* Sat Jul 22 2023 xu_ping <707078654@qq.com> - 3.0.1-2
- fix test failure due to python3.11
2023-04-14 17:01:55 +08:00
* Fri Apr 14 2023 wulei <wu_lei@hoperun.com> - 3.0.1-1
- Upgrade package to version 3.0.1
* Wed Mar 30 2022 xu_ping <xuping33@huawei.com> - 2.3.1-2
- Fix syntax error offsets for python 3.10
2021-07-19 16:42:01 +08:00
* Mon Jul 19 2021 OpenStack_SIG <openstack@openeuler.org> - 2.3.1-1
- update to 2.3.1
2020-11-24 11:00:44 +08:00
* Mon Nov 24 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.2.0-1
- update to 2.2.0
2020-11-02 09:53:13 +08:00
* Wed Oct 21 2020 wutao <wutao61@huawei.com> - 2.1.0-2
- delete python2 modules
2020-06-24 18:54:39 +08:00
* Tue Jun 23 2020 yanan li <liyanan032@huawei.com> - 2.1.0-1
- Package update
2019-11-26 10:46:14 +08:00
* Fri Nov 15 2019 zhujunhao <zhujunhao5@huawei.com> - 2.0.0-8
- package init