poedit-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. %define name poedit
  2. %define version 1.5.4
  3. %define release 1%{?_dist_release}
  4. Summary: Gettext catalogs editor
  5. Summary(ja): Gettext カタログの翻訳用エディタ
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: %{name}-%{version}.tar.gz
  10. Patch0: del_comment_desktop.patch
  11. License: MIT
  12. Group: Applications/Development
  13. URL: http://www.poedit.net/
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: wxGTK-devel >= 2.8.0
  16. BuildRequires: gtkspell-devel >= 2.0, db4-devel
  17. BuildRequires: libboost-devel
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. %description
  20. Poedit is cross-platform gettext catalogs (.po files) editor.
  21. It is built with wxWidgets toolkit and can run on any platform
  22. supported by it (although it was only tested on Unix with GTK+
  23. and Windows).
  24. It aims to provide more convenient approach to editing catalogs
  25. than launching vi and editing the file by hand.
  26. %description -l ja
  27. Poedit はクロス・プラットフォームな gettext カタログ (.po ファイル)
  28. 用のエディタです。Toolkit に wxWidgets を使っており、この Toolkit
  29. がサポートする環境であればどんなプラットフォームでも動作します。
  30. (実際には GTK+ を使った Unix と Windows でしかテストされていませんが)
  31. このプログラムは、vi を使ってファイルを編集するよりも、もっと簡単に
  32. カタログを編集する方法を提供することを目指しています。
  33. %prep
  34. %setup -q
  35. %patch0 -p1
  36. %build
  37. %configure
  38. %{__make} %{?_smp_mflags}
  39. %install
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %makeinstall
  42. # Install the desktop file
  43. desktop-file-install \
  44. --delete-original \
  45. --add-category=GTK \
  46. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  47. $RPM_BUILD_ROOT%{_datadir}/applications/poedit.desktop
  48. %find_lang %{name}
  49. %clean
  50. %{__rm} -rf ${RPM_BUILD_ROOT}
  51. %post
  52. update-desktop-database &> /dev/null ||:
  53. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  54. %postun
  55. update-desktop-database &> /dev/null ||:
  56. if [ $1 -eq 0 ] ; then
  57. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  58. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  59. fi
  60. %posttrans
  61. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  62. %files -f %{name}.lang
  63. %defattr(-,root,root)
  64. %doc AUTHORS COPYING NEWS README TODO
  65. %{_bindir}/poedit
  66. %{_datadir}/applications/poedit.desktop
  67. %{_datadir}/icons/hicolor/*/apps/
  68. %{_datadir}/icons/hicolor/*/mimetypes/
  69. %{_datadir}/pixmaps/poedit.png
  70. #%{_datadir}/poedit/help
  71. %{_datadir}/poedit/icons
  72. %{_mandir}/man1/poedit.1.gz
  73. %changelog
  74. * Sun Oct 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.5.4-1
  75. - new upstream release
  76. - added patch0 to suppress error in installing desktop file
  77. * Fri Aug 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.5.2-2
  78. - new upstream release
  79. - added BuildRequires: desktop-file-utils, libboost-devel
  80. - changed BuildRequires: wxGTK-devel >= 2.6.0 to 2.8.0
  81. - used %%{?_smp_mflags}
  82. - run gtk-update-icon-cache and update-desktop-database in %%post, %%postun
  83. * Sun Jul 01 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.6.1-2
  84. - changed BuildRequires: wx-gtk2-devel >= 2.6.0 to wxGTK-devel >= 2.6.0
  85. * Sat Jun 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6.1-1
  86. - new upstream release
  87. * Wed Apr 01 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.2-1
  88. - new upstream release
  89. * Sun Aug 24 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.9-1
  90. - spec in UTF-8; new versioning policy
  91. * Tue Jan 1 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.9-0vl1
  92. - rebuild for VineSeed.
  93. * Tue Jan 1 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.9-0vl0
  94. - initial build for Vine Linux.
  95. * Tue Jan 1 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.9-0vl0
  96. - initial build for Vine Linux.