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