|
|
46fa67d |
%if 0%{?fedora} || 0%{?rhel} > 6
|
|
|
46fa67d |
%global with_python3 1
|
|
|
46fa67d |
%else
|
|
|
83196c7 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
46fa67d |
%endif
|
|
|
cfa235a |
|
|
|
cfa235a |
Name: pygpgme
|
|
|
46fa67d |
Version: 0.3
|
|
|
46fa67d |
Release: 1%{?dist}
|
|
|
cfa235a |
Summary: Python module for working with OpenPGP messages
|
|
|
cfa235a |
|
|
|
cfa235a |
Group: Development/Languages
|
|
|
8c57028 |
License: LGPLv2+
|
|
|
46fa67d |
URL: http://cheeseshop.python.org/pypi/pygpgme
|
|
|
dc0e76b |
# pygpgme is being developed for Ubuntu and built for Ubuntu out of
|
|
|
3479642 |
# launchpad's source control. if we need to create a snapshot, here's how:
|
|
|
dc0e76b |
#
|
|
|
dc0e76b |
# Steps to create snapshot:
|
|
|
d1f0b65 |
# bzr branch lp:pygpgme -r69
|
|
|
dc0e76b |
# cd pygpgme
|
|
|
dc0e76b |
# patch -p0 < ../pygpgme-examples.patch
|
|
|
dc0e76b |
# python setup.py sdist
|
|
|
dc0e76b |
# tarball is in dist/pygpgme-0.1.tar.gz
|
|
|
3479642 |
#Source0: pygpgme-0.1.tar.gz
|
|
|
3479642 |
Source0: http://cheeseshop.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
|
3479642 |
BuildRequires: python2-devel
|
|
|
cfa235a |
BuildRequires: gpgme-devel
|
|
|
cfa235a |
|
|
|
46fa67d |
%if 0%{?with_python3}
|
|
|
46fa67d |
BuildRequires: python3-devel
|
|
|
46fa67d |
%endif
|
|
|
46fa67d |
|
|
|
83196c7 |
%filter_provides_in %{python_sitearch}/gpgme/_gpgme.so
|
|
|
83196c7 |
%filter_setup
|
|
|
83196c7 |
|
|
|
cfa235a |
%description
|
|
|
cfa235a |
PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt
|
|
|
cfa235a |
files using the OpenPGP format. It is built on top of GNU Privacy Guard and
|
|
|
cfa235a |
the GPGME library.
|
|
|
cfa235a |
|
|
|
46fa67d |
%if 0%{?with_python3}
|
|
|
46fa67d |
%package -n python3-pygpgme
|
|
|
46fa67d |
Summary: Python3 module for working with OpenPGP messages
|
|
|
46fa67d |
Group: Development/Languages
|
|
|
46fa67d |
|
|
|
46fa67d |
%description -n python3-pygpgme
|
|
|
46fa67d |
PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt
|
|
|
46fa67d |
files using the OpenPGP format. It is built on top of GNU Privacy Guard and
|
|
|
46fa67d |
the GPGME library. This package installs the module for use with python3.
|
|
|
46fa67d |
%endif
|
|
|
46fa67d |
|
|
|
cfa235a |
%prep
|
|
|
cfa235a |
%setup -q
|
|
|
cfa235a |
|
|
|
46fa67d |
%if 0%{?with_python3}
|
|
|
46fa67d |
rm -rf %{py3dir}
|
|
|
46fa67d |
cp -a . %{py3dir}
|
|
|
46fa67d |
%endif
|
|
|
3479642 |
|
|
|
cfa235a |
%build
|
|
|
cfa235a |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
cfa235a |
|
|
|
46fa67d |
%if 0%{?with_python3}
|
|
|
46fa67d |
pushd %{py3dir}
|
|
|
46fa67d |
%{__python3} setup.py build
|
|
|
46fa67d |
popd
|
|
|
46fa67d |
%endif # with_python3
|
|
|
cfa235a |
|
|
|
cfa235a |
%install
|
|
|
dc0e76b |
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
dc0e76b |
chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/gpgme/_gpgme.so
|
|
|
46fa67d |
|
|
|
46fa67d |
%if 0%{?with_python3}
|
|
|
46fa67d |
pushd %{py3dir}
|
|
|
46fa67d |
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
46fa67d |
chmod 0755 $RPM_BUILD_ROOT%{python3_sitearch}/gpgme/*.so
|
|
|
46fa67d |
popd
|
|
|
46fa67d |
%endif # with_python3
|
|
|
cfa235a |
|
|
|
cfa235a |
%clean
|
|
|
cfa235a |
rm -rf $RPM_BUILD_ROOT
|
|
|
cfa235a |
|
|
|
46fa67d |
%check
|
|
|
46fa67d |
### Can't run the tests unconditionally because they depend on importing a private key.
|
|
|
dc0e76b |
# gpg2 on which our gpgme library depends does not import private keys so this
|
|
|
dc0e76b |
# won't work. The issue in the real world is not so big as we don't
|
|
|
dc0e76b |
# manipulate private keys outside of a keyring that often.
|
|
|
46fa67d |
# We'll run this and ignore errors so we can manually look for problems more easily
|
|
|
dc0e76b |
# Use the installed gpgme because it has the built compiled module
|
|
|
46fa67d |
mv gpgme gpgme.bak
|
|
|
46fa67d |
ln -s $RPM_BUILD_ROOT%{python_sitearch}/gpgme .
|
|
|
46fa67d |
make check || :
|
|
|
cfa235a |
|
|
|
cfa235a |
%files
|
|
|
cfa235a |
%defattr(-,root,root,-)
|
|
|
63d12f8 |
%doc README PKG-INFO examples tests
|
|
|
1c07e7a |
%{python_sitearch}/*
|
|
|
dc0e76b |
|
|
|
46fa67d |
%if 0%{?with_python3}
|
|
|
46fa67d |
%files -n python3-pygpgme
|
|
|
46fa67d |
%defattr(-,root,root,-)
|
|
|
46fa67d |
%doc README PKG-INFO examples tests
|
|
|
46fa67d |
%{python3_sitearch}/*
|
|
|
46fa67d |
%endif # with_python3
|
|
|
cfa235a |
|
|
|
cfa235a |
%changelog
|
|
|
46fa67d |
* Tue May 15 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3-1
|
|
|
46fa67d |
- New upstream release
|
|
|
46fa67d |
- Build a python3 subpackage
|
|
|
46fa67d |
- Run the test suite even though we ignore the output
|
|
|
46fa67d |
|
|
|
3cbb559 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2
|
|
|
3cbb559 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3cbb559 |
|
|
|
3479642 |
* Wed Aug 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2-1
|
|
|
3479642 |
- Update for new upstream release. Doesn't add any new code, just switches
|
|
|
3479642 |
from a snapshot to a release and bumps version
|
|
|
3479642 |
|
|
|
8325ac8 |
* Fri Feb 11 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 22.20101027bzr69
|
|
|
8325ac8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
8325ac8 |
|
|
|
d1f0b65 |
* Tue Oct 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 21.20101027bzr69
|
|
|
d1f0b65 |
- New snapshot to fix BZ#647059: pygpgme error creating context on F14.
|
|
|
d1f0b65 |
|
|
|
5558e37 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.1-20.20090824bzr68
|
|
|
5558e37 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
5558e37 |
|
|
|
83196c7 |
* Thu Mar 4 2010 Miloslav Trmač <mitr@redhat.com> - 0.1-19.20090824bzr68
|
|
|
83196c7 |
- Filter out bogus Provides: _gpgme.so
|
|
|
83196c7 |
- Drop no longer required references to BuildRoot:
|
|
|
83196c7 |
- s/%%define/%%global/g
|
|
|
83196c7 |
|
|
|
9f728b4 |
* Wed Feb 3 2010 Miloslav Trmač <mitr@redhat.com> - 0.1-18.20090824bzr68
|
|
|
9f728b4 |
- Classify pygpgme-examples.patch as Source, not a Patch, to silence rpmlint
|
|
|
9f728b4 |
|
|
|
63d12f8 |
* Wed Oct 28 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-17.20090824bzr68
|
|
|
63d12f8 |
- Include tests and examples as documentation.
|
|
|
63d12f8 |
|
|
|
a37a044 |
* Mon Aug 24 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-16.20090824bzr68
|
|
|
a37a044 |
- Rebase to new upstream snapshot
|
|
|
a37a044 |
- Patches merged upstream
|
|
|
a37a044 |
- Fixes deprecation warnings on py2.6/py3.0
|
|
|
a37a044 |
- Remove py2.3 patch -- only needed for EPEL-4
|
|
|
a37a044 |
|
|
|
65ad493 |
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.1-15.20090121bzr54
|
|
|
65ad493 |
- Add a second patch from mitr for symmetric_encryption_support
|
|
|
65ad493 |
|
|
|
6c7e559 |
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.1-14.20090121bzr54
|
|
|
6c7e559 |
- Patch from mitr for gpgme_ctx_set_engine_info
|
|
|
6c7e559 |
|
|
|
8341db4 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-13.20090121bzr54
|
|
|
8341db4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
8341db4 |
|
|
|
c1fac18 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-12.20090121bzr54
|
|
|
c1fac18 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
c1fac18 |
|
|
|
2ac7713 |
* Thu Jan 22 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-11.20090121bzr54
|
|
|
2ac7713 |
- Add patch to cvs.
|
|
|
2ac7713 |
|
|
|
dc0e76b |
* Wed Jan 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-10.20090121bzr54
|
|
|
dc0e76b |
- Update to upstream snapshot.
|
|
|
dc0e76b |
|
|
|
982c3ab |
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1-9
|
|
|
982c3ab |
- Rebuild for Python 2.6
|
|
|
982c3ab |
|
|
|
3d4bf67 |
* Fri Feb 8 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-8
|
|
|
3d4bf67 |
- Rebuild for new gcc.
|
|
|
3d4bf67 |
|
|
|
1c07e7a |
* Thu Jan 3 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-7
|
|
|
1c07e7a |
- Include egg-info files.
|
|
|
1c07e7a |
|
|
|
0bdedae |
* Fri May 18 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-6
|
|
|
0bdedae |
- Rebuild to pick up enhancements from gcc on F-8.
|
|
|
0bdedae |
- Update licensing to conform to new guidelines.
|
|
|
0bdedae |
|
|
|
3b8d695 |
* Fri May 18 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-5
|
|
|
3b8d695 |
- Rebuild because of a bug in linking to an early version of the python-2.5
|
|
|
3b8d695 |
package,
|
|
|
3b8d695 |
|
|
|
4da14f5 |
* Mon Oct 23 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-4
|
|
|
4da14f5 |
- Bump and rebuild for python 2.5 on devel.
|
|
|
4da14f5 |
|
|
|
ac0369a |
* Mon Oct 23 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-3
|
|
|
ac0369a |
- Add a patch to work under Python 2.3.
|
|
|
ac0369a |
- Stop shipping the tests as they are useless to the end user.
|
|
|
ac0369a |
|
|
|
cfa235a |
* Fri Oct 13 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-2
|
|
|
cfa235a |
- Change URL to cheeseshop
|
|
|
cfa235a |
|
|
|
cfa235a |
* Sun Oct 08 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-1
|
|
|
cfa235a |
- Initial build for Fedora Extras.
|