source: projects/specs/trunk/p/poedit/poedit-vl.spec @ 6935

Revision 6935, 3.7 KB checked in by kudoh, 12 years ago (diff)

trunk/T/TrueType-roboto/TrueType-roboto-vl.spec

Line 
1%define name    poedit
2%define version 1.5.4
3%define release 1%{?_dist_release}
4
5Summary:        Gettext catalogs editor
6Summary(ja):    Gettext カタログの翻訳用エディタ
7Name:           %{name}
8Version:        %{version}
9Release:        %{release}
10Source0:        %{name}-%{version}.tar.gz
11Patch0: del_comment_desktop.patch
12
13License:        MIT
14Group:          Applications/Development
15URL:            http://www.poedit.net/
16
17BuildRequires: desktop-file-utils
18BuildRequires: wxGTK-devel >= 2.8.0
19BuildRequires: gtkspell-devel >= 2.0, db4-devel
20BuildRequires: libboost-devel
21BuildRoot:      %{_tmppath}/%{name}-%{version}-root
22
23
24%description
25Poedit is cross-platform gettext catalogs (.po files) editor.
26It is built with wxWidgets toolkit and can run on any platform
27supported by it (although it was only tested on Unix with GTK+
28and Windows).
29It aims to provide more convenient approach to editing catalogs
30than launching vi and editing the file by hand.
31
32%description -l ja
33Poedit はクロス・プラットフォームな 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
56desktop-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
69update-desktop-database &> /dev/null ||:
70touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
71
72
73%postun
74update-desktop-database &> /dev/null ||:
75if [ $1 -eq 0 ] ; then
76    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
77    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
78fi
79
80
81%posttrans
82gtk-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.
Note: See TracBrowser for help on using the repository browser.