%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: pygpgme Version: 0.1 Release: 8%{?dist} Summary: Python module for working with OpenPGP messages Group: Development/Languages License: LGPLv2+ URL: http://cheeseshop.python.org/pypi/pygpgme/0.1 Source0: http://cheeseshop.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz Patch0: pygpgme-0.1-py23.patch Patch1: pygpgme-0.1-gpgme_ctx_set_engine_info.patch Patch2: pygpgme-0.1-symmetric_encryption_support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: gpgme-devel %description PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt files using the OpenPGP format. It is built on top of GNU Privacy Guard and the GPGME library. %prep %setup -q # Patch necessary for python version 2.3 and below. %patch0 -p1 -b .py23 %patch1 -p1 -b .ctx_set_engine %patch2 -p1 -b .sym_encrypt %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT # No need to ship the tests rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gpgme/tests/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README PKG-INFO %{python_sitearch}/gpgme/ %changelog * Tue Jul 28 2009 Jesse Keating - 0.1-8 - Add a second patch from mitr to support symmetric_encryption * Tue Jul 28 2009 Jesse Keating - 0.1-7 - Patch from mitr for gpgme_ctx_set_engine_info * Fri May 18 2007 Toshio Kuratomi - 0.1-6 - Rebuild to pick up enhancements from gcc on F-8. - Update licensing to conform to new guidelines. * Fri May 18 2007 Toshio Kuratomi - 0.1-5 - Rebuild because of a bug in linking to an early version of the python-2.5 package, * Mon Oct 23 2006 Toshio Kuratomi - 0.1-4 - Bump and rebuild for python 2.5 on devel. * Mon Oct 23 2006 Toshio Kuratomi - 0.1-3 - Add a patch to work under Python 2.3. - Stop shipping the tests as they are useless to the end user. * Fri Oct 13 2006 Toshio Kuratomi - 0.1-2 - Change URL to cheeseshop * Sun Oct 08 2006 Toshio Kuratomi - 0.1-1 - Initial build for Fedora Extras.