File python-gpgme.spec of Package python-gpgme.import5859

# spec file for package python-gpgme
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           python-gpgme
Version:        0.1
Release:        106.<RELEASE107>
Summary:        A Python module for working with OpenPGP messages
License:        LGPL-2.1+
Group:          Development/Libraries/Python
Source:         pygpgme-%{version}.tar.bz2
Patch:          pygpgme-0.1-py23.patch
Patch1:         pygpgme-0.1-context.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gpgme-devel
BuildRequires:  python-devel

PyGPGME is a Python module that lets you sign, verify, encrypt and
decrypt messages using the OpenPGP format.

It is built on top of the GNU Privacy Guard and the GPGME library.

    James Henstridge <>

%setup -q -n pygpgme-%{version}
%patch -p1
%patch1 -p2

#CFLAGS="$RPM_OPT_FLAGS" %{__python} build

%{__python} install --root $RPM_BUILD_ROOT --prefix=%{_prefix}
# No need to ship the tests
rm -rf $RPM_BUILD_ROOT%{py_sitedir}/gpgme/tests/