]> git.pld-linux.org Git - packages/dict-vietanh.git/blob - dict-vietanh.spec
f02474552dd1d5fc096c40dbb05aa66fe31dda73
[packages/dict-vietanh.git] / dict-vietanh.spec
1 %define         dictname vietanh
2 Summary:        Vietnamese-English dictionary for dictd
3 Summary(pl):    S³ownik wietnamsko-angielski dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.0
6 Release:        1
7 License:        GPL (?)
8 Group:          Applications/Dictionaries
9 Source0:        http://vietlug.sourceforge.net/download/emacs/%{dictname}.index
10 Source1:        http://vietlug.sourceforge.net/download/emacs/%{dictname}.telex.dz
11 URL:            http://vietlug.sourceforge.net/
12 Requires:       dictd
13 Requires:       %{_sysconfdir}/dictd
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Vietnamese-English dictionary for dictd.
18
19 %description -l pl
20 S³ownik wietnamsko-angielski dla dictd.
21
22 %prep
23
24 %install
25 rm -rf $RPM_BUILD_ROOT
26 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
27
28 install %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/dictd
29 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/dictd/%{dictname}.dict.dz
30
31 dictprefix=%{_datadir}/dictd/%{dictname}
32 echo "# Vietnamese-English dictionary
33 database %{dictname} {
34         data  \"$dictprefix.dict.dz\"
35         index \"$dictprefix.index\"
36 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post
42 if [ -f /var/lock/subsys/dictd ]; then
43         /etc/rc.d/init.d/dictd restart 1>&2
44 fi
45
46 %postun
47 if [ -f /var/lock/subsys/dictd ]; then
48         /etc/rc.d/init.d/dictd restart 1>&2 || true
49 fi
50
51 %files
52 %defattr(644,root,root,755)
53 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
54 %{_datadir}/dictd/%{dictname}.*
This page took 0.065772 seconds and 3 git commands to generate.