%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-cerealizer Summary: Secure pickle-like module Version: 0.7 Release: 2%{?dist} License: Python Group: Development/Tools Source0: http://download.gna.org/soya/Cerealizer-%{version}.tar.bz2 URL: http://home.gna.org/oomadness/en/cerealizer/index.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %description Cerealizer is a secure pickle-like module. It support basic types (int, string, unicode, tuple, list, dict, set,...), old and new-style classes (you need to register the class for security), object cycles, and it can be extended to support C-defined type. %prep %setup -q -n Cerealizer-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %check export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib} %{__python} test/regtest.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README PKG-INFO %{python_sitelib}/cerealizer/ %{python_sitelib}/Cerealizer-*.egg-info %changelog * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7-1 - update to 0.7 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6-4 - Rebuild for Python 2.6 * Sat Apr 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.6-3 - Add egg-info files (fix FTBFS bz 440814) * Sat Nov 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.6-2 - add check * Wed Nov 14 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.6-1 - Initial package for Fedora