]>
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 |
445b4131 | 6 | Release: 3 |
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 |
445b4131 | 15 | BuildRequires: rpmbuild(macros) >= 1.268 |
baf4fe3d | 16 | Requires: %{_sysconfdir}/dictd |
ecb3a8f9 | 17 | Requires: dictd |
cd77b879 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f6f9148a | 19 | |
3130eace | 20 | %description |
ecb3a8f9 ER |
21 | This package contains The On-Line Hacker Jargon File, version |
22 | %{version}, formatted for use by the dictionary server in the dictd | |
23 | package. | |
f6f9148a | 24 | |
4f710c1a JR |
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. | |
87182270 | 28 | |
f6f9148a | 29 | %prep |
0c7fc5a5 | 30 | %setup -q -c -T |
0ffd066c | 31 | %{__gzip} -dc %{SOURCE0} > jarg433 |
f6f9148a | 32 | |
33 | %build | |
0ffd066c TP |
34 | dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433 |
35 | dictzip %{dictname}.dict | |
f6f9148a | 36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
0ffd066c | 39 | install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd} |
f6f9148a | 40 | |
baf4fe3d | 41 | dictprefix=%{_datadir}/dictd/%{dictname} |
42 | echo "# The On-Line Hacker Jargon File dictionary | |
43 | database %{dictname} { | |
cd77b879 TP |
44 | data \"$dictprefix.dict.dz\" |
45 | index \"$dictprefix.index\" | |
46 | }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf | |
0ffd066c | 47 | mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd |
f6f9148a | 48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
cd77b879 | 52 | %post |
445b4131 | 53 | %service -q dictd restart |
baf4fe3d | 54 | |
cd77b879 | 55 | %postun |
445b4131 ER |
56 | if [ "$1" = 0 ]; then |
57 | %service -q dictd restart | |
f6f9148a | 58 | fi |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
ecb3a8f9 | 62 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf |
cd77b879 | 63 | %{_datadir}/dictd/%{dictname}.* |