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