Remove python2-atomicwrites subpackage

This commit is contained in:
lingsheng 2020-08-08 16:50:15 +08:00
parent 0ca0865773
commit f91b6da8d2

View File

@ -8,24 +8,17 @@ It sports:\
Name: python-atomicwrites Name: python-atomicwrites
Version: 1.1.5 Version: 1.1.5
Release: 13 Release: 14
Summary: Python Atomic file writes on POSIX Summary: Python Atomic file writes on POSIX
License: MIT License: MIT
URL: https://github.com/untitaker/%{name} URL: https://github.com/untitaker/%{name}
Source0: https://github.com/untitaker/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/untitaker/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools python3-sphinx python3-pytest
BuildRequires: python2-sphinx python3-sphinx python2-pytest python3-pytest
%description %_description %description %_description
%package -n python2-atomicwrites
Summary: %summary
%{?python_provide:%python_provide python2-atomicwrites}
%description -n python2-atomicwrites %_description
%package -n python3-atomicwrites %package -n python3-atomicwrites
Summary: %summary Summary: %summary
@ -35,14 +28,12 @@ Summary: %summary
Summary: %summary Summary: %summary
%description -n python-atomicwrites-help %description -n python-atomicwrites-help
This package conatins manual pages for python2-atomicwrites and python3-atomicwrites This package conatins manual pages for python3-atomicwrites
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
%{__python2} setup.py --quiet build
%py3_build %py3_build
export PYTHONPATH=`pwd` export PYTHONPATH=`pwd`
cd docs cd docs
@ -51,20 +42,14 @@ cd ..
unset PYTHONPATH unset PYTHONPATH
%install %install
%{__python2} setup.py --quiet install -O1 --skip-build --root $RPM_BUILD_ROOT
%py3_install %py3_install
install -d "$RPM_BUILD_ROOT%{_mandir}/man1" install -d "$RPM_BUILD_ROOT%{_mandir}/man1"
cp -r docs/_build/man/*.1 "$RPM_BUILD_ROOT%{_mandir}/man1" cp -r docs/_build/man/*.1 "$RPM_BUILD_ROOT%{_mandir}/man1"
%check %check
%{__python2} -m pytest -v
%{__python3} -m pytest -v %{__python3} -m pytest -v
%files -n python2-atomicwrites
%doc LICENSE README.rst
%{python2_sitelib}/*
%files -n python3-atomicwrites %files -n python3-atomicwrites
%doc README.rst LICENSE %doc README.rst LICENSE
%{python3_sitelib}/* %{python3_sitelib}/*
@ -73,5 +58,8 @@ cp -r docs/_build/man/*.1 "$RPM_BUILD_ROOT%{_mandir}/man1"
%{_mandir}/man1/atomicwrites.1.* %{_mandir}/man1/atomicwrites.1.*
%changelog %changelog
* Sat Aug 08 2020 lingsheng <lingsheng@huawei.com> - 1.1.5-14
- Remove python2-atomicwrites subpackage
* Fri Nov 15 2019 sunguoshuai <sunguoshuai@huawei.com> - 1.1.5-13 * Fri Nov 15 2019 sunguoshuai <sunguoshuai@huawei.com> - 1.1.5-13
- Package init - Package init