1 %define dictname jargon
2 Summary: The On-Line Hacker Jargon File dictionary for dictd
3 Summary(pl): S³ownik Hacker Jargon dla dictd
8 Group: Applications/Dictionaries
9 Source0: http://www.tuxedo.org/~esr/jargon/jarg433.gz
10 URL: http://www.dict.org/
11 BuildRequires: dictfmt
12 BuildRequires: dictzip
14 Requires: %{_sysconfdir}/dictd
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This package contains The On-Line Hacker Jargon File, version %version,
19 formatted for use by the dictionary server in the dictd package.
22 Ten pakiet zawiera s³ownik The On-Line Hacker Jargon File w wersji
23 %version, sformatowany do u¿ytku z serwerem s³ownika dictd.
27 %{__gzip} -dc %{SOURCE0} > jarg433
30 dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
31 dictzip %{dictname}.dict
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
37 dictprefix=%{_datadir}/dictd/%{dictname}
38 echo "# The On-Line Hacker Jargon File dictionary
39 database %{dictname} {
40 data \"$dictprefix.dict.dz\"
41 index \"$dictprefix.index\"
42 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
43 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
46 rm -rf $RPM_BUILD_ROOT
49 if [ -f /var/lock/subsys/dictd ]; then
50 /etc/rc.d/init.d/dictd restart 1>&2
54 if [ -f /var/lock/subsys/dictd ]; then
55 /etc/rc.d/init.d/dictd restart 1>&2 || true
59 %defattr(644,root,root,755)
60 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
61 %{_datadir}/dictd/%{dictname}.*