source: projects/specs/trunk/x/xfce4-dict/xfce4-dict-vl.spec @ 6299

Revision 6299, 2.7 KB checked in by Takemikaduchi, 12 years ago (diff)

libburn, libisofs, xorg-x11-drv-ati: new upstream release
others: new package

Line 
1Name:           xfce4-dict
2Summary:        Dictionary services for Xfce
3Summary(ja):    Xfce の辞書サービス
4Version:        0.6.0
5Release:        1%{?_dist_release}
6
7License:        GPLv2+
8Group:          User Interface/Desktops
9URL:            http://goodies.xfce.org/projects/applications/%{name}
10
11Source0:        http://archive.xfce.org/src/apps/%{name}/0.6/%{name}-%{version}.tar.bz2
12Source1:        xfce4-dict-autogen.sh
13
14Patch0:         xfce4-dict-0.6.0-git20120605.patch
15Patch1:         xfce4-dict-0.6.0-ui.patch
16
17BuildRoot:     %{_tmppath}/%{name}-%{version}-root
18
19BuildRequires: desktop-file-utils
20BuildRequires: gtk2-devel >= 2.20.0
21BuildRequires: libxfce4ui-devel >= 4.10.0
22BuildRequires: libxfce4util-devel >= 4.10.0
23BuildRequires: xfce4-panel-devel >= 4.10.0
24BuildRequires: libX11-devel
25BuildRequires: xfce4-dev-tools
26
27Requires(post,postun):  desktop-file-utils
28
29Vendor:         Project Vine
30Distribution:   Vine Linux
31Packager:       Takemikaduchi
32
33
34%description
35This program allows you to search different kinds of dictionary services
36for words or phrases and shows you the result.
37Currently you can query a "Dict" server(RFC 2229), any online dictionary
38service by opening a web browser or search for words using a spell check
39program 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
49cp %{SOURCE1} autogen.sh
50NOCONFIGURE=1 ./autogen.sh
51%configure --disable-static
52make %{?_smp_mflags}
53
54
55%install
56rm -rf $RPM_BUILD_ROOT
57make install DESTDIR=$RPM_BUILD_ROOT
58
59find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
60
61desktop-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
70rm -rf $RPM_BUILD_ROOT
71
72
73%post
74touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
75gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
76update-desktop-database %{_datadir}/applications &> /dev/null || :
77update-desktop-database %{_datadir}/applications &> /dev/null || :
78
79%postun
80if [ $1 -eq 0 ]; then
81    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
82    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
83fi
84update-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
Note: See TracBrowser for help on using the repository browser.