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-md5: d68a6c42dfbf5bdd9f42792d11563d5b
11 URL: http://www.dict.org/
12 BuildRequires: dictfmt
13 BuildRequires: dictzip
15 Requires: %{_sysconfdir}/dictd
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 This package contains The On-Line Hacker Jargon File, version %version,
20 formatted for use by the dictionary server in the dictd package.
23 Ten pakiet zawiera s³ownik The On-Line Hacker Jargon File w wersji
24 %version, sformatowany do u¿ytku z serwerem s³ownika dictd.
28 %{__gzip} -dc %{SOURCE0} > jarg433
31 dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
32 dictzip %{dictname}.dict
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
38 dictprefix=%{_datadir}/dictd/%{dictname}
39 echo "# The On-Line Hacker Jargon File dictionary
40 database %{dictname} {
41 data \"$dictprefix.dict.dz\"
42 index \"$dictprefix.index\"
43 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
44 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
47 rm -rf $RPM_BUILD_ROOT
50 if [ -f /var/lock/subsys/dictd ]; then
51 /etc/rc.d/init.d/dictd restart 1>&2
55 if [ -f /var/lock/subsys/dictd ]; then
56 /etc/rc.d/init.d/dictd restart 1>&2 || true
60 %defattr(644,root,root,755)
61 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
62 %{_datadir}/dictd/%{dictname}.*