python-beaker/python-beaker.spec

114 lines
4.1 KiB
RPMSpec

Name: python-beaker
Version: 1.12.0
Release: 1mamba
Summary: A Session and Caching library with WSGI Middleware
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://beaker.readthedocs.io/en/latest/
Source: http://pypi.debian.net/Beaker/Beaker-%{version}.tar.gz
Patch0: python-beaker-1.5-absimport.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4
BuildRequires: python-setuptools-devel
%description
Beaker is a web session and general caching library that includes WSGI middleware for use in web applications.
As a general caching library, Beaker can handle storing for various times any Python object that can be pickled with optional back-ends on a fine-grained basis.
Beaker was built largely on the code from MyghtyUtils, then refactored and extended with database support.
Beaker includes Cache and Session WSGI middleware to ease integration with WSGI capable frameworks, and is automatically used by Pylons http://pylonshq.com/.
Features
========
* Fast, robust performance
* Multiple reader/single writer lock system to avoid duplicate simultaneous cache creation
* Cache back-ends include dbm, file, memory, memcached, and database (Using SQLAlchemy for multiple-db vendor support)
* Signed cookie's to prevent session hijacking/spoofing
* Cookie-only sessions to remove the need for a db or file backend (ideal for clustered systems)
* Extensible Container object to support new back-ends
* Cache's can be divided into namespaces (to represent templates, objects, etc.) then keyed for different copies
* Create functions for automatic call-backs to create new cache copies after expiration
* Fine-grained toggling of back-ends, keys, and expiration per Cache object
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n Beaker-%{version}
#%patch0 -p0
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/Beaker-%{version}-py*.egg-info
%{python_sitearch}/Beaker-%{version}-py*.egg-info/*
#%doc LICENSE CHANGELOG
%changelog
* Sat Dec 17 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.0-1mamba
- update to 1.12.0
* Sat Oct 05 2019 Automatic Build System <autodist@mambasoft.it> 1.11.0-1mamba
- automatic version update by autodist
* Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-2mamba
- rebuilt with python3 3.7.4
* Sat Feb 23 2019 Automatic Build System <autodist@mambasoft.it> 1.10.1-1mamba
- automatic version update by autodist
* Thu Jun 07 2018 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic version update by autodist
* Sat Apr 28 2018 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Thu Nov 16 2017 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic update by autodist
* Mon Dec 05 2016 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
- automatic version update by autodist
* Fri Aug 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-2mamba
- -py3 package support
* Fri Jan 29 2016 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist
* Thu Apr 30 2015 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic version update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.4-2mamba
- python 2.7 mass rebuild
* Thu Mar 07 2013 Automatic Build System <autodist@mambasoft.it> 1.6.4-1mamba
- automatic version update by autodist
* Sat May 01 2010 gil <puntogil@libero.it> 1.5.3-1mamba
- update to 1.5.3
* Fri Nov 27 2009 gil <puntogil@libero.it> 1.5-1mamba
- package created by autospec