]> git.pld-linux.org Git - packages/dict-jargon.git/blame - dict-jargon.spec
- rel 3 (use %service)
[packages/dict-jargon.git] / dict-jargon.spec
CommitLineData
cd77b879 1%define dictname jargon
f6f9148a 2Summary: The On-Line Hacker Jargon File dictionary for dictd
d1c4b839 3Summary(pl.UTF-8): Słownik Hacker Jargon dla dictd
f6f9148a 4Name: dict-%{dictname}
759fbe77 5Version: 4.4.7
445b4131 6Release: 3
f6f9148a 7License: GPL
9edce53f 8Group: Applications/Dictionaries
fb0b43ae 9# Source0: http://www.tuxedo.org/~esr/jargon/jarg433.gz
10Source0: http://atos.wmid.amu.edu.pl/~undefine/jarg433.gz
11# Source0-md5: dcfee414bc8576e9d6eab9b2980226a0
87182270 12URL: http://www.dict.org/
0ffd066c 13BuildRequires: dictfmt
cd77b879 14BuildRequires: dictzip
445b4131 15BuildRequires: rpmbuild(macros) >= 1.268
baf4fe3d 16Requires: %{_sysconfdir}/dictd
ecb3a8f9 17Requires: dictd
cd77b879 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f6f9148a 19
3130eace 20%description
ecb3a8f9
ER
21This package contains The On-Line Hacker Jargon File, version
22%{version}, formatted for use by the dictionary server in the dictd
23package.
f6f9148a 24
4f710c1a
JR
25%description -l pl.UTF-8
26Ten 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
34dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
35dictzip %{dictname}.dict
f6f9148a 36
37%install
38rm -rf $RPM_BUILD_ROOT
0ffd066c 39install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
f6f9148a 40
baf4fe3d 41dictprefix=%{_datadir}/dictd/%{dictname}
42echo "# The On-Line Hacker Jargon File dictionary
43database %{dictname} {
cd77b879
TP
44 data \"$dictprefix.dict.dz\"
45 index \"$dictprefix.index\"
46}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
0ffd066c 47mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
f6f9148a 48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
cd77b879 52%post
445b4131 53%service -q dictd restart
baf4fe3d 54
cd77b879 55%postun
445b4131
ER
56if [ "$1" = 0 ]; then
57 %service -q dictd restart
f6f9148a 58fi
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}.*
This page took 0.096736 seconds and 4 git commands to generate.