mirage-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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.2
  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. * Mon Feb 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5.2-1
  69. - new upstream release
  70. * Sun Aug 1 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5.1-1
  71. - new upstream release
  72. * Wed Jul 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5-1
  73. - new upstream release
  74. * Sun Jul 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.4-1
  75. - new upstream release
  76. - changed Requires: pygtk2 >= 2.12.0, gtk2 >= 2.10.0
  77. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.3-2
  78. - rebuilt with python-2.6.4
  79. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.3-1
  80. - initial build for VineSeed
  81. * Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.3-3
  82. - F-11: Mass rebuild
  83. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.3-2
  84. - Rebuild for Python 2.6
  85. * Thu Mar 27 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.3-1
  86. - 0.9.3
  87. * Sat Feb 9 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
  88. - Rebuild against gcc43 (F-9)
  89. * Wed Jan 30 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.2-1
  90. - 0.9.2
  91. * Thu Jan 10 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9.1-1
  92. - 0.9.1
  93. * Fri Jan 4 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-3
  94. - Support python egginfo for F-9+
  95. * Wed Dec 5 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-2
  96. - Fix icon path in desktop file for desktop-file-utils 0.14+
  97. * Fri Oct 19 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.9-1
  98. - 0.9
  99. * Wed Aug 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2.dist.2
  100. - Mass rebuild (buildID or binutils issue)
  101. * Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2.dist.1
  102. - License update
  103. * Fri Jun 15 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-2
  104. - Remove Version= entry (on F-8+)
  105. * Fri Jan 19 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.3-1
  106. - 0.8.3
  107. * Sat Dec 9 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.2-1
  108. - 0.8.2
  109. * Fri Dec 8 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
  110. - Rebuild against new python (only for devel)
  111. * Sat Nov 18 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.8.1-1
  112. - Initial packaging to import to Fedora Extras.