poedit-vl.spec 3.5 KB

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