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