Blame SPECS/pygpgme.spec

a240ea
%if 0%{?fedora}
a240ea
%global with_python3 1
a240ea
%endif
a240ea
%if 0%{?rhel} && 0%{?rhel} <= 5
a240ea
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
a240ea
%endif
a240ea
a240ea
Name:           pygpgme
a240ea
Version:        0.3
6ecbb1
Release:        9%{?dist}
a240ea
Summary:        Python module for working with OpenPGP messages
a240ea
a240ea
Group:          Development/Languages
a240ea
License:        LGPLv2+
a240ea
URL:            http://cheeseshop.python.org/pypi/pygpgme
a240ea
# pygpgme is being developed for Ubuntu and built for Ubuntu out of
a240ea
# launchpad's source control.  if we need to create a snapshot, here's how:
a240ea
#
a240ea
# Steps to create snapshot:
a240ea
# bzr branch lp:pygpgme -r69
a240ea
# cd pygpgme
a240ea
# patch -p0 < ../pygpgme-examples.patch
a240ea
# python setup.py sdist
a240ea
# tarball is in dist/pygpgme-0.1.tar.gz
a240ea
#Source0:        pygpgme-0.1.tar.gz
a240ea
Source0:        http://cheeseshop.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
a240ea
BuildRequires:  python2-devel
a240ea
BuildRequires:  gpgme-devel
a240ea
a240ea
%if 0%{?with_python3}
a240ea
BuildRequires: python3-devel
a240ea
%endif
a240ea
a240ea
%filter_provides_in %{python_sitearch}/gpgme/_gpgme.so
a240ea
%filter_setup
a240ea
a240ea
%description
a240ea
PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt
a240ea
files using the OpenPGP format.  It is built on top of GNU Privacy Guard and
a240ea
the GPGME library.
a240ea
a240ea
%if 0%{?with_python3}
a240ea
%package -n python3-pygpgme
a240ea
Summary: Python3 module for working with OpenPGP messages
a240ea
Group:   Development/Languages
a240ea
a240ea
%description -n python3-pygpgme
a240ea
PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt
a240ea
files using the OpenPGP format.  It is built on top of GNU Privacy Guard and
a240ea
the GPGME library.  This package installs the module for use with python3.
a240ea
%endif
a240ea
a240ea
%prep
a240ea
%setup -q
a240ea
a240ea
%if 0%{?with_python3}
a240ea
rm -rf %{py3dir}
a240ea
cp -a . %{py3dir}
a240ea
%endif
a240ea
a240ea
%build
a240ea
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python} setup.py build
a240ea
a240ea
%if 0%{?with_python3}
a240ea
pushd %{py3dir}
a240ea
%{__python3} setup.py build
a240ea
popd
a240ea
%endif # with_python3
a240ea
a240ea
%install
a240ea
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
a240ea
chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/gpgme/_gpgme.so
a240ea
a240ea
%if 0%{?with_python3}
a240ea
pushd %{py3dir}
a240ea
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
a240ea
chmod 0755 $RPM_BUILD_ROOT%{python3_sitearch}/gpgme/*.so
a240ea
popd
a240ea
%endif # with_python3
a240ea
a240ea
%clean
a240ea
rm -rf $RPM_BUILD_ROOT
a240ea
a240ea
%files
a240ea
%defattr(-,root,root,-)
a240ea
%doc README PKG-INFO examples tests
a240ea
%{python_sitearch}/*
a240ea
a240ea
%if 0%{?with_python3}
a240ea
%files -n python3-pygpgme
a240ea
%defattr(-,root,root,-)
a240ea
%doc README PKG-INFO examples tests
a240ea
%{python3_sitearch}/*
a240ea
%endif # with_python3
a240ea
a240ea
%changelog
6ecbb1
* Thu Feb 13 2014 Miloslav Trmač <mitr@redhat.com> - 0.3-9
6ecbb1
- Drop %%check to avoid a hang in pinentry-curses >= 0.8.1-12
6ecbb1
  Resolves: #1064349
6ecbb1
6ecbb1
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3-8
6ecbb1
- Mass rebuild 2014-01-24
6ecbb1
6ecbb1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3-7
6ecbb1
- Mass rebuild 2013-12-27
6ecbb1
a240ea
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-6
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a240ea
a240ea
* Wed Nov 28 2012 Miloslav Trmač <mitr@redhat.com> - 0.3-5
a240ea
- Disable -fstrict-aliasing (see http://www.python.org/dev/peps/pep-3123/ for
a240ea
  rationale)
a240ea
- Don't ship .pyc files from the test suite in %%doc, to avoid multilib
a240ea
  conflicts
a240ea
a240ea
* Fri Nov 23 2012 Miloslav Trmač <mitr@redhat.com> - 0.3-4
a240ea
- Don't build the python3 package on RHEL
a240ea
a240ea
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 0.3-3
a240ea
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
a240ea
a240ea
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a240ea
a240ea
* Tue May 15 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3-1
a240ea
- New upstream release
a240ea
- Build a python3 subpackage
a240ea
- Run the test suite even though we ignore the output
a240ea
a240ea
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a240ea
a240ea
* Wed Aug 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2-1
a240ea
- Update for new upstream release.  Doesn't add any new code, just switches
a240ea
  from a snapshot to a release and bumps version
a240ea
a240ea
* Fri Feb 11 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 22.20101027bzr69
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 
a240ea
6ecbb1
* Wed Oct 27 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 21.20101027bzr69
a240ea
- New snapshot to fix BZ#647059: pygpgme error creating context on F14.
a240ea
a240ea
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.1-20.20090824bzr68
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a240ea
a240ea
* Thu Mar  4 2010 Miloslav Trmač <mitr@redhat.com> - 0.1-19.20090824bzr68
a240ea
- Filter out bogus Provides: _gpgme.so
a240ea
- Drop no longer required references to BuildRoot:
a240ea
- s/%%define/%%global/g
a240ea
a240ea
* Wed Feb  3 2010 Miloslav Trmač <mitr@redhat.com> - 0.1-18.20090824bzr68
a240ea
- Classify pygpgme-examples.patch as Source, not a Patch, to silence rpmlint
a240ea
a240ea
* Wed Oct 28 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-17.20090824bzr68
a240ea
- Include tests and examples as documentation.
a240ea
a240ea
* Mon Aug 24 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-16.20090824bzr68
a240ea
- Rebase to new upstream snapshot
a240ea
- Patches merged upstream
a240ea
- Fixes deprecation warnings on py2.6/py3.0
a240ea
- Remove py2.3 patch -- only needed for EPEL-4
a240ea
a240ea
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.1-15.20090121bzr54
a240ea
- Add a second patch from mitr for symmetric_encryption_support
a240ea
a240ea
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.1-14.20090121bzr54
a240ea
- Patch from mitr for gpgme_ctx_set_engine_info
a240ea
a240ea
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-13.20090121bzr54
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a240ea
a240ea
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-12.20090121bzr54
a240ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a240ea
a240ea
* Thu Jan 22 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-11.20090121bzr54
a240ea
- Add patch to cvs.
a240ea
a240ea
* Wed Jan 21 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-10.20090121bzr54
a240ea
- Update to upstream snapshot.
a240ea
a240ea
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1-9
a240ea
- Rebuild for Python 2.6
a240ea
a240ea
* Fri Feb 8 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-8
a240ea
- Rebuild for new gcc.
a240ea
a240ea
* Thu Jan 3 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-7
a240ea
- Include egg-info files.
a240ea
a240ea
* Fri May 18 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-6
a240ea
- Rebuild to pick up enhancements from gcc on F-8.
a240ea
- Update licensing to conform to new guidelines.
a240ea
a240ea
* Fri May 18 2007 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-5
a240ea
- Rebuild because of a bug in linking to an early version of the python-2.5
a240ea
  package,
a240ea
a240ea
* Mon Oct 23 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-4
a240ea
- Bump and rebuild for python 2.5 on devel.
a240ea
a240ea
* Mon Oct 23 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-3
a240ea
- Add a patch to work under Python 2.3.
a240ea
- Stop shipping the tests as they are useless to the end user.
a240ea
a240ea
* Fri Oct 13 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-2
a240ea
- Change URL to cheeseshop
a240ea
a240ea
* Sun Oct 08 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.1-1
a240ea
- Initial build for Fedora Extras.