pyxdg-vl.spec 1.5 KB

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