1 %define dictname jargon
2 Summary: The On-Line Hacker Jargon File dictionary for dictd
3 Summary(pl.UTF-8): Słownik Hacker Jargon dla dictd
8 Group: Applications/Dictionaries
9 # Source0: http://www.tuxedo.org/~esr/jargon/jarg433.gz
10 Source0: http://atos.wmid.amu.edu.pl/~undefine/jarg433.gz
11 # Source0-md5: dcfee414bc8576e9d6eab9b2980226a0
12 URL: http://www.dict.org/
13 BuildRequires: dictfmt
14 BuildRequires: dictzip
15 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires: %{_sysconfdir}/dictd
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This package contains The On-Line Hacker Jargon File, version
22 %{version}, formatted for use by the dictionary server in the dictd
25 %description -l pl.UTF-8
26 Ten pakiet zawiera słownik The On-Line Hacker Jargon File w wersji
27 %{version}, sformatowany do użytku z serwerem słownika dictd.
31 %{__gzip} -dc %{SOURCE0} > jarg433
34 dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
35 dictzip %{dictname}.dict
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
41 dictprefix=%{_datadir}/dictd/%{dictname}
42 echo "# The On-Line Hacker Jargon File dictionary
43 database %{dictname} {
44 data \"$dictprefix.dict.dz\"
45 index \"$dictprefix.index\"
46 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
47 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
50 rm -rf $RPM_BUILD_ROOT
53 %service -q dictd restart
57 %service -q dictd restart
61 %defattr(644,root,root,755)
62 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
63 %{_datadir}/dictd/%{dictname}.*