1 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
2 | |
---|
3 | Name: pyxdg |
---|
4 | Summary: Python library to access freedesktop.org standards |
---|
5 | Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ |
---|
6 | Version: 0.25 |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | |
---|
9 | License: LGPL |
---|
10 | Group: System Environment/Libraries |
---|
11 | URL: http://freedesktop.org/Software/pyxdg |
---|
12 | |
---|
13 | Source0: http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz |
---|
14 | |
---|
15 | # https://bugs.freedesktop.org/show_bug.cgi?id=61817 |
---|
16 | Patch0: pyxdg-0.25-find-first-mimetype-match.patch |
---|
17 | # https://bugs.freedesktop.org/show_bug.cgi?id=73878 |
---|
18 | Patch1: pyxdg-0.25-CVE-2014-1624.patch |
---|
19 | |
---|
20 | BuildArch: noarch |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | BuildRequires: python |
---|
23 | BuildRequires: python-devel |
---|
24 | BuildRequires: python3 |
---|
25 | BuildRequires: python3-devel |
---|
26 | BuildRequires: hicolor-icon-theme |
---|
27 | BuildRequires: shared-mime-info |
---|
28 | BuildRequires: python-rpm-macros |
---|
29 | BuildRequires: python3-rpm-macros |
---|
30 | Requires: python |
---|
31 | |
---|
32 | |
---|
33 | %description |
---|
34 | PyXDG is a Python library to access freedesktop.org standards. |
---|
35 | |
---|
36 | %description -l ja |
---|
37 | PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の |
---|
38 | Python ライブラリです。 |
---|
39 | |
---|
40 | %package -n python3-pyxdg |
---|
41 | Summary: Python library to access freedesktop.org standards |
---|
42 | Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ |
---|
43 | Requires: python3 |
---|
44 | |
---|
45 | %description -n python3-pyxdg |
---|
46 | PyXDG is a Python library to access freedesktop.org standards. |
---|
47 | |
---|
48 | %description -n python3-pyxdg -l ja |
---|
49 | PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の |
---|
50 | Python ライブラリです。 |
---|
51 | |
---|
52 | |
---|
53 | %prep |
---|
54 | %setup -q |
---|
55 | %patch0 -p1 -b .pngfix |
---|
56 | %patch1 -p1 -b .CVE-2014-1624 |
---|
57 | |
---|
58 | |
---|
59 | %build |
---|
60 | %py_build |
---|
61 | %py3_build |
---|
62 | |
---|
63 | |
---|
64 | %install |
---|
65 | %{__rm} -rf %{buildroot} |
---|
66 | %py3_install |
---|
67 | %py_install |
---|
68 | |
---|
69 | |
---|
70 | %clean |
---|
71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | |
---|
74 | %files |
---|
75 | %defattr(-,root,root) |
---|
76 | %doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO |
---|
77 | %license COPYING |
---|
78 | %doc AUTHORS ChangeLog README TODO |
---|
79 | %{python_sitelib}/xdg |
---|
80 | %{python_sitelib}/pyxdg-*.egg-info |
---|
81 | |
---|
82 | %files -n python3-pyxdg |
---|
83 | %license COPYING |
---|
84 | %doc AUTHORS ChangeLog README TODO |
---|
85 | %{python3_sitelib}/xdg |
---|
86 | %{python3_sitelib}/pyxdg-*.egg-info |
---|
87 | |
---|
88 | %changelog |
---|
89 | * Sun Dec 17 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-2 |
---|
90 | - added Patch0,1. |
---|
91 | - added a sub-package for python3. |
---|
92 | - made to use python{,3}-rpm-macros. |
---|
93 | |
---|
94 | * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1 |
---|
95 | - updated to 0.25 |
---|
96 | |
---|
97 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.19-2 |
---|
98 | - rebuild with python-2.7.2 |
---|
99 | |
---|
100 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.19-1 |
---|
101 | - new upstream release |
---|
102 | - added patch0 from Debian |
---|
103 | |
---|
104 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.17-2 |
---|
105 | - rebuilt with python-2.6.4 |
---|
106 | - fixed site-packages directory |
---|
107 | |
---|
108 | * Fri Nov 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.17-1 |
---|
109 | - initial build for Vine Linux |
---|