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