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