python-atomicwrites/python-atomicwrites.spec

72 lines
1.8 KiB
RPMSpec
Raw Normal View History

2019-11-28 16:04:59 +08:00
%global _description\
This Python module provides atomic file writes on POSIX operating systems.\
It sports:\
* Race-free assertion that the target file doesn't yet exist\
* Windows support\
* Simple high-level API that wraps a very flexible class-based API\
* Consistent error handling across platforms.
Name: python-atomicwrites
2022-12-08 09:20:12 +08:00
Version: 1.4.1
2022-06-06 14:47:17 +08:00
Release: 1
2019-11-28 16:04:59 +08:00
Summary: Python Atomic file writes on POSIX
License: MIT
URL: https://github.com/untitaker/%{name}
2022-06-06 14:47:17 +08:00
Source0: https://github.com/untitaker/%{name}/archive/refs/tags/%{version}.tar.gz
2019-11-28 16:04:59 +08:00
BuildArch: noarch
2020-08-08 16:50:15 +08:00
BuildRequires: python3-devel python3-setuptools python3-sphinx python3-pytest
2019-11-28 16:04:59 +08:00
%description %_description
%package -n python3-atomicwrites
Summary: %summary
%description -n python3-atomicwrites %_description
%package -n python-atomicwrites-help
Summary: %summary
%description -n python-atomicwrites-help
2020-08-08 16:50:15 +08:00
This package conatins manual pages for python3-atomicwrites
2019-11-28 16:04:59 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
%build
%py3_build
export PYTHONPATH=`pwd`
cd docs
%make_build SPHINXBUILD=sphinx-build-3 man
cd ..
unset PYTHONPATH
%install
%py3_install
install -d "$RPM_BUILD_ROOT%{_mandir}/man1"
cp -r docs/_build/man/*.1 "$RPM_BUILD_ROOT%{_mandir}/man1"
%check
%{__python3} -m pytest -v
%files -n python3-atomicwrites
%doc README.rst LICENSE
%{python3_sitelib}/*
%files -n python-atomicwrites-help
%{_mandir}/man1/atomicwrites.1.*
%changelog
2022-12-08 09:20:12 +08:00
* Thu Dec 08 2022 wubijie <wubijie@kylinos.cn> - 1.4.1-1
- Update package to version 1.4.1
2022-06-06 14:47:17 +08:00
* Mon Jun 06 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 1.4.0-1
- Update to 1.4.0
2020-08-08 16:50:15 +08:00
* Sat Aug 08 2020 lingsheng <lingsheng@huawei.com> - 1.1.5-14
- Remove python2-atomicwrites subpackage
2019-11-28 16:04:59 +08:00
* Fri Nov 15 2019 sunguoshuai <sunguoshuai@huawei.com> - 1.1.5-13
- Package init