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