]> git.pld-linux.org Git - packages/dict-jargon.git/blob - dict-jargon.spec
- new from scratch
[packages/dict-jargon.git] / dict-jargon.spec
1 %define         dictname jargon
2 Summary:        The On-Line Hacker Jargon File dictionary for dictd
3 Name:           dict-%{dictname}
4 Version:        4.2.0
5 Release:        1
6 License:        GPL
7 Group:          Applications/Dictionary
8 URL:            http://www.dict.org/
9 Source0:        ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 BuildRequires:  dictzip
12 Requires:       dictd 
13 BuildArch:      noarch
14
15 %description 
16 This package contains The On-Line Hacker Jargon File, version 4.2.0,                     formatted for use by the dictionary server in the dictd package.
17
18 %prep
19 %setup -q
20
21 %build
22 %configure 
23 %{__make} db 
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT%{_datadir}/dictd/
28
29 DICTDIR="$RPM_BUILD_ROOT%{_datadir}/dictd/"
30 make install dictdir="$DICTDIR" 
31
32 %clean
33 rm -rf $RPM_BUILD_ROOT
34
35 %post
36 prefix=%{_datadir}/dictd/%{dictname}
37
38 if ! grep ' %{dictname} ' /etc/dictd.conf >/dev/null; then 
39    echo "Edit /etc/dictd.conf to see %{dictname} dictionary under dictd"
40 echo "# Uncommment this to configure The On-Line Hacker Jargon File dictionary
41 #database %{dictname} {
42 #    data  \"$prefix.dict.dz\"
43 #    index \"$prefix.index\" }
44 " >> /etc/dictd.conf
45 fi
46
47 %files
48 %defattr(644,root,root,755)
49 %{_datadir}/dictd/%{dictname}*
This page took 0.045676 seconds and 3 git commands to generate.