1 %define dictname jargon
2 Summary: The On-Line Hacker Jargon File dictionary for dictd
7 Group: Applications/Dictionaries
8 Group(pl): Aplikacje/S³owniki
9 URL: http://www.dict.org/
10 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 BuildRequires: dictzip
13 BuildRequires: autoconf
15 Requires: %{_sysconfdir}/dictd
18 This package contains The On-Line Hacker Jargon File, version 4.2.0,
19 formatted for use by the dictionary server in the dictd package.
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
32 %{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
34 dictprefix=%{_datadir}/dictd/%{dictname}
35 echo "# The On-Line Hacker Jargon File dictionary
36 database %{dictname} {
37 data \"$dictprefix.dict.dz\"
38 index \"$dictprefix.index\"
40 " > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
43 rm -rf $RPM_BUILD_ROOT
46 if [ -f /var/lock/subsys/dictd ]; then
47 /etc/rc.d/init.d/dictd restart 1>&2
51 if [ -f /var/lock/subsys/dictd ]; then
52 /etc/rc.d/init.d/dictd restart 1>&2
56 %defattr(644,root,root,755)
57 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/*.dictconf
58 %{_datadir}/dictd/%{dictname}*