]> git.pld-linux.org Git - packages/dict-sap.git/blob - dict-sap.spec
- adapterized, pl translations
[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 Group(de):      Applikationen/Wörterbücher
9 Group(pl):      Aplikacje/S³owniki
10 Source0:        %{name}-%{version}.tar.gz
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 BuildRequires:  dictzip
13 BuildRequires:  perl
14 BuildRequires:  autoconf
15 Requires:       dictd
16 Requires:       %{_sysconfdir}/dictd
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 %configure 
32 %{__make} db 
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_bindir},%{_sysconfdir}/dictd}
37 %{__make} install DESTDIR=$RPM_BUILD_ROOT
38
39 for dictname in sap_en-pl sap_pl-en; do
40     dictprefix=%{_datadir}/dictd/$dictname
41     echo "# sap dictionary, part $dictname
42 database $dictname {
43     data  \"$dictprefix.dict.dz\"
44     index \"$dictprefix.index\"
45 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$dictname.dictconf
46 done
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 || true
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 %attr(755,root,root) %{_bindir}/sapdict
65 %{_datadir}/dictd/sap_*
This page took 0.198011 seconds and 3 git commands to generate.