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