Jeroen van Meeuwen (Kolab Systems) 8f8e16
%if 0%{?fedora} || 0%{?rhel} >= 8
Luke Macken e1fc7a
%global with_python3 1
a97544
%endif
ba408a
ba408a
Name:           python-transaction
132ec0
Version:        2.4.0
afa8ff
Release:        4%{?dist}
ba408a
Summary:        Transaction management for Python
ba408a
1ec73a
License:        ZPLv2.1
1c35f8
URL:            https://pypi.io/project/transaction
132ec0
Source0:        %pypi_source transaction
Luke Macken e1fc7a
ba408a
BuildArch:      noarch
ba408a
Luke Macken e1fc7a
BuildRequires:  python2-devel
d3c693
BuildRequires:  python2-zope-interface
d3c693
BuildRequires:  python2-nose
d3c693
BuildRequires:  python2-setuptools
d3c693
BuildRequires:  python2-mock
Luke Macken e1fc7a
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
BuildRequires:  python3-devel
Luke Macken e1fc7a
BuildRequires:  python3-setuptools
Luke Macken e1fc7a
BuildRequires:  python3-nose
Luke Macken e1fc7a
BuildRequires:  python3-zope-interface
d971de
BuildRequires:  python3-mock
Luke Macken e1fc7a
%endif
Luke Macken e1fc7a
Luke Macken e1fc7a
be40db
%global _description\
be40db
This package contains a generic transaction implementation for Python. It is\
ba408a
mainly used by the ZODB, though.
ba408a
be40db
%description %_description
be40db
be40db
%package -n python2-transaction
be40db
Summary: %summary
d3c693
Requires:       python2-zope-interface
be40db
%{?python_provide:%python_provide python2-transaction}
be40db
be40db
%description -n python2-transaction %_description
be40db
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
%package -n python3-transaction
Luke Macken e1fc7a
Summary:        Transaction management for Python 3
Luke Macken e1fc7a
b58640
Requires:       python3-zope-interface
b58640
Luke Macken e1fc7a
%description -n python3-transaction
Luke Macken e1fc7a
This package contains a generic transaction implementation for Python. It is
Luke Macken e1fc7a
mainly used by the ZODB, though.
Luke Macken e1fc7a
%endif
Luke Macken e1fc7a
ba408a
ba408a
%prep
a97544
%setup -q -n transaction-%{version}
Luke Macken e1fc7a
Luke Macken e1fc7a
# Remove bundled egg-info in case it exists
Luke Macken e1fc7a
rm -rf %{modname}.egg-info
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
rm -rf %{py3dir}
Luke Macken e1fc7a
cp -a . %{py3dir}
Luke Macken e1fc7a
%endif
ba408a
ba408a
ba408a
%build
40deda
%{__python2} setup.py build
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
pushd %{py3dir}
Luke Macken e1fc7a
%{__python3} setup.py build
Luke Macken e1fc7a
popd
Luke Macken e1fc7a
%endif
ba408a
ba408a
ba408a
%install
40deda
%{__python2} setup.py install --skip-build --root=%{buildroot}
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
pushd %{py3dir}
Luke Macken e1fc7a
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
Luke Macken e1fc7a
popd
Luke Macken e1fc7a
%endif
ba408a
ba408a
Luke Macken 3effa2
%check
40deda
PYTHONPATH=$(pwd) %{__python2} setup.py test
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
pushd %{py3dir}
Luke Macken e1fc7a
PYTHONPATH=$(pwd) %{__python3} setup.py test
Luke Macken e1fc7a
popd
Luke Macken e1fc7a
%endif
ba408a
ba408a
be40db
%files -n python2-transaction
Luke Macken e1fc7a
%doc README.rst LICENSE.txt COPYRIGHT.txt
40deda
%{python2_sitelib}/transaction/
40deda
%{python2_sitelib}/*.egg-info
ba408a
ba408a
Luke Macken e1fc7a
%if 0%{?with_python3}
Luke Macken e1fc7a
%files -n python3-transaction
Luke Macken e1fc7a
%doc README.rst LICENSE.txt COPYRIGHT.txt
Luke Macken e1fc7a
%{python3_sitelib}/transaction/
Luke Macken e1fc7a
%{python3_sitelib}/*.egg-info
Luke Macken e1fc7a
%endif
Luke Macken e1fc7a
ba408a
ba408a
%changelog
afa8ff
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-4
afa8ff
- Rebuilt for Python 3.8
afa8ff
25f8f1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
25f8f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
25f8f1
35f41c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
35f41c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
35f41c
132ec0
* Sat Nov 10 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-1
132ec0
- Update to 2.4.0 (#1644768)
132ec0
40deda
* Tue Jul 24 2018 Kevin Fenzi <kevin@scrye.com> - 2.2.1-1
40deda
- Fix FTBFS bug #1605958
40deda
- Update to 2.2.1. Fixes bug #1561256
40deda
d8676a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
d8676a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d8676a
f733da
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-2
f733da
- Rebuilt for Python 3.7
f733da
c1e2e8
* Wed Feb 28 2018 Ralph Bean <rbean@redhat.com> - 2.2.0-1
c1e2e8
- new version
c1e2e8
37b579
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-5
37b579
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
37b579
d3c693
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.2-4
d3c693
- Update Python 2 dependency declarations to new packaging standards
d3c693
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
d3c693
be40db
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.1.2-3
be40db
- Python 2 binary package renamed to python2-transaction
be40db
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
be40db
5deaa1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
5deaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5deaa1
ce9a39
* Sat Mar 25 2017 Kevin Fenzi <kevin@scrye.com> - 2.1.2-1
ce9a39
- Update to 2.1.2. Fixes bug #1431394
ce9a39
05505e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
05505e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
05505e
5d8b66
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-2
5d8b66
- Rebuild for Python 3.6
5d8b66
8422c1
* Wed Nov 23 2016 Kevin Fenzi <kevin@scrye.com> - 2.0.3-1
8422c1
- Update to 2.0.3. Fixes bug #1396317
8422c1
4d1a7a
* Mon Nov 14 2016 Kevin Fenzi <kevin@scrye.com> - 2.0.2-1
4d1a7a
- Update to 2.0.2. Fixes bug #1394442
4d1a7a
9b74c3
* Wed Nov 09 2016 Kevin Fenzi <kevin@scrye.com> - 1.7.0-1
9b74c3
- Update to 1.7.0. Fixes bug #1393196
9b74c3
292bfe
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
292bfe
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
292bfe
d971de
* Wed Jun 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.6.1-1
d971de
- Update to 1.6.1. Fixes bug #1346645
d971de
a09e3c
* Sun May 29 2016 Kevin Fenzi <kevin@scrye.com> - 1.6.0-1
a09e3c
- Update to 1.6.0. Fixes bug #1338430
a09e3c
1c35f8
* Fri May 06 2016 Ralph Bean <rbean@redhat.com> - 1.5.0-1
1c35f8
- new version
1c35f8
d86922
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-4
d86922
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d86922
5a8326
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3
5a8326
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5a8326
bf2659
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-2
bf2659
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bf2659
6af169
* Wed May 20 2015 Ralph Bean <rbean@redhat.com> - 1.4.4-1
6af169
- new version
6af169
5bd492
* Mon Jul 21 2014 Ralph Bean <rbean@redhat.com> - 1.4.3-1
5bd492
- Latest upstream.
5bd492
a27586
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-5
a27586
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a27586
609c3e
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.1-4
609c3e
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
609c3e
b58640
* Wed Jan 22 2014 Ralph Bean <rbean@redhat.com> - 1.4.1-3
b58640
- Fix python3 requires.
b58640
203cce
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
203cce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
203cce
Luke Macken e1fc7a
* Thu Apr 11 2013 Luke Macken <lmacken@redhat.com> - 1.4.1-1
Luke Macken e1fc7a
- Update to 1.4.1 (#634901)
Luke Macken e1fc7a
- Build a python3 subpackage
Luke Macken e1fc7a
- Remove python-transaction-1.1.1-context-manager.patch
Luke Macken e1fc7a
- Modernize the spec
Luke Macken e1fc7a
988287
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-6
988287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
988287
f70e6f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-5
f70e6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f70e6f
ae587b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
ae587b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ae587b
1f1224
* Fri Aug 26 2011 Nils Philippsen <nils@redhat.com> - 1.1.1-3
1f1224
- fix content manager interface
1f1224
a781db
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
a781db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a781db
Luke Macken 3effa2
* Thu Sep 30 2010 Luke Macken <lmacken@redhat.com> - 1.1.1-1
Luke Macken 3effa2
- Update to 1.1.1
Luke Macken 3effa2
- Run the test suite
Luke Macken 3effa2
b028b2
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.0-2
b028b2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
b028b2
0bece3
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.0-1
0bece3
- Update to upstream bugfix 1.1.0
0bece3
afd587
* Thu Jan 28 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-2
afd587
- Correction to how the setuptools vs setuptools-devel BR
afd587
a97544
* Thu Jan 28 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-1
a97544
- Update to 1.0 final.  Few fixes for tests and build/install cleanliness.
a97544
  No code changes.
a97544
- Conditionalize portions of the spec that are only needed for older distro releases.
a97544
0a4f6c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.5.a1
0a4f6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0a4f6c
433b0f
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.4.a1
433b0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
433b0f
1ec73a
* Thu Dec 18 2008 Luke Macken <lmacken@redhat.com> - 1.0-0.3.a1
1ec73a
- Fix the license tag
1ec73a
bcfdb8
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-0.2.a1
bcfdb8
- Rebuild for Python 2.6
bcfdb8
ba408a
* Tue Oct 21 2008 Luke Macken <lmacken@redhat.com> - 1.0-0.1.a2
ba408a
- Initial package