]> git.pld-linux.org Git - packages/dict-sap.git/blob - dict-sap.spec
- do not BR: perl
[packages/dict-sap.git] / dict-sap.spec
1 Summary:        sap - English-Polish and vice versa dictionary for dictd
2 Summary(pl):    sap - s³ownik angielsko-polski i odwrotnie dla dictd
3 Name:           dict-sap
4 Version:        0.1b_0.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Dictionaries
8 Source0:        %{name}-%{version}.tar.gz
9 URL:            http://www.dict.org/
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  dictzip
13 BuildRequires:  %{_bindir}/perl
14 Requires:       dictd
15 Requires:       %{_sysconfdir}/dictd
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This package contains sap - English-Polish and Polish-English
20 dictionary version 0.1b, formatted for use by the DICT server.
21
22 %description -l pl
23 Ten pakiet zawiera sap - s³ownik angielsko-polski i polsko-angielski
24 sformatowane do u¿ycia z serwerem s³ownika dictd.
25
26 %prep
27 %setup -q
28
29 %build
30 %{__autoconf}
31 cp -f %{_datadir}/automake/install-sh .
32 cp -f %{_datadir}/automake/config.sub .
33 %configure
34 %{__make} db
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd,%{_bindir}}
39 %{__make} install DESTDIR=$RPM_BUILD_ROOT
40
41 for dictname in sap_en-pl sap_pl-en; do
42         dictprefix=%{_datadir}/dictd/$dictname
43         echo "# sap dictionary, part $dictname
44 database $dictname {
45         data  \"$dictprefix.dict.dz\"
46         index \"$dictprefix.index\"
47 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$dictname.dictconf
48 done
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 if [ -f /var/lock/subsys/dictd ]; then
55         /etc/rc.d/init.d/dictd restart 1>&2
56 fi
57
58 %postun
59 if [ -f /var/lock/subsys/dictd ]; then
60         /etc/rc.d/init.d/dictd restart 1>&2 || true
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/sap_*.dictconf
66 %attr(755,root,root) %{_bindir}/sapdict
67 %{_datadir}/dictd/sap_*
This page took 0.368126 seconds and 4 git commands to generate.