1 | Name: xfce4-dict |
---|
2 | Summary: Dictionary services for Xfce |
---|
3 | Summary(ja): Xfce の辞書サービス |
---|
4 | Version: 0.6.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPLv2+ |
---|
8 | Group: User Interface/Desktops |
---|
9 | URL: http://goodies.xfce.org/projects/applications/%{name} |
---|
10 | |
---|
11 | Source0: http://archive.xfce.org/src/apps/%{name}/0.6/%{name}-%{version}.tar.bz2 |
---|
12 | Source1: xfce4-dict-autogen.sh |
---|
13 | |
---|
14 | Patch0: xfce4-dict-0.6.0-git20120605.patch |
---|
15 | Patch1: xfce4-dict-0.6.0-ui.patch |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | BuildRequires: desktop-file-utils |
---|
20 | BuildRequires: gtk2-devel >= 2.20.0 |
---|
21 | BuildRequires: libxfce4ui-devel >= 4.10.0 |
---|
22 | BuildRequires: libxfce4util-devel >= 4.10.0 |
---|
23 | BuildRequires: xfce4-panel-devel >= 4.10.0 |
---|
24 | BuildRequires: libX11-devel |
---|
25 | BuildRequires: xfce4-dev-tools |
---|
26 | |
---|
27 | Requires(post,postun): desktop-file-utils |
---|
28 | |
---|
29 | Vendor: Project Vine |
---|
30 | Distribution: Vine Linux |
---|
31 | Packager: Takemikaduchi |
---|
32 | |
---|
33 | |
---|
34 | %description |
---|
35 | This program allows you to search different kinds of dictionary services |
---|
36 | for words or phrases and shows you the result. |
---|
37 | Currently you can query a "Dict" server(RFC 2229), any online dictionary |
---|
38 | service by opening a web browser or search for words using a spell check |
---|
39 | program like aspell, ispell or enchant. |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q |
---|
45 | %patch0 -p1 -b .git |
---|
46 | %patch1 -p1 -b .ui |
---|
47 | |
---|
48 | %build |
---|
49 | cp %{SOURCE1} autogen.sh |
---|
50 | NOCONFIGURE=1 ./autogen.sh |
---|
51 | %configure --disable-static |
---|
52 | make %{?_smp_mflags} |
---|
53 | |
---|
54 | |
---|
55 | %install |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
58 | |
---|
59 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
60 | |
---|
61 | desktop-file-install \ |
---|
62 | --add-category="X-XFCE" \ |
---|
63 | --delete-original \ |
---|
64 | --dir=%{buildroot}%{_datadir}/applications \ |
---|
65 | ${RPM_BUILD_ROOT}%{_datadir}/applications/xfce4-dict.desktop |
---|
66 | |
---|
67 | %find_lang %{name}-plugin |
---|
68 | |
---|
69 | %clean |
---|
70 | rm -rf $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | |
---|
73 | %post |
---|
74 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
75 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
76 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
77 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
78 | |
---|
79 | %postun |
---|
80 | if [ $1 -eq 0 ]; then |
---|
81 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
82 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
83 | fi |
---|
84 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
85 | |
---|
86 | |
---|
87 | %files -f %{name}-plugin.lang |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %doc AUTHORS ChangeLog NEWS COPYING |
---|
90 | %{_bindir}/xfce4-dict |
---|
91 | %{_libdir}/xfce4/panel/plugins/libxfce4dict.so |
---|
92 | %{_datadir}/applications/xfce4-dict.desktop |
---|
93 | %{_datadir}/icons/hicolor/*/*/* |
---|
94 | %{_datadir}/xfce4/panel/plugins/xfce4-dict-plugin.desktop |
---|
95 | %{_mandir}/man1/xfce4-dict.1.gz |
---|
96 | |
---|
97 | %changelog |
---|
98 | * Sat Jun 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.6.0-1 |
---|
99 | - initial build for Vine Linux |
---|
100 | |
---|