]> git.pld-linux.org Git - packages/dict-jargon.git/blob - dict-jargon.spec
- cosmetics,
[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 BuildRequires:  autoconf
12 BuildRequires:  dictzip
13 Requires:       dictd
14 Requires:       %{_sysconfdir}/dictd
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 if [ -f /var/lock/subsys/dictd ]; then
50         /etc/rc.d/init.d/dictd restart 1>&2
51 fi
52
53 %postun
54 if [ -f /var/lock/subsys/dictd ]; then
55         /etc/rc.d/init.d/dictd restart 1>&2 || true
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
61 %{_datadir}/dictd/%{dictname}.*
This page took 0.052773 seconds and 3 git commands to generate.