a95d61f2 |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Summary: Python Atomic file writes
Name: python-atomicwrites |
7404bf19 |
Version: 1.2.1
Release: 1%{?dist} |
a95d61f2 |
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
Url: https://github.com/untitaker/python-atomicwrites
Source0: https://pypi.python.org/packages/a1/e1/2d9bc76838e6e6667fde5814aa25d7feb93d6fa471bf6816daac2596e8b2/atomicwrites-%{version}.tar.gz |
7404bf19 |
%define sha1 atomicwrites=fec341b1028177784ac97436c479a397ffeb20d7 |
a95d61f2 |
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: python-xml |
0858cb62 |
%if %{with_check} |
a95d61f2 |
BuildRequires: python-pytest |
0858cb62 |
%endif |
a95d61f2 |
Requires: python2
BuildArch: noarch
%description
Python Atomic file writes
%package -n python3-atomicwrites
Summary: Python Atomic file writes
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-xml |
0858cb62 |
%if %{with_check} |
a95d61f2 |
BuildRequires: python3-pytest |
0858cb62 |
%endif |
a95d61f2 |
Requires: python3
%description -n python3-atomicwrites
Python3 version of atomicwrites.
%prep
%setup -q -n atomicwrites-%{version}
rm -rf ../p3dir
cp -a . ../p3dir
%build
python2 setup.py build
pushd ../p3dir
python3 setup.py build
popd
%install
pushd ../p3dir
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
popd
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check |
0858cb62 |
PYTHONPATH=./ py.test2 |
a95d61f2 |
pushd ../p3dir |
0858cb62 |
PYTHONPATH=./ py.test3 |
a95d61f2 |
popd
%files
%defattr(-,root,root)
%license LICENSE
%doc README.rst
%{python2_sitelib}/*
%files -n python3-atomicwrites
%defattr(-,root,root)
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%changelog |
7404bf19 |
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.2.1-1
- Update to version 1.2.1 |
0858cb62 |
* Wed Jul 26 2017 Divya Thaluru <dthaluru@vmware.com> 1.1.5-2
- Fixed rpm check errors |
a95d61f2 |
* Fri Jul 07 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.1.5-1
- Initial packaging for Photon |