[1057] | 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 |
---|
[1980] | 8 | Release: 2%{?_dist_release} |
---|
[1057] | 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 | %description |
---|
| 20 | GnuPGInterface is a Python module to interface with GnuPG. It |
---|
| 21 | concentrates on interacting with GnuPG via filehandles, providing |
---|
| 22 | access to control GnuPG via versatile and extensible means. |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup -q -n %{pkgname}-%{version} |
---|
| 26 | %patch0 -p1 |
---|
| 27 | %patch1 -p1 |
---|
| 28 | |
---|
| 29 | %build |
---|
| 30 | %{__python} setup.py build |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf $RPM_BUILD_ROOT |
---|
| 34 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
| 35 | |
---|
| 36 | # Correct some permissions |
---|
| 37 | chmod 644 ChangeLog COPYING NEWS THANKS |
---|
| 38 | |
---|
| 39 | %clean |
---|
| 40 | rm -rf $RPM_BUILD_ROOT |
---|
| 41 | |
---|
| 42 | %files |
---|
| 43 | %defattr(-,root,root) |
---|
| 44 | %doc ChangeLog COPYING NEWS THANKS |
---|
| 45 | %{python_sitelib}/%{pkgname}* |
---|
| 46 | |
---|
| 47 | %changelog |
---|
[1980] | 48 | * Sun Oct 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.4-2 |
---|
| 49 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 50 | |
---|
[1057] | 51 | * Fri May 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.2-1 |
---|
| 52 | - initial build for VineSeed |
---|
| 53 | |
---|
| 54 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6 |
---|
| 55 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 56 | |
---|
| 57 | * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 0.3.2-5 |
---|
| 58 | - Rebuild against rpm 4.6 |
---|
| 59 | |
---|
| 60 | * Fri Dec 5 2008 Jeremy Katz <katzj@redhat.com> - 0.3.2-4 |
---|
| 61 | - Rebuild for python 2.6 |
---|
| 62 | |
---|
| 63 | * Tue Jan 08 2008 Robert Scheck <robert@fedoraproject.org> 0.3.2-3 |
---|
| 64 | - Rebuild (and some minor spec file tweaks) |
---|
| 65 | |
---|
| 66 | * Mon Sep 03 2007 Robert Scheck <robert@fedoraproject.org> 0.3.2-2 |
---|
| 67 | - Updated source URL to match with the guidelines (#265381) |
---|
| 68 | - Use get_python_lib() macro according to the policy (#265381) |
---|
| 69 | |
---|
| 70 | * Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 0.3.2-1 |
---|
| 71 | - Upgrade to 0.3.2 |
---|
| 72 | - Initial spec file for Fedora and Red Hat Enterprise Linux |
---|