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: 3%{?_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 | %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 |
---|
48 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.3.4-3 |
---|
49 | - rebuild with python-2.7.2 |
---|
50 | |
---|
51 | * Sun Oct 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.4-2 |
---|
52 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
53 | |
---|
54 | * Fri May 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.2-1 |
---|
55 | - initial build for VineSeed |
---|
56 | |
---|
57 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6 |
---|
58 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
59 | |
---|
60 | * Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 0.3.2-5 |
---|
61 | - Rebuild against rpm 4.6 |
---|
62 | |
---|
63 | * Fri Dec 5 2008 Jeremy Katz <katzj@redhat.com> - 0.3.2-4 |
---|
64 | - Rebuild for python 2.6 |
---|
65 | |
---|
66 | * Tue Jan 08 2008 Robert Scheck <robert@fedoraproject.org> 0.3.2-3 |
---|
67 | - Rebuild (and some minor spec file tweaks) |
---|
68 | |
---|
69 | * Mon Sep 03 2007 Robert Scheck <robert@fedoraproject.org> 0.3.2-2 |
---|
70 | - Updated source URL to match with the guidelines (#265381) |
---|
71 | - Use get_python_lib() macro according to the policy (#265381) |
---|
72 | |
---|
73 | * Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 0.3.2-1 |
---|
74 | - Upgrade to 0.3.2 |
---|
75 | - Initial spec file for Fedora and Red Hat Enterprise Linux |
---|