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