]> git.pld-linux.org Git - packages/dict-jargon.git/blob - dict-jargon.spec
- small fixes based on changes by kloczek
[packages/dict-jargon.git] / dict-jargon.spec
1 %define         dictname jargon
2 Summary:        The On-Line Hacker Jargon File dictionary for dictd
3 Summary(pl):    S³ownik Hacker Jargon dla dictd
4 Name:           dict-%{dictname}
5 Version:        4.3.3
6 Release:        1
7 License:        GPL
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 Requires:       dictd
16 Requires:       %{_sysconfdir}/dictd
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains The On-Line Hacker Jargon File, version %{version},
21 formatted for use by the dictionary server in the dictd package.
22
23 %description -l pl
24 Ten pakiet zawiera s³ownik The On-Line Hacker Jargon File w wersji
25 %{version}, sformatowany do u¿ytku z serwerem s³ownika dictd.
26
27 %prep
28 %setup -q -c -T
29 %{__gzip} -dc %{SOURCE0} > jarg433
30
31 %build
32 dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
33 dictzip %{dictname}.dict
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
38
39 dictprefix=%{_datadir}/dictd/%{dictname}
40 echo "# The On-Line Hacker Jargon File dictionary
41 database %{dictname} {
42         data  \"$dictprefix.dict.dz\"
43         index \"$dictprefix.index\"
44 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
45 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 if [ -f /var/lock/subsys/dictd ]; then
52         /etc/rc.d/init.d/dictd restart 1>&2
53 fi
54
55 %postun
56 if [ -f /var/lock/subsys/dictd ]; then
57         /etc/rc.d/init.d/dictd restart 1>&2 || true
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
63 %{_datadir}/dictd/%{dictname}.*
This page took 0.024343 seconds and 3 git commands to generate.