[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 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 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 | |
---|
| 15 | BuildArch: noarch |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: python |
---|
| 18 | BuildRequires: python-devel |
---|
[521] | 19 | Requires: python |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | %description |
---|
[8998] | 23 | PyXDG is a Python library to access freedesktop.org standards. |
---|
[521] | 24 | |
---|
| 25 | %description -l ja |
---|
[8998] | 26 | PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の |
---|
[521] | 27 | Python ライブラリです。 |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | %{__python} setup.py build |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 39 | %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT} |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %clean |
---|
| 43 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %files |
---|
| 47 | %defattr(-,root,root) |
---|
| 48 | %doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO |
---|
| 49 | #%{_libdir}/python%{pyver}/site-packages/xdg |
---|
| 50 | #%{_libdir}/python%{pyver}/site-packages/pyxdg-0.17-py2.5.egg-info |
---|
| 51 | %{_prefix}/lib/python%{pyver}/site-packages/xdg |
---|
| 52 | %{_prefix}/lib/python%{pyver}/site-packages/pyxdg-%{version}-py%{pyver}.egg-info |
---|
| 53 | |
---|
| 54 | %changelog |
---|
[8998] | 55 | * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1 |
---|
| 56 | - updated to 0.25 |
---|
| 57 | |
---|
[5701] | 58 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.19-2 |
---|
| 59 | - rebuild with python-2.7.2 |
---|
| 60 | |
---|
[5524] | 61 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.19-1 |
---|
| 62 | - new upstream release |
---|
| 63 | - added patch0 from Debian |
---|
| 64 | |
---|
[521] | 65 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.17-2 |
---|
| 66 | - rebuilt with python-2.6.4 |
---|
| 67 | - fixed site-packages directory |
---|
| 68 | |
---|
| 69 | * Fri Nov 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.17-1 |
---|
| 70 | - initial build for Vine Linux |
---|