]> git.pld-linux.org Git - packages/dict-sap.git/blob - dict-sap.spec
- cosmetics
[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:  dictzip
12 BuildRequires:  perl
13 Requires:       dictd
14 Requires:       %{_sysconfdir}/dictd
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This package contains sap - English-Polish and Polish-English
19 dictionary version 0.1b, formatted for use by the DICT server.
20
21 %description -l pl
22 Ten pakiet zawiera sap - s³ownik angielsko-polski i polsko-angielski
23 sformatowane do u¿ycia 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,%{_bindir}}
36 %{__make} install DESTDIR=$RPM_BUILD_ROOT
37
38 for dictname in sap_en-pl sap_pl-en; do
39         dictprefix=%{_datadir}/dictd/$dictname
40         echo "# sap dictionary, part $dictname
41 database $dictname {
42         data  \"$dictprefix.dict.dz\"
43         index \"$dictprefix.index\"
44 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$dictname.dictconf
45 done
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 if [ -f /var/lock/subsys/dictd ]; then
52         /etc/rc.d/init.d/dictd restart 1>&2
53 fi
54
55 %postun
56 if [ -f /var/lock/subsys/dictd ]; then
57         /etc/rc.d/init.d/dictd restart 1>&2 || true
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/sap_*.dictconf
63 %attr(755,root,root) %{_bindir}/sapdict
64 %{_datadir}/dictd/sap_*
This page took 0.049998 seconds and 4 git commands to generate.