]> git.pld-linux.org Git - packages/dict-gcide.git/blob - dict-gcide.spec
- rel 4 (use %service)
[packages/dict-gcide.git] / dict-gcide.spec
1 %define         dictname gcide
2 Summary:        Collaborative International Dictionary of English for dictd
3 Summary(pl.UTF-8):      Słownik Collaborative International Dictionary of English dla dictd
4 Name:           dict-%{dictname}
5 Version:        0.44
6 Release:        4
7 License:        GPL
8 Group:          Applications/Dictionaries
9 Source0:        ftp://ftp.dict.org/pub/dict/pre/%{name}-%{version}.tar.gz
10 # Source0-md5:  641502e6fedca32cbf9777b1f4f76afe
11 # based on ftp://ftp.gnu.org/gnu/gcide/gcide-0.46/README.DIC
12 Source1:        %{name}-README.DIC
13 URL:            http://www.dict.org/
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires:       %{_sysconfdir}/dictd
16 Requires:       dictd
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains GCIDE (Collaborative International Dictionary of
21 English) %{version} formatted for use by the dictionary server in the
22 dictd package.
23
24 %description -l pl.UTF-8
25 Ten pakiet zawiera słownik GCIDE (Collaborative International
26 Dictionary of English) %{version} sformatowany do używania z serwerem
27 słownika dictd.
28
29 %prep
30 %setup -c -q
31 install %{SOURCE1} README.DIC
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
36
37 dictprefix=%{_datadir}/dictd/%{dictname}
38 echo "# Collaborative International Dictionary of English (%{version})
39 database %{dictname} {
40         data  \"$dictprefix.dict.dz\"
41         index \"$dictprefix.index\"
42 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
43 cp -a %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 %service -q dictd restart
50
51 %postun
52 if [ "$1" = 0 ]; then
53         %service -q dictd restart
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README.DIC
59 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
60 %{_datadir}/dictd/%{dictname}.*
This page took 0.131316 seconds and 3 git commands to generate.