From a240eaa762f3d32b3a4407732e051efee716cd4d Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 18 2013 07:24:56 +0000 Subject: import pygpgme-0.3-6.el7.src.rpm --- diff --git a/.pygpgme.metadata b/.pygpgme.metadata new file mode 100644 index 0000000..433812b --- /dev/null +++ b/.pygpgme.metadata @@ -0,0 +1 @@ +f8df35bd2705ac2e1642209fba732e6a42d03fd4 SOURCES/pygpgme-0.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/pygpgme.spec b/SPECS/pygpgme.spec new file mode 100644 index 0000000..9b74d71 --- /dev/null +++ b/SPECS/pygpgme.spec @@ -0,0 +1,211 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif +%if 0%{?rhel} && 0%{?rhel} <= 5 +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif + +Name: pygpgme +Version: 0.3 +Release: 6%{?dist} +Summary: Python module for working with OpenPGP messages + +Group: Development/Languages +License: LGPLv2+ +URL: http://cheeseshop.python.org/pypi/pygpgme +# pygpgme is being developed for Ubuntu and built for Ubuntu out of +# launchpad's source control. if we need to create a snapshot, here's how: +# +# Steps to create snapshot: +# bzr branch lp:pygpgme -r69 +# cd pygpgme +# 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 +BuildRequires: python2-devel +BuildRequires: gpgme-devel + +%if 0%{?with_python3} +BuildRequires: python3-devel +%endif + +%filter_provides_in %{python_sitearch}/gpgme/_gpgme.so +%filter_setup + +%description +PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt +files using the OpenPGP format. It is built on top of GNU Privacy Guard and +the GPGME library. + +%if 0%{?with_python3} +%package -n python3-pygpgme +Summary: Python3 module for working with OpenPGP messages +Group: Development/Languages + +%description -n python3-pygpgme +PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt +files using the OpenPGP format. It is built on top of GNU Privacy Guard and +the GPGME library. This package installs the module for use with python3. +%endif + +%prep +%setup -q + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + +%build +CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif # with_python3 + +%install +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/gpgme/_gpgme.so + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT +chmod 0755 $RPM_BUILD_ROOT%{python3_sitearch}/gpgme/*.so +popd +%endif # with_python3 + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +### Can't run the tests unconditionally because they depend on importing a private key. +# gpg2 on which our gpgme library depends does not import private keys so this +# won't work. The issue in the real world is not so big as we don't +# manipulate private keys outside of a keyring that often. +# We'll run this and ignore errors so we can manually look for problems more easily +# Use the installed gpgme because it has the built compiled module +mv gpgme gpgme.bak +ln -s $RPM_BUILD_ROOT%{python_sitearch}/gpgme . +make check || : +find tests -name '*.pyc' -delete + +%files +%defattr(-,root,root,-) +%doc README PKG-INFO examples tests +%{python_sitearch}/* + +%if 0%{?with_python3} +%files -n python3-pygpgme +%defattr(-,root,root,-) +%doc README PKG-INFO examples tests +%{python3_sitearch}/* +%endif # with_python3 + +%changelog +* Thu Feb 14 2013 Fedora Release Engineering - 0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Nov 28 2012 Miloslav Trmač - 0.3-5 +- Disable -fstrict-aliasing (see http://www.python.org/dev/peps/pep-3123/ for + rationale) +- Don't ship .pyc files from the test suite in %%doc, to avoid multilib + conflicts + +* Fri Nov 23 2012 Miloslav Trmač - 0.3-4 +- Don't build the python3 package on RHEL + +* Fri Aug 03 2012 David Malcolm - 0.3-3 +- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 + +* Sat Jul 21 2012 Fedora Release Engineering - 0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue May 15 2012 Toshio Kuratomi - 0.3-1 +- New upstream release +- Build a python3 subpackage +- Run the test suite even though we ignore the output + +* Sat Jan 14 2012 Fedora Release Engineering - 0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Aug 17 2011 Toshio Kuratomi - 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 - 22.20101027bzr69 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Oct 27 2010 Toshio Kuratomi - 21.20101027bzr69 +- New snapshot to fix BZ#647059: pygpgme error creating context on F14. + +* Wed Jul 21 2010 David Malcolm - 0.1-20.20090824bzr68 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Thu Mar 4 2010 Miloslav Trmač - 0.1-19.20090824bzr68 +- Filter out bogus Provides: _gpgme.so +- Drop no longer required references to BuildRoot: +- s/%%define/%%global/g + +* Wed Feb 3 2010 Miloslav Trmač - 0.1-18.20090824bzr68 +- Classify pygpgme-examples.patch as Source, not a Patch, to silence rpmlint + +* Wed Oct 28 2009 Toshio Kuratomi - 0.1-17.20090824bzr68 +- Include tests and examples as documentation. + +* Mon Aug 24 2009 Toshio Kuratomi - 0.1-16.20090824bzr68 +- Rebase to new upstream snapshot +- Patches merged upstream +- Fixes deprecation warnings on py2.6/py3.0 +- Remove py2.3 patch -- only needed for EPEL-4 + +* Tue Jul 28 2009 Jesse Keating - 0.1-15.20090121bzr54 +- Add a second patch from mitr for symmetric_encryption_support + +* Tue Jul 28 2009 Jesse Keating - 0.1-14.20090121bzr54 +- Patch from mitr for gpgme_ctx_set_engine_info + +* Sun Jul 26 2009 Fedora Release Engineering - 0.1-13.20090121bzr54 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.1-12.20090121bzr54 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jan 22 2009 Toshio Kuratomi - 0.1-11.20090121bzr54 +- Add patch to cvs. + +* Wed Jan 21 2009 Toshio Kuratomi - 0.1-10.20090121bzr54 +- Update to upstream snapshot. + +* Fri Nov 28 2008 Ignacio Vazquez-Abrams - 0.1-9 +- Rebuild for Python 2.6 + +* Fri Feb 8 2008 Toshio Kuratomi - 0.1-8 +- Rebuild for new gcc. + +* Thu Jan 3 2008 Toshio Kuratomi - 0.1-7 +- Include egg-info files. + +* Fri May 18 2007 Toshio Kuratomi - 0.1-6 +- Rebuild to pick up enhancements from gcc on F-8. +- Update licensing to conform to new guidelines. + +* Fri May 18 2007 Toshio Kuratomi - 0.1-5 +- Rebuild because of a bug in linking to an early version of the python-2.5 + package, + +* Mon Oct 23 2006 Toshio Kuratomi - 0.1-4 +- Bump and rebuild for python 2.5 on devel. + +* Mon Oct 23 2006 Toshio Kuratomi - 0.1-3 +- Add a patch to work under Python 2.3. +- Stop shipping the tests as they are useless to the end user. + +* Fri Oct 13 2006 Toshio Kuratomi - 0.1-2 +- Change URL to cheeseshop + +* Sun Oct 08 2006 Toshio Kuratomi - 0.1-1 +- Initial build for Fedora Extras.