mirage-vl.spec 5.1 KB

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