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