mirage-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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.3
  4. Release: 2%{?_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.6.0
  17. Requires: gtk2 >= 2.6.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. #%if 0%{?fedora} >= 9
  63. %{python_sitearch}/*.egg-info
  64. #%endif
  65. %{python_sitearch}/*.so
  66. %{_datadir}/%{name}/
  67. %{_datadir}/pixmaps/*.png
  68. %{_datadir}/applications/*%{name}.desktop
  69. %changelog
  70. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.3-2
  71. - rebuilt with python-2.6.4
  72. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.3-1
  73. - initial build for VineSeed
  74. * Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.3-3
  75. - F-11: Mass rebuild
  76. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.3-2
  77. - Rebuild for Python 2.6
  78. * Thu Mar 27 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.3-1
  79. - 0.9.3
  80. * Sat Feb 9 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
  81. - Rebuild against gcc43 (F-9)
  82. * Wed Jan 30 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.2-1
  83. - 0.9.2
  84. * Thu Jan 10 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.1-1
  85. - 0.9.1
  86. * Fri Jan 4 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-3
  87. - Support python egginfo for F-9+
  88. * Wed Dec 5 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-2
  89. - Fix icon path in desktop file for desktop-file-utils 0.14+
  90. * Fri Oct 19 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-1
  91. - 0.9
  92. * Wed Aug 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2.dist.2
  93. - Mass rebuild (buildID or binutils issue)
  94. * Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2.dist.1
  95. - License update
  96. * Fri Jun 15 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2
  97. - Remove Version= entry (on F-8+)
  98. * Fri Jan 19 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-1
  99. - 0.8.3
  100. * Sat Dec 9 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.2-1
  101. - 0.8.2
  102. * Fri Dec 8 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
  103. - Rebuild against new python (only for devel)
  104. * Sat Nov 18 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.1-1
  105. - Initial packaging to import to Fedora Extras.