]> git.pld-linux.org Git - packages/dict-vietanh.git/blob - dict-vietanh.spec
- initial PLD release
[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 %install
23 rm -rf $RPM_BUILD_ROOT
24 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
25
26 install %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/dictd
27 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/dictd/%{dictname}.dict.dz
28
29 dictprefix=%{_datadir}/dictd/%{dictname}
30 echo "# Vietnamese-English dictionary
31 database %{dictname} {
32         data  \"$dictprefix.dict.dz\"
33         index \"$dictprefix.index\"
34 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %post
40 if [ -f /var/lock/subsys/dictd ]; then
41         /etc/rc.d/init.d/dictd restart 1>&2
42 fi
43
44 %postun
45 if [ -f /var/lock/subsys/dictd ]; then
46         /etc/rc.d/init.d/dictd restart 1>&2 || true
47 fi
48
49 %files
50 %defattr(644,root,root,755)
51 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
52 %{_datadir}/dictd/%{dictname}.*
This page took 0.048239 seconds and 4 git commands to generate.