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