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 Group(de): Applikationen/Wörterbücher
10 Group(pl): Aplikacje/S³owniki
11 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
12 URL: http://www.dict.org/
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 BuildRequires: dictzip
15 BuildRequires: autoconf
17 Requires: %{_sysconfdir}/dictd
20 This package contains The On-Line Hacker Jargon File, version 4.2.0,
21 formatted for use by the dictionary server in the dictd package.
24 Ten pakiet zawiera s³ownik The On-Line Hacker Jargon File w wersji
25 4.2.0, sformatowany do u¿ytku z serwerem s³ownika dictd.
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
38 %{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/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\"
46 " > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
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
62 %defattr(644,root,root,755)
63 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/*.dictconf
64 %{_datadir}/dictd/%{dictname}*