python-GnuPGInterface-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %define pkgname GnuPGInterface
  3. Summary: A Python module to interface with GnuPG
  4. Summary(ja): GnuPG へのインターフェイスとなる Python モジュール
  5. Name: python-GnuPGInterface
  6. Version: 0.3.2
  7. Release: 2%{?_dist_release}
  8. License: LGPLv2+
  9. Group: Development/Languages
  10. URL: http://py-gnupg.sourceforge.net/
  11. Source: http://downloads.sourceforge.net/py-gnupg/%{pkgname}-%{version}.tar.gz
  12. Patch0: 01_print_exit_status_correctly.patch
  13. Patch1: 02_setup_license.patch
  14. BuildRequires: python-devel
  15. BuildArch: noarch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. %description
  18. GnuPGInterface is a Python module to interface with GnuPG. It
  19. concentrates on interacting with GnuPG via filehandles, providing
  20. access to control GnuPG via versatile and extensible means.
  21. %prep
  22. %setup -q -n %{pkgname}-%{version}
  23. %patch0 -p1
  24. %patch1 -p1
  25. %build
  26. %{__python} setup.py build
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  30. # Correct some permissions
  31. chmod 644 ChangeLog COPYING NEWS THANKS
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root)
  36. %doc ChangeLog COPYING NEWS THANKS
  37. %{python_sitelib}/%{pkgname}*
  38. %changelog
  39. * Sun Oct 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.4-2
  40. - rebuilt with rpm-4.8.1 for pkg-config
  41. * Fri May 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.2-1
  42. - initial build for VineSeed
  43. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6
  44. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  45. * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 0.3.2-5
  46. - Rebuild against rpm 4.6
  47. * Fri Dec 5 2008 Jeremy Katz <katzj@redhat.com> - 0.3.2-4
  48. - Rebuild for python 2.6
  49. * Tue Jan 08 2008 Robert Scheck <robert@fedoraproject.org> 0.3.2-3
  50. - Rebuild (and some minor spec file tweaks)
  51. * Mon Sep 03 2007 Robert Scheck <robert@fedoraproject.org> 0.3.2-2
  52. - Updated source URL to match with the guidelines (#265381)
  53. - Use get_python_lib() macro according to the policy (#265381)
  54. * Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 0.3.2-1
  55. - Upgrade to 0.3.2
  56. - Initial spec file for Fedora and Red Hat Enterprise Linux