mirage-vl.spec 4.9 KB

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