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 BuildRequires: autoconf
12 BuildRequires: dictzip
14 Requires: %{_sysconfdir}/dictd
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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\"
43 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
46 rm -rf $RPM_BUILD_ROOT
49 if [ -f /var/lock/subsys/dictd ]; then
50 /etc/rc.d/init.d/dictd restart 1>&2
54 if [ -f /var/lock/subsys/dictd ]; then
55 /etc/rc.d/init.d/dictd restart 1>&2 || true
59 %defattr(644,root,root,755)
60 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
61 %{_datadir}/dictd/%{dictname}.*