[pygpgme] Update for new upstream release. Doesn't add any new code, just switches from a snapshot to a relea
Toshio くらとみ
toshio at fedoraproject.org
Wed Aug 17 18:08:20 UTC 2011
commit 3479642151d3eaae7f0f0f7cdbccf284166c1483
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date: Wed Aug 17 11:07:59 2011 -0700
Update for new upstream release. Doesn't add any new code, just switches
from a snapshot to a release and bumps version
.gitignore | 1 +
encrypt.py | 14 ++++++++++++++
pygpgme.spec | 25 ++++++++++++++++---------
sources | 2 +-
4 files changed, 32 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1537f70..99e35d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
pygpgme-0.1.tar.gz
/pygpgme-0.1.tar.gz
+/pygpgme-0.2.tar.gz
diff --git a/encrypt.py b/encrypt.py
new file mode 100644
index 0000000..ca9e062
--- /dev/null
+++ b/encrypt.py
@@ -0,0 +1,14 @@
+import gpgme
+from StringIO import StringIO
+
+ctx = gpgme.Context()
+ctx.armor = True
+
+key = ctx.get_key('B10A449E4CFB9A60A2DB996701AF93D991CFA34D')
+
+plain = StringIO('Hello World\n')
+cipher = StringIO()
+
+ctx.encrypt([key], 0, plain, cipher)
+
+print cipher.getvalue()
diff --git a/pygpgme.spec b/pygpgme.spec
index df062c8..10ea258 100644
--- a/pygpgme.spec
+++ b/pygpgme.spec
@@ -1,17 +1,15 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: pygpgme
-Version: 0.1
-Release: 22.20101027bzr69%{?dist}
+Version: 0.2
+Release: 1%{?dist}
Summary: Python module for working with OpenPGP messages
Group: Development/Languages
License: LGPLv2+
URL: http://cheeseshop.python.org/pypi/pygpgme/0.1
# pygpgme is being developed for Ubuntu and built for Ubuntu out of
-# launchpad's source control. So we need to create snapshots.
-# At this time, updated packages from launchpad have fixed tests and support
-# for generating keys
+# launchpad's source control. if we need to create a snapshot, here's how:
#
# Steps to create snapshot:
# bzr branch lp:pygpgme -r69
@@ -19,12 +17,14 @@ URL: http://cheeseshop.python.org/pypi/pygpgme/0.1
# patch -p0 < ../pygpgme-examples.patch
# python setup.py sdist
# tarball is in dist/pygpgme-0.1.tar.gz
-Source0: pygpgme-0.1.tar.gz
-#Source0: http://cheeseshop.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
+#Source0: pygpgme-0.1.tar.gz
+Source0: http://cheeseshop.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
# Patch to make generating a tarball (sdist) work. Applied prior to creating
-# the Source0.
+# the Source0. Submitted upstream.
Source1: pygpgme-examples.patch
-BuildRequires: python-devel
+# The examples files that weren't included in upstream's release:
+Source2: encrypt.py
+BuildRequires: python2-devel
BuildRequires: gpgme-devel
%filter_provides_in %{python_sitearch}/gpgme/_gpgme.so
@@ -38,6 +38,9 @@ the GPGME library.
%prep
%setup -q
+mkdir examples
+cp -pr %{SOURCE2} examples/
+
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
@@ -68,6 +71,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Aug 17 2011 Toshio Kuratomi <toshio at fedoraproject.org> - 0.2-1
+- Update for new upstream release. Doesn't add any new code, just switches
+ from a snapshot to a release and bumps version
+
* Fri Feb 11 2011 Toshio Kuratomi <toshio at fedoraproject.org> - 22.20101027bzr69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
diff --git a/sources b/sources
index 168d4d1..6b6fd0a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5eab9cb3e35d507a1829c50a079b96c6 pygpgme-0.1.tar.gz
+674e3f5374efa2aaac7ab420810c91e6 pygpgme-0.2.tar.gz
More information about the scm-commits
mailing list