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