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