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 Source0: http://atos.wmid.amu.edu.pl/~undefine/jarg433.gz
11 # Source0-md5: dcfee414bc8576e9d6eab9b2980226a0
12 URL: http://www.dict.org/
13 BuildRequires: dictfmt
14 BuildRequires: dictzip
15 Requires: %{_sysconfdir}/dictd
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This package contains The On-Line Hacker Jargon File, version
21 %{version}, formatted for use by the dictionary server in the dictd
25 Ten pakiet zawiera s³ownik The On-Line Hacker Jargon File w wersji
26 %{version}, sformatowany do u¿ytku z serwerem s³ownika dictd.
30 %{__gzip} -dc %{SOURCE0} > jarg433
33 dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
34 dictzip %{dictname}.dict
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
40 dictprefix=%{_datadir}/dictd/%{dictname}
41 echo "# The On-Line Hacker Jargon File dictionary
42 database %{dictname} {
43 data \"$dictprefix.dict.dz\"
44 index \"$dictprefix.index\"
45 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
46 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
49 rm -rf $RPM_BUILD_ROOT
52 if [ -f /var/lock/subsys/dictd ]; then
53 /etc/rc.d/init.d/dictd restart 1>&2
57 if [ -f /var/lock/subsys/dictd ]; then
58 /etc/rc.d/init.d/dictd restart 1>&2 || true
62 %defattr(644,root,root,755)
63 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
64 %{_datadir}/dictd/%{dictname}.*