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