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