import sources
This commit is contained in:
commit
cf064f0f86
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/python-atomicwrites-1.3.0.tar.gz
|
1
.python-atomicwrites.metadata
Normal file
1
.python-atomicwrites.metadata
Normal file
@ -0,0 +1 @@
|
||||
a79788bc16877d4221b9b76fc339650c653f55e6 python-atomicwrites-1.3.0.tar.gz
|
269
python-atomicwrites.spec
Normal file
269
python-atomicwrites.spec
Normal file
@ -0,0 +1,269 @@
|
||||
%bcond_without tests
|
||||
%bcond_with docs
|
||||
%bcond_with python2
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_with python3
|
||||
%endif
|
||||
|
||||
Name: python-atomicwrites
|
||||
Version: 1.3.0
|
||||
Release: 8%{?git_tag}%{?dist}
|
||||
Summary: Python Atomic file writes on POSIX
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/untitaker/%{name}
|
||||
Source0: https://github.com/untitaker/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
||||
# x86_64 compose of CRB, but we don't want to ship it at all.
|
||||
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
||||
ExcludeArch: i686
|
||||
|
||||
%global short_name atomicwrites
|
||||
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
%if %{with docs} && %{without python3}
|
||||
BuildRequires: python2-sphinx
|
||||
%endif
|
||||
%if %{with tests}
|
||||
BuildRequires: python2-pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
||||
%if %{with docs}
|
||||
BuildRequires: python%{python3_pkgversion}-sphinx
|
||||
%endif
|
||||
%if %{with tests}
|
||||
BuildRequires: python%{python3_pkgversion}-pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%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
|
||||
|
||||
%description %_description
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-%{short_name}
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python2-%{short_name}}
|
||||
|
||||
%description -n python2-%{short_name} %_description
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%package -n python%{python3_pkgversion}-%{short_name}
|
||||
Summary: Python Atomic file writes on POSIX
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{short_name}
|
||||
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
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
%{__python2} setup.py --quiet build
|
||||
|
||||
%if %{with docs} && %{without python3}
|
||||
export PYTHONPATH=`pwd`
|
||||
cd docs
|
||||
make %{?_smp_mflags} man
|
||||
cd ..
|
||||
unset PYTHONPATH
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%py3_build
|
||||
|
||||
%if %{with docs}
|
||||
export PYTHONPATH=`pwd`
|
||||
cd docs
|
||||
make %{?_smp_mflags} SPHINXBUILD=sphinx-build-3 man
|
||||
cd ..
|
||||
unset PYTHONPATH
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%if %{with python2}
|
||||
%{__python2} setup.py --quiet install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%py3_install
|
||||
%endif
|
||||
|
||||
%if %{with docs}
|
||||
install -d "$RPM_BUILD_ROOT%{_mandir}/man1"
|
||||
cp -r docs/_build/man/*.1 "$RPM_BUILD_ROOT%{_mandir}/man1"
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%if %{with python2}
|
||||
%{__python2} -m pytest -v
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%{__python3} -m pytest -v
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-%{short_name}
|
||||
%doc LICENSE README.rst
|
||||
%{python2_sitelib}/*
|
||||
%if %{with docs} && %{without python3}
|
||||
%{_mandir}/man1/atomicwrites.1.*
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python%{python3_pkgversion}-%{short_name}
|
||||
%doc README.rst LICENSE
|
||||
%{python3_sitelib}/*
|
||||
%if %{with docs}
|
||||
%{_mandir}/man1/atomicwrites.1.*
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.3.0-8
|
||||
- Exclude unsupported i686 arch
|
||||
|
||||
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.3.0-7
|
||||
- Adjusted for Python 3.8 module in RHEL 8
|
||||
- Resolves: rhbz#1772816
|
||||
|
||||
* Mon Nov 18 2019 Patrik Kopkan <pkopkan@redhat.com> - 1.3.0-6
|
||||
- add bcond python2
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-5
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-4
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Thu Aug 15 2019 Richard Shaw <hobbes1069@gmail.com> - 1.3.0-3
|
||||
- Bootstrap build for Python 3.8 without optional BRs.
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 08 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.3.0-1
|
||||
- Update to 1.3.0
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Jul 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-12
|
||||
- Update Python macros to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-10
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-9
|
||||
- Bootstrap for Python 3.7
|
||||
|
||||
* Mon May 07 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-8
|
||||
- Remove unused tox dependency, use pytest
|
||||
- Enable tests, they work without network
|
||||
- Use python2 explicitly instead of python
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.5-6
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.5-5
|
||||
- Python 2 binary package renamed to python2-atomicwrites
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-2
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Sun Sep 04 2016 Michele Baldessari <michele@acksyn.org> - 1.1.5-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Jul 27 2016 Michele Baldessari <michele@acksyn.org> - 1.1.0-1
|
||||
- New upstream release
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Sat Mar 26 2016 Michele Baldessari <michele@acksyn.org> - 1.0.0-1
|
||||
- New upstream release
|
||||
|
||||
* Mon Feb 22 2016 Michele Baldessari <michele@acksyn.org> - 0.1.9-1
|
||||
- New upstream release (BZ 1308379)
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||
|
||||
* Sun Sep 13 2015 Michele Baldessari <michele@acksyn.org> - 0.1.8-1
|
||||
- New upstream (BZ 1262584)
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Apr 08 2015 Michele Baldessari <michele@acksyn.org> - 0.1.5-1
|
||||
- New upstream (BZ 1209294)
|
||||
|
||||
* Mon Mar 02 2015 Michele Baldessari <michele@redhat.com> - 0.1.4-5
|
||||
- Disable tests as they require network
|
||||
|
||||
* Sun Mar 01 2015 Michele Baldessari <michele@redhat.com> - 0.1.4-4
|
||||
- Move it to python 3
|
||||
|
||||
* Sat Feb 28 2015 Michele Baldessari <michele@redhat.com> - 0.1.4-3
|
||||
- Fix check section and add python-tox as BR
|
||||
|
||||
* Sat Feb 28 2015 Michele Baldessari <michele@redhat.com> - 0.1.4-2
|
||||
- Improve description
|
||||
|
||||
* Mon Feb 23 2015 Michele Baldessari <michele@redhat.com> - 0.1.4-1
|
||||
- New upstream
|
||||
|
||||
* Wed Feb 04 2015 Michele Baldessari <michele@redhat.com> - 0.1.1-3
|
||||
- Add python-sphinx BR
|
||||
|
||||
* Wed Oct 01 2014 Michele Baldessari <michele@redhat.com> - 0.1.1-1
|
||||
- Initial packaging
|
Loading…
Reference in New Issue
Block a user