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