Blob Blame History Raw
%global modname pyramid_tm
%global sum A package which allows Pyramid requests to join the active transaction
%global desc pyramid_tm is a package which allows Pyramid requests to join the\
active transaction as provided by the transaction\
http://pypi.python.org/pypi/transaction\
\
See http://docs.pylonsproject.org/projects/pyramid_tm/dev/\
or docs/index.rst in this distribution for detailed documentation.


Name:           python-pyramid-tm
Version:        2.2
Release:        6%{?dist}
Summary:        %{sum}

Group:          Development/Languages
License:        BSD
URL:            http://pypi.python.org/pypi/pyramid_tm
Source0:        https://github.com/Pylons/pyramid_tm/archive/%{version}/%{modname}-%{version}.tar.gz

BuildArch:      noarch


BuildRequires:  python2-coverage
BuildRequires:  python2-devel
BuildRequires:  python2-nose
BuildRequires:  python2-setuptools
BuildRequires:  python2-pyramid >= 1.5
BuildRequires:  python2-transaction >= 2.0
BuildRequires:  python2-webtest

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pyramid >= 1.5
BuildRequires:  python3-transaction >= 2.0
BuildRequires:  python3-nose
BuildRequires:  python3-coverage
BuildRequires:  python3-webtest


%description
%{desc}


%package -n python2-pyramid-tm
Summary:        %{sum}
Group:          Development/Languages

%{?python_provide:%python_provide python2-pyramid-tm}

Requires:       python2-pyramid >= 1.5
Requires:       python2-transaction >= 2.0


%description -n python2-pyramid-tm
%{desc}


%package -n python3-pyramid-tm
Summary:        %{sum}
Group:          Development/Languages

%{?python_provide:%python_provide python3-pyramid-tm}

Requires:       python3-pyramid >= 1.5
Requires:       python3-transaction >= 2.0

%description -n python3-pyramid-tm
pyramid_tm is a package which allows Pyramid requests to join the
active transaction as provided by the transaction
http://pypi.python.org/pypi/transaction

See http://docs.pylonsproject.org/projects/pyramid_tm/dev/
or docs/index.rst in this distribution for detailed documentation.


%prep
%setup -q -n %{modname}-%{version}


# Make sure that setuptools picks the right version of zope.interface (el6)
awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"zope.interface>=3.8\"]; import pkg_resources"}1' setup.py > setup.py.tmp
mv setup.py.tmp setup.py

# Remove bundled egg info
rm -rf %{modname}.egg-info

rm docs/.gitignore

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%check
%{__python2} setup.py test
%{__python3} setup.py test

%files -n python2-pyramid-tm
%doc README.rst docs CONTRIBUTORS.txt CHANGES.rst
%license LICENSE.txt COPYRIGHT.txt
%{python2_sitelib}/%{modname}
%{python2_sitelib}/%{modname}-%{version}*


%files -n python3-pyramid-tm
%doc README.rst docs CONTRIBUTORS.txt CHANGES.rst
%license LICENSE.txt COPYRIGHT.txt
%{python3_sitelib}/%{modname}
%{python3_sitelib}/%{modname}-%{version}*


%changelog
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.2-6
- Modernize the spec file a little
- Use the py2 version of the macros

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2-4
- Rebuilt for Python 3.7

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2-2
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Fri Sep 15 2017 Kevin Fenzi <kevin@scrye.com> - 2.2-1
- Update to 2.2. Fixes bug #1467463

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Jun 23 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.1-1
- Update to 2.1 (#1462289).
- http://docs.pylonsproject.org/projects/pyramid_tm/en/latest/#id3

* Fri Jun 16 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.1-4
- I mistakenly had this package depend on python2-{pyramid,transaction}.
  This update fixes that error.

* Fri Jun 16 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.1-3
- Rename python-pyramid-tm to python2-pyramid-tm.
- Always build for python 3.
- Remove the .gitignore file from the docs.

* Fri Jun 16 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.1-2
- Use python2- versions of three BuildRequires.

* Fri Jun 16 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.1-1
- Update to 1.1.1 (#1462252).
- Drop the EL 6 patch, since this update can only go into F26 and Rawhide.

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12-5
- Rebuild for Python 3.6

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

* Tue Sep 15 2015 Ralph Bean <rbean@redhat.com> - 0.12-1
- new version
- Move license and copyright to a %%license field.

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri May 30 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Jun 21 2013 Ralph Bean <rbean@redhat.com> - 0.7-2
- Patch to remove a block that requires python-transaction>=1.1 which is
  unavailable on el6.

* Fri Jun 21 2013 Ralph Bean <rbean@redhat.com> - 0.7-1
- Latest upstream
- Added python3 subpackage.
- Added test suite to check section.
- Included upstream docs.
- Write unauthenticated userid and request.path_info as transaction metadata
  via t.setUser and t.note respectively during a commit.
- Disuse the confusing and bug-ridden generator-plus-context-manager "attempts"
  mechanism from the transaction package for retrying retryable exceptions
  (e.g. ZODB ConflictError). Use a simple while loop plus a counter and
  imperative logic instead
- When a non-retryable exception was raised as the result of a call to
  transaction.manager.commit, the exception was not reraised properly. Symptom:
  an unrecoverable exception such as Unsupported: Storing blobs in
  <somestorage> is not supported. would be swallowed inappropriately.

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Mon Jun 18 2012 Ross Delinger <rossdylan@csh.rit.edu> 0.4-1
- initial package for Fedora