Blame SPECS/python-beaker.spec

821497
%if 0%{?fedora}
821497
%global with_python3 1
821497
%else
821497
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
821497
%endif
821497
821497
%if 0%{?fedora} <= 16
821497
%{!?python3_version: %global python3_version %(%{__python3} -c 'import sys ; sys.stdout.write("%s.%s" % sys.version_info[:2])')}
821497
%endif
821497
821497
Name: python-beaker
821497
Version: 1.5.4
821497
Release: 9%{?dist}
821497
Summary: WSGI middleware layer to provide sessions
821497
821497
Group: Development/Languages
821497
License: BSD and MIT
821497
URL: http://beaker.groovie.org/
821497
Source0: http://pypi.python.org/packages/source/B/Beaker/Beaker-%{version}.tar.gz
821497
Patch0: beaker-use-system-paste.patch
821497
Patch1: beaker-disable-badtest.patch
821497
Patch2: beaker-anydbm.patch
821497
# Switch to sha1 from md5 in beaker.session module
821497
# (rhbz#996219)
821497
Patch3: beaker-fips-md5.patch
821497
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
821497
BuildArch: noarch
821497
BuildRequires: python2-devel
821497
BuildRequires: python-setuptools
821497
# Needed for the test suite
821497
BuildRequires: python-nose
821497
BuildRequires: python-webtest
821497
Requires: python-paste
821497
%if 0%{?fedora}
821497
Requires: pycryptopp
821497
%else
821497
# neither python-crypto, nor pycryptopp are currently available in RHEL 7.0 (rhbz#997326)
821497
#Requires: python-crypto
821497
%endif
821497
821497
%if 0%{?with_python3}
821497
BuildRequires: /usr/bin/2to3
821497
BuildRequires: python3-devel
821497
BuildRequires: python3-setuptools
821497
# Needed for complete test suite
821497
#BuildRequires: python3-webtest
821497
%if 0%{?fedora} > 14
821497
BuildRequires: python3-nose
821497
%endif
821497
%endif # if with_python3
821497
821497
%description
821497
Beaker is a caching library that includes Session and Cache objects built on
821497
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
821497
manage Session objects and signed cookies.
821497
821497
%if 0%{?with_python3}
821497
%package -n python3-beaker
821497
Summary: WSGI middleware layer to provide sessions
821497
Group: Development/Languages
821497
# Paste is not python3 compatible at the moment
821497
#Requires: python3-paste
821497
# Without one of these there's no aes implementation which means there's no way to
821497
# have encrypted cookies.  This is a reduction in features over the python2 version.
821497
# Currently there's no working python3 port for either:
821497
# http://allmydata.org/trac/pycryptopp/ticket/35
821497
# http://lists.dlitz.net/pipermail/pycrypto/2010q2/000253.html
821497
#%if 0%{?fedora}
821497
#Requires: python3-pycryptopp
821497
#%else
821497
#Requires: python3-crypto
821497
#%endif
821497
821497
%description -n python3-beaker
821497
Beaker is a caching library that includes Session and Cache objects built on
821497
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
821497
manage Session objects and signed cookies.
821497
%endif # with_python3
821497
821497
821497
%prep
821497
%setup -q -n Beaker-%{version}
821497
%patch0 -p1 -b .system
821497
%patch1 -p1 -b .badtest
821497
%patch2 -p1 -b .anydbm
821497
%patch3 -p0
821497
821497
%if 0%{?with_python3}
821497
rm -rf %{py3dir}
821497
cp -a . %{py3dir}
821497
%endif # with_python3
821497
821497
821497
%build
821497
%{__python} setup.py build
821497
821497
%if 0%{?with_python3}
821497
pushd %{py3dir}
821497
%{__python3} setup.py build
821497
popd
821497
%endif # with_python3
821497
821497
821497
%install
821497
rm -rf $RPM_BUILD_ROOT
821497
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
821497
821497
%if 0%{?with_python3}
821497
pushd %{py3dir}
821497
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
821497
popd
821497
%endif # with_python3
821497
821497
821497
%check
821497
PYTHONPATH=$(pwd) nosetests
821497
821497
#%%if 0%{?with_python3} && 0%{?fedora} > 14
821497
#pushd %{py3dir}
821497
#PYTHONPATH=$(pwd) nosetests-%{python3_version}
821497
#popd
821497
#%%endif
821497
821497
%clean
821497
rm -rf $RPM_BUILD_ROOT
821497
821497
821497
%files
821497
%defattr(-,root,root,-)
821497
%doc LICENSE CHANGELOG
821497
%{python_sitelib}/beaker/
821497
%{python_sitelib}/Beaker*
821497
821497
%if 0%{?with_python3}
821497
%files -n python3-beaker
821497
%defattr(-,root,root,-)
821497
%{python3_sitelib}/beaker/
821497
%{python3_sitelib}/Beaker*
821497
%endif
821497
821497
821497
%changelog
821497
* Thu Aug 15 2013 Matej Stuchlik <mstuchli@redhat.com> - 1.5.4-9
821497
- Removed python-crypto from Requires
821497
Resolves: rhbz#997326
821497
821497
* Tue Aug 13 2013 Robert Kuska <rkuska@redhat.com> - 1.5.4-8
821497
- Change beaker.session to use sha1 instead of md5 because of failures in fips mode
821497
Resolves: rhbz#996219
821497
821497
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-7
821497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
821497
821497
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.4-6
821497
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
821497
821497
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.4-5
821497
- remove rhel logic from with_python3 conditional
821497
821497
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-4
821497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
821497
821497
* Thu Feb 09 2012 Luke Macken <lmacken@redhat.com> - 1.5.4-3
821497
- Remove the python3-paste dependency.
821497
821497
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-2
821497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
821497
821497
* Tue Sep 6 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.5.4-1
821497
- Update to 1.5.4
821497
- Fix for python3 module and anydbm
821497
- Tried enabling unittests on python3 -- still no joy
821497
821497
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-9
821497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
821497
821497
* Wed Oct 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.5.3-8
821497
- Remove explicit call to 2to3; setup.py handles this
821497
821497
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.5.3-7
821497
- rebuild with python3.2
821497
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
821497
821497
* Thu Aug 12 2010 Kyle VanderBeek <kylev@kylev.com> - 1.5.3-6
821497
- Disable broken test_dbm_container2 test.
821497
821497
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.3-5
821497
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
821497
821497
* Mon Jun 28 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.5.3-4
821497
- Add Requires for crypto libs so we have encrypted cookies
821497
- Add patch to unbundle file that comes from paste
821497
821497
* Sun Jun 27 2010 Kyle VanderBeek <kylev@kylev.com> - 1.5.3-3
821497
- Add python3 conditionals
821497
821497
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 1.5.3-2
821497
- Add a python3 subpackage
821497
821497
* Mon Mar 22 2010 Luke Macken <lmacken@redhat.com> - 1.5.3-1
821497
- Update to 1.5.3
821497
- Remove the abspath patch, which was fixed upstream
821497
- Run the test suite
821497
821497
* Fri Jan 22 2010 Luke Macken <lmacken@redhat.com> - 1.5.1-1
821497
- Update to 1.5.1
821497
- Remove beaker-hmac2.4.patch, which made it into 1.4 upstream
821497
- Remove middleware-config.patch which is also upstream
821497
821497
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-6
821497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
821497
821497
* Tue Jul 21 2009 Kyle VanderBeek <kylev@kylev.com> - 1.3.1-5
821497
- Add patch based on upstream hg 403ef7c82d32 for config overwriting that
821497
  breaks Pylons unit tests
