[521] | 1 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
[5701] | 2 | %define pkg_release 2%{?_dist_release} |
---|
[521] | 3 | |
---|
| 4 | Summary: Python library to access freedesktop.org standards |
---|
| 5 | Summary(ja): freedesktop.org のデスクトップ標準にアクセスする為の Python ライブラリ |
---|
| 6 | Name: pyxdg |
---|
[5524] | 7 | Version: 0.19 |
---|
[521] | 8 | Release: %{pkg_release} |
---|
| 9 | Source0: http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz |
---|
[5524] | 10 | Patch0: fix-BaseDirectory-empty-vars.patch |
---|
[521] | 11 | License: LGPL |
---|
| 12 | Group: Development/Libraries |
---|
| 13 | URL: http://freedesktop.org/Software/pyxdg |
---|
| 14 | |
---|
| 15 | Requires: python |
---|
| 16 | BuildRequires: python, python-devel |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildArch: noarch |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | Pyxdg is a Python library to access freedesktop.org standards. |
---|
| 23 | |
---|
| 24 | %description -l ja |
---|
| 25 | Pyxdg は freedesktop.org のデスクトップ標準にアクセスする為の |
---|
| 26 | Python ライブラリです。 |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | |
---|
| 30 | %setup -q |
---|
[5524] | 31 | %patch0 -p1 |
---|
[521] | 32 | |
---|
| 33 | |
---|
| 34 | %build |
---|
| 35 | %{__python} setup.py build |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %install |
---|
| 39 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 40 | %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT} |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | %files |
---|
| 48 | %defattr(-,root,root) |
---|
| 49 | %doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO |
---|
| 50 | #%{_libdir}/python%{pyver}/site-packages/xdg |
---|
| 51 | #%{_libdir}/python%{pyver}/site-packages/pyxdg-0.17-py2.5.egg-info |
---|
| 52 | %{_prefix}/lib/python%{pyver}/site-packages/xdg |
---|
| 53 | %{_prefix}/lib/python%{pyver}/site-packages/pyxdg-%{version}-py%{pyver}.egg-info |
---|
| 54 | |
---|
| 55 | %changelog |
---|
[5701] | 56 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.19-2 |
---|
| 57 | - rebuild with python-2.7.2 |
---|
| 58 | |
---|
[5524] | 59 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.19-1 |
---|
| 60 | - new upstream release |
---|
| 61 | - added patch0 from Debian |
---|
| 62 | |
---|
[521] | 63 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.17-2 |
---|
| 64 | - rebuilt with python-2.6.4 |
---|
| 65 | - fixed site-packages directory |
---|
| 66 | |
---|
| 67 | * Fri Nov 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.17-1 |
---|
| 68 | - initial build for Vine Linux |
---|