python-attrs/python-attrs.spec

103 lines
2.6 KiB
RPMSpec
Raw Normal View History

2019-12-14 21:12:35 +08:00
%global _description \
attrs is an MIT-licensed Python package with class decorators that \
ease the chores of implementing the most common attribute-related \
object protocols. \
2021-03-30 10:34:40 +08:00
%global modname attrs
2023-02-16 14:20:31 +08:00
%bcond_without tests
2019-12-14 21:12:35 +08:00
Name: python-attrs
Summary: Python attributes without boilerplate
2022-11-07 18:31:04 +08:00
Version: 22.1.0
2023-02-16 14:20:31 +08:00
Release: 6
2019-12-14 21:12:35 +08:00
License: MIT
URL: http://www.attrs.org/
Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz
Patch0: 0001-Update-.gitignore.patch
Patch1: 0001-Fix-typo.patch
Patch2: 0001-Fix-type-docstring.patch
Patch3: 0001-Fix-minor-stub-issues-1072.patch
2020-10-30 15:07:09 +08:00
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-devel
2019-12-14 21:12:35 +08:00
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-six python%{python3_pkgversion}-zope-interface
BuildRequires: python%{python3_pkgversion}-hypothesis python%{python3_pkgversion}-pytest
%endif
BuildArch: noarch
%description
%{_description}
%package -n python%{python3_pkgversion}-attrs
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
%description -n python%{python3_pkgversion}-attrs
%{_description}
%package_help
%prep
%autosetup -p1 -n attrs-%{version}
%build
%py3_build
%install
%py3_install
%if %{with tests}
%check
PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v
%endif
%files -n python%{python3_pkgversion}-attrs
%license LICENSE
%{python3_sitelib}/*
%files help
%doc AUTHORS.rst README.rst
%changelog
2023-02-16 14:20:31 +08:00
* Thu Feb 16 2023 tanyulong <tanyulong@kylinos.cn> - 22.1.0-6
- enable check
* Fri Jan 13 2023 caofei <caofei@xfusion.com> - 22.1.0-5
- Fix minor stub issues
* Fri Jan 13 2023 caofei <caofei@xfusion.com> - 22.1.0-4
- Fix type docstring
* Mon Jan 9 2023 caofei <caofei@xfusion.com> - 22.1.0-3
- Fix typo
* Sat Jan 7 2023 caofei <caofei@xfusion.com> - - 22.1.0-2
- Update .gitignore
2022-11-07 18:31:04 +08:00
* Sat Oct 29 2022 zhuofeng <zhuofeng2@huawei.com> - 22.1.0-1
- update to 22.1.0
2022-07-18 15:43:38 +08:00
* Mon Jul 18 2022 OpenStack_SIG <openstack@openeuler.org> - 21.4.0-1
- Upgrade package to version 21.4.0
2022-05-24 10:39:08 +08:00
* Tue May 24 2022 renhongxun <renhongxun@h-partners> - 20.3.0-2
- fix changelog error
* Mon Jul 26 2021 liusheng <liusheng2048@gmail.com> - 20.3.0-1
- Upgrade to version 20.3.0
2021-03-30 10:34:40 +08:00
* Tue Mar 30 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 19.3.0-3
- python3-attrs provides python-attrs
2022-05-24 10:39:08 +08:00
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 19.3.0-2
2020-10-30 15:07:09 +08:00
- Remove subpackage python2-attrs
2022-05-24 10:39:08 +08:00
* Sat Aug 8 2020 tianwei <tianwei12@huawei.com> - 19.3.0-1
2020-08-08 16:20:28 +08:00
- Package update to 19.3.0
2019-12-14 21:12:35 +08:00
* Thu Dec 5 2019 caomeng<caomeng5@huawei.com> - 17.4.0-9
- Package init