]> git.pld-linux.org Git - packages/dict-jargon.git/blame - dict-jargon.spec
- new from scratch
[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
16This 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
26rm -rf $RPM_BUILD_ROOT
27install -d $RPM_BUILD_ROOT%{_datadir}/dictd/
28
29DICTDIR="$RPM_BUILD_ROOT%{_datadir}/dictd/"
30make install dictdir="$DICTDIR"
31
32%clean
33rm -rf $RPM_BUILD_ROOT
34
35%post
36prefix=%{_datadir}/dictd/%{dictname}
37
38if ! grep ' %{dictname} ' /etc/dictd.conf >/dev/null; then
39 echo "Edit /etc/dictd.conf to see %{dictname} dictionary under dictd"
40echo "# 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
45fi
46
47%files
48%defattr(644,root,root,755)
49%{_datadir}/dictd/%{dictname}*
This page took 0.037706 seconds and 4 git commands to generate.