mirage-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: mirage
  3. Version: 0.9.5.1
  4. Release: 1%{?_dist_release}
  5. Summary: A fast and simple image viewer
  6. Summary(ja): 高速でシンプルな画像ビューア
  7. Group: Applications/Graphics
  8. License: GPLv3+
  9. URL: http://mirageiv.berlios.de/
  10. Source0: http://download.berlios.de/mirageiv/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: gettext
  13. BuildRequires: libX11-devel
  14. BuildRequires: python-devel
  15. BuildRequires: desktop-file-utils
  16. Requires: pygtk2 >= 2.12.0
  17. Requires: gtk2 >= 2.10.0
  18. Requires: gnome-python
  19. %description
  20. Mirage is a fast and simple GTK+ image viewer. Because it
  21. depends only on PyGTK, Mirage is ideal for users who wish to
  22. keep their computers lean while still having a clean image viewer.
  23. %description -l ja
  24. Mirage は高速でシンプルな GTK+ の画像ビューアです。
  25. PyGTK だけに依存するので、Mirage はコンピュータをスリムで
  26. 綺麗にしておきたいユーザーにとっては理想的な画像ビューアです。
  27. %prep
  28. %setup -q
  29. # Don't remove rebuilt files!
  30. %{__sed} -i.build -e '/Cleanup/,$d' setup.py
  31. %build
  32. export CFLAGS="$RPM_OPT_FLAGS"
  33. %{__python} setup.py build
  34. %install
  35. %{__rm} -rf $RPM_BUILD_ROOT
  36. %{__mkdir_p} $RPM_BUILD_ROOT
  37. %{__python} setup.py install --skip-build --prefix $RPM_BUILD_ROOT%{_prefix}
  38. # remove document files
  39. %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/%{name}/[A-Z]*
  40. # install desktop file
  41. %{__sed} -i -e 's|%{name}.png|%{name}|' \
  42. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  43. desktop-file-install \
  44. --delete-original \
  45. --remove-category 'Application' \
  46. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  47. --vendor vine \
  48. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  49. # gettext files
  50. %{find_lang} %{name}
  51. %post
  52. %{_bindir}/update-desktop-database &> /dev/null || :
  53. %postun
  54. %{_bindir}/update-desktop-database &> /dev/null || :
  55. %clean
  56. %{__rm} -rf $RPM_BUILD_ROOT
  57. %files -f %{name}.lang
  58. %defattr(-,root,root,-)
  59. %doc CHANGELOG COPYING README TODO TRANSLATORS
  60. %{_bindir}/%{name}
  61. %{python_sitearch}/%{name}.py*
  62. %{python_sitearch}/*.egg-info
  63. %{python_sitearch}/*.so
  64. %{_datadir}/%{name}/
  65. %{_datadir}/pixmaps/*.png
  66. %{_datadir}/applications/*%{name}.desktop
  67. %changelog
  68. * Sun Aug 1 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5.1-1
  69. - new upstream release
  70. * Wed Jul 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5-1
  71. - new upstream release
  72. * Sun Jul 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.4-1
  73. - new upstream release
  74. - changed Requires: pygtk2 >= 2.12.0, gtk2 >= 2.10.0
  75. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.3-2
  76. - rebuilt with python-2.6.4
  77. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.3-1
  78. - initial build for VineSeed
  79. * Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.3-3
  80. - F-11: Mass rebuild
  81. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.3-2
  82. - Rebuild for Python 2.6
  83. * Thu Mar 27 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.3-1
  84. - 0.9.3
  85. * Sat Feb 9 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
  86. - Rebuild against gcc43 (F-9)
  87. * Wed Jan 30 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.2-1
  88. - 0.9.2
  89. * Thu Jan 10 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.1-1
  90. - 0.9.1
  91. * Fri Jan 4 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-3
  92. - Support python egginfo for F-9+
  93. * Wed Dec 5 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-2
  94. - Fix icon path in desktop file for desktop-file-utils 0.14+
  95. * Fri Oct 19 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-1
  96. - 0.9
  97. * Wed Aug 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2.dist.2
  98. - Mass rebuild (buildID or binutils issue)
  99. * Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2.dist.1
  100. - License update
  101. * Fri Jun 15 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2
  102. - Remove Version= entry (on F-8+)
  103. * Fri Jan 19 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-1
  104. - 0.8.3
  105. * Sat Dec 9 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.2-1
  106. - 0.8.2
  107. * Fri Dec 8 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
  108. - Rebuild against new python (only for devel)
  109. * Sat Nov 18 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.1-1
  110. - Initial packaging to import to Fedora Extras.