821497
821497
* Sat Jun 27 2009 Luke Macken <lmacken@redhat.com> - 1.3.1-4
821497
- Add a patch to remove the use of __future__.absolute_import in the google
821497
  backend
821497
821497
* Sat Jun 20 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.1-3
821497
- Different hmac patch suitable for upstream inclusion.
821497
821497
* Tue Jun 02 2009 Luke Macken <lmacken@redhat.com> - 1.3.1-2
821497
- Add a patch to remove Beaker's use of hashlib on Python2.4,
821497
  due to incompatiblities with Python's hmac module (#503772)
821497
821497
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 1.3.1-1
821497
- Update to 1.3.1
821497
821497
* Tue Apr 07 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.3-1
821497
- Update to 1.3
821497
 
821497
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.2.3-1
821497
- Update to 1.2.3
821497
 
821497
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
821497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
821497
821497
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> - 1.1.3-1
821497
- Update to 1.1.3
821497
821497
* Sat Dec 20 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.1.2-1
821497
- Update to 1.1.2
821497
 
821497
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.3-2
821497
- Rebuild for Python 2.6
821497
821497
* Tue Jun 24 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.0.3-1
821497
- Update to 1.0.3.
821497
821497
* Tue Jun 24 2008 Kyle VanderBeek <kylev@kylev.com> - 0.9.5-1
821497
- Update to 0.9.5.
821497
- Remove license patch which is now corrected upstream.
821497
821497
* Mon May 12 2008 Kyle VanderBeek <kylev@kylev.com> - 0.9.4-4
821497
- Fix files to not use wildcard, fixing dir ownership
821497
821497
* Mon May 12 2008 Kyle VanderBeek <kylev@kylev.com> - 0.9.4-3
821497
- Corrected license
821497
821497
* Mon May 12 2008 Kyle VanderBeek <kylev@kylev.com> - 0.9.4-2
821497
- More restrictive file includes for safety
821497
821497
* Sun May 11 2008 Kyle VanderBeek <kylev@kylev.com> - 0.9.4-1
821497
- Update to 0.9.4 (security fix)
821497
- Fix rpmlint complaints, add CHANGELOG and LICENSE
821497
821497
* Wed Apr  9 2008 Kyle VanderBeek <kylev@kylev.com> - 0.9.3-1
821497
- Initial version.