Blame SPECS/pygpgme.spec

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