[521] | 1 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
| 2 | |
---|
[8998] | 3 | Name: pyxdg |
---|
[521] | 4 | Summary: Python library to access freedesktop.org standards |
---|
[8998] | 5 | Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ |
---|
| 6 | Version: 0.25 |
---|
[11274] | 7 | Release: 2%{?_dist_release} |
---|
[8998] | 8 | |
---|
[521] | 9 | License: LGPL |
---|
[8998] | 10 | Group: System Environment/Libraries |
---|
[521] | 11 | URL: http://freedesktop.org/Software/pyxdg |
---|
| 12 | |
---|
[8998] | 13 | Source0: http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz |
---|
| 14 | |
---|
[11274] | 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 | |
---|
[8998] | 20 | BuildArch: noarch |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | BuildRequires: python |
---|
[11274] | 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 |
---|
[521] | 30 | Requires: python |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %description |
---|
[8998] | 34 | PyXDG is a Python library to access freedesktop.org standards. |
---|
[521] | 35 | |
---|
| 36 | %description -l ja |
---|
[8998] | 37 | PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の |
---|
[521] | 38 | Python ライブラリです。 |
---|
| 39 | |
---|
[11274] | 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 | |
---|
[521] | 53 | %prep |
---|
| 54 | %setup -q |
---|
[11274] | 55 | %patch0 -p1 -b .pngfix |
---|
| 56 | %patch1 -p1 -b .CVE-2014-1624 |
---|
[521] | 57 | |
---|
| 58 | |
---|
| 59 | %build |
---|
[11274] | 60 | %py_build |
---|
| 61 | %py3_build |
---|
[521] | 62 | |
---|
| 63 | |
---|
| 64 | %install |
---|
[11274] | 65 | %{__rm} -rf %{buildroot} |
---|
| 66 | %py3_install |
---|
| 67 | %py_install |
---|
[521] | 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 |
---|
[11274] | 77 | %license COPYING |
---|
| 78 | %doc AUTHORS ChangeLog README TODO |
---|
| 79 | %{python_sitelib}/xdg |
---|
| 80 | %{python_sitelib}/pyxdg-*.egg-info |
---|
[521] | 81 | |
---|
[11274] | 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 | |
---|
[521] | 88 | %changelog |
---|
[11274] | 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 | |
---|
[8998] | 94 | * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1 |
---|
| 95 | - updated to 0.25 |
---|
| 96 | |
---|
[5701] | 97 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.19-2 |
---|
| 98 | - rebuild with python-2.7.2 |
---|
| 99 | |
---|
[5524] | 100 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.19-1 |
---|
| 101 | - new upstream release |
---|
| 102 | - added patch0 from Debian |
---|
| 103 | |
---|
[521] | 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 |
---|