pyxdg-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  2. Name: pyxdg
  3. Summary: Python library to access freedesktop.org standards
  4. Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ
  5. Version: 0.25
  6. Release: 2%{?_dist_release}
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. URL: http://freedesktop.org/Software/pyxdg
  10. Source0: http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz
  11. # https://bugs.freedesktop.org/show_bug.cgi?id=61817
  12. Patch0: pyxdg-0.25-find-first-mimetype-match.patch
  13. # https://bugs.freedesktop.org/show_bug.cgi?id=73878
  14. Patch1: pyxdg-0.25-CVE-2014-1624.patch
  15. BuildArch: noarch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: python
  18. BuildRequires: python-devel
  19. BuildRequires: python3
  20. BuildRequires: python3-devel
  21. BuildRequires: hicolor-icon-theme
  22. BuildRequires: shared-mime-info
  23. BuildRequires: python-rpm-macros
  24. BuildRequires: python3-rpm-macros
  25. Requires: python
  26. %description
  27. PyXDG is a Python library to access freedesktop.org standards.
  28. %description -l ja
  29. PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
  30. Python ライブラリです。
  31. %package -n python3-pyxdg
  32. Summary: Python library to access freedesktop.org standards
  33. Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ
  34. Requires: python3
  35. %description -n python3-pyxdg
  36. PyXDG is a Python library to access freedesktop.org standards.
  37. %description -n python3-pyxdg -l ja
  38. PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
  39. Python ライブラリです。
  40. %prep
  41. %setup -q
  42. %patch0 -p1 -b .pngfix
  43. %patch1 -p1 -b .CVE-2014-1624
  44. %build
  45. %py_build
  46. %py3_build
  47. %install
  48. %{__rm} -rf %{buildroot}
  49. %py3_install
  50. %py_install
  51. %clean
  52. %{__rm} -rf ${RPM_BUILD_ROOT}
  53. %files
  54. %defattr(-,root,root)
  55. %doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO
  56. %license COPYING
  57. %doc AUTHORS ChangeLog README TODO
  58. %{python_sitelib}/xdg
  59. %{python_sitelib}/pyxdg-*.egg-info
  60. %files -n python3-pyxdg
  61. %license COPYING
  62. %doc AUTHORS ChangeLog README TODO
  63. %{python3_sitelib}/xdg
  64. %{python3_sitelib}/pyxdg-*.egg-info
  65. %changelog
  66. * Sun Dec 17 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-2
  67. - added Patch0,1.
  68. - added a sub-package for python3.
  69. - made to use python{,3}-rpm-macros.
  70. * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1
  71. - updated to 0.25
  72. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.19-2
  73. - rebuild with python-2.7.2
  74. * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.19-1
  75. - new upstream release
  76. - added patch0 from Debian
  77. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.17-2
  78. - rebuilt with python-2.6.4
  79. - fixed site-packages directory
  80. * Fri Nov 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.17-1
  81. - initial build for Vine Linux