python-cached_property/python-cached_property.spec

67 lines
2.1 KiB
RPMSpec
Raw Normal View History

2020-02-15 19:22:11 +08:00
Name: python-cached_property
2022-06-14 16:51:52 +08:00
Version: 1.5.2
Release: 1
2020-02-15 19:22:11 +08:00
Summary: A cached-property for decorating methods in Python classes
License: BSD
URL: https://github.com/pydanny/cached-property
Source0: https://github.com/pydanny/cached-property/archive/%{version}/cached-property-%{version}.tar.gz
2021-08-05 20:46:37 +08:00
Patch0001: cached-property-1.5.1-test-failure.patch
2020-02-15 19:22:11 +08:00
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-dateutil
BuildRequires: python%{python3_pkgversion}-freezegun python%{python3_pkgversion}-pytest
%description
cached_property allows properties in Python classes to be cached until the cache
is invalidated or expired.
%package -n python%{python3_pkgversion}-cached_property
Summary: A cached-property for decorating methods in Python classes.
%{?python_provide:%python_provide python%{python3_pkgversion}-cached_property}
Provides: python%{python3_pkgversion}-cached-property = %{version}-%{release}
Obsoletes: python%{python3_pkgversion}-cached-property < 1.3.0-2
%description -n python%{python3_pkgversion}-cached_property
cached_property allows properties in Python classes to be cached until the cache
is invalidated or expired.
%package_help
%prep
%autosetup -n cached-property-%{version} -p1
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%check
PYTHONPATH=./ py.test-3
%files -n python%{python3_pkgversion}-cached_property
%defattr(-,root,root)
%doc AUTHORS.rst
%license LICENSE
%{python3_sitelib}/cached_property*
%{python3_sitelib}/__pycache__/cached_property*
%files help
%defattr(-,root,root)
%doc HISTORY.rst CONTRIBUTING.rst README.rst
%changelog
2022-06-14 16:51:52 +08:00
* Tue Jun 14 2022 houyingchao <houyingchao@h-partners.com> - 1.5.2-1
- Upgrade to 1.5.2
2021-08-05 20:46:37 +08:00
* Thu Aug 5 2021 Shenmei Tu <tushenmei@huawei.com> - 1.5.1-3
- cached-property-1.5.1-test-failure.patch
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.5.1-2
- Remove subpackage python2-cached_property
2020-02-15 19:22:11 +08:00
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5.1-1
- Package init