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