]> git.pld-linux.org Git - packages/dict-jargon.git/blame - dict-jargon.spec
- converted to UTF-8
[packages/dict-jargon.git] / dict-jargon.spec
CommitLineData
cd77b879 1%define dictname jargon
f6f9148a 2Summary: The On-Line Hacker Jargon File dictionary for dictd
4f710c1a 3Summary(pl.UTF-8): Słownik Hacker Jargon dla dictd
f6f9148a 4Name: dict-%{dictname}
759fbe77 5Version: 4.4.7
761cf478 6Release: 2
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
baf4fe3d 15Requires: %{_sysconfdir}/dictd
ecb3a8f9 16Requires: dictd
cd77b879 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f6f9148a 18
3130eace 19%description
ecb3a8f9
ER
20This package contains The On-Line Hacker Jargon File, version
21%{version}, formatted for use by the dictionary server in the dictd
22package.
f6f9148a 23
4f710c1a
JR
24%description -l pl.UTF-8
25Ten 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
33dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
34dictzip %{dictname}.dict
f6f9148a 35
36%install
37rm -rf $RPM_BUILD_ROOT
0ffd066c 38install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
f6f9148a 39
baf4fe3d 40dictprefix=%{_datadir}/dictd/%{dictname}
41echo "# The On-Line Hacker Jargon File dictionary
42database %{dictname} {
cd77b879
TP
43 data \"$dictprefix.dict.dz\"
44 index \"$dictprefix.index\"
45}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
0ffd066c 46mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
f6f9148a 47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
cd77b879 51%post
baf4fe3d 52if [ -f /var/lock/subsys/dictd ]; then
53 /etc/rc.d/init.d/dictd restart 1>&2
54fi
55
cd77b879 56%postun
baf4fe3d 57if [ -f /var/lock/subsys/dictd ]; then
cd77b879 58 /etc/rc.d/init.d/dictd restart 1>&2 || true
f6f9148a 59fi
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}.*
This page took 0.115511 seconds and 4 git commands to generate.