]> git.pld-linux.org Git - packages/dict-sap.git/blob - dict-sap.spec
- added copying config.sub and install-sh from automake (athlon problems)
[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 cp -f %{_datadir}/automake/install-sh .
31 cp -f %{_datadir}/automake/config.sub .
32 %configure
33 %{__make} db
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd,%{_bindir}}
38 %{__make} install DESTDIR=$RPM_BUILD_ROOT
39
40 for dictname in sap_en-pl sap_pl-en; do
41         dictprefix=%{_datadir}/dictd/$dictname
42         echo "# sap dictionary, part $dictname
43 database $dictname {
44         data  \"$dictprefix.dict.dz\"
45         index \"$dictprefix.index\"
46 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$dictname.dictconf
47 done
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 if [ -f /var/lock/subsys/dictd ]; then
54         /etc/rc.d/init.d/dictd restart 1>&2
55 fi
56
57 %postun
58 if [ -f /var/lock/subsys/dictd ]; then
59         /etc/rc.d/init.d/dictd restart 1>&2 || true
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/sap_*.dictconf
65 %attr(755,root,root) %{_bindir}/sapdict
66 %{_datadir}/dictd/sap_*
This page took 0.060496 seconds and 4 git commands to generate.