]>
Commit | Line | Data |
---|---|---|
cd77b879 | 1 | %define dictname jargon |
f6f9148a | 2 | Summary: The On-Line Hacker Jargon File dictionary for dictd |
d1c4b839 | 3 | Summary(pl.UTF-8): Słownik Hacker Jargon dla dictd |
f6f9148a | 4 | Name: dict-%{dictname} |
759fbe77 | 5 | Version: 4.4.7 |
761cf478 | 6 | Release: 2 |
f6f9148a | 7 | License: GPL |
9edce53f | 8 | Group: Applications/Dictionaries |
fb0b43ae | 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 | |
87182270 | 12 | URL: http://www.dict.org/ |
0ffd066c | 13 | BuildRequires: dictfmt |
cd77b879 | 14 | BuildRequires: dictzip |
baf4fe3d | 15 | Requires: %{_sysconfdir}/dictd |
ecb3a8f9 | 16 | Requires: dictd |
cd77b879 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f6f9148a | 18 | |
3130eace | 19 | %description |
ecb3a8f9 ER |
20 | This package contains The On-Line Hacker Jargon File, version |
21 | %{version}, formatted for use by the dictionary server in the dictd | |
22 | package. | |
f6f9148a | 23 | |
4f710c1a JR |
24 | %description -l pl.UTF-8 |
25 | Ten pakiet zawiera słownik The On-Line Hacker Jargon File w wersji | |
26 | %{version}, sformatowany do użytku z serwerem słownika dictd. | |
87182270 | 27 | |
f6f9148a | 28 | %prep |
0c7fc5a5 | 29 | %setup -q -c -T |
0ffd066c | 30 | %{__gzip} -dc %{SOURCE0} > jarg433 |
f6f9148a | 31 | |
32 | %build | |
0ffd066c TP |
33 | dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433 |
34 | dictzip %{dictname}.dict | |
f6f9148a | 35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
0ffd066c | 38 | install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd} |
f6f9148a | 39 | |
baf4fe3d | 40 | dictprefix=%{_datadir}/dictd/%{dictname} |
41 | echo "# The On-Line Hacker Jargon File dictionary | |
42 | database %{dictname} { | |
cd77b879 TP |
43 | data \"$dictprefix.dict.dz\" |
44 | index \"$dictprefix.index\" | |
45 | }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf | |
0ffd066c | 46 | mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd |
f6f9148a | 47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
cd77b879 | 51 | %post |
baf4fe3d | 52 | if [ -f /var/lock/subsys/dictd ]; then |
53 | /etc/rc.d/init.d/dictd restart 1>&2 | |
54 | fi | |
55 | ||
cd77b879 | 56 | %postun |
baf4fe3d | 57 | if [ -f /var/lock/subsys/dictd ]; then |
cd77b879 | 58 | /etc/rc.d/init.d/dictd restart 1>&2 || true |
f6f9148a | 59 | fi |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
ecb3a8f9 | 63 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf |
cd77b879 | 64 | %{_datadir}/dictd/%{dictname}.* |