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: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 URL: http://www.dict.org/
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.
22 Ten pakiet zawiera s³ownik The On-Line Hacker Jargon File w wersji
23 4.2.0, sformatowany do u¿ytku z serwerem s³ownika dictd.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
36 %{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/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\"
44 " > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
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
60 %defattr(644,root,root,755)
61 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/*.dictconf
62 %{_datadir}/dictd/%{dictname}*