1 %define dictname jargon
2 Summary: The On-Line Hacker Jargon File dictionary for dictd
7 Group: Applications/Dictionary
8 URL: http://www.dict.org/
9 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 BuildRequires: dictzip
16 This package contains The On-Line Hacker Jargon File, version 4.2.0, formatted for use by the dictionary server in the dictd package.
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT%{_datadir}/dictd/
29 DICTDIR="$RPM_BUILD_ROOT%{_datadir}/dictd/"
30 make install dictdir="$DICTDIR"
33 rm -rf $RPM_BUILD_ROOT
36 prefix=%{_datadir}/dictd/%{dictname}
38 if ! grep ' %{dictname} ' /etc/dictd.conf >/dev/null; then
39 echo "Edit /etc/dictd.conf to see %{dictname} dictionary under dictd"
40 echo "# Uncommment this to configure The On-Line Hacker Jargon File dictionary
41 #database %{dictname} {
42 # data \"$prefix.dict.dz\"
43 # index \"$prefix.index\" }
48 %defattr(644,root,root,755)
49 %{_datadir}/dictd/%{dictname}*