]> git.pld-linux.org Git - packages/dictd.git/blob - dictd.spec
- release 2
[packages/dictd.git] / dictd.spec
1 Summary:        Dictionary database server
2 Summary(pl.UTF-8):      Serwer bazy słowników
3 Name:           dictd
4 Version:        1.11.2
5 Release:        2
6 License:        GPL v1+
7 Group:          Networking/Daemons
8 Source0:        http://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz
9 # Source0-md5:  7008ec3bb0001c302ce751580f9d2ea4
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Patch0:         %{name}-umask.patch
13 URL:            http://www.dict.org/
14 BuildRequires:  autoconf >= 2.53
15 BuildRequires:  automake
16 BuildRequires:  bison
17 BuildRequires:  flex
18 BuildRequires:  judy-devel
19 BuildRequires:  libdbi-devel
20 BuildRequires:  libmaa-devel
21 BuildRequires:  perl-base
22 BuildRequires:  rpmbuild(macros) >= 1.268
23 BuildRequires:  zlib-devel
24 Requires(post,preun):   /sbin/chkconfig
25 Requires:       rc-scripts
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 # plugins dir
29 %define         _libexecdir     %{_libdir}/dictd
30
31 %define         specflags_ia32   -fomit-frame-pointer
32
33 %description
34 Server for the Dictionary Server Protocol (DICT), a TCP transaction
35 based query/response protocol that allows a client to access
36 dictionary definitions from a set of natural language dictionary
37 databases.
38
39 %description -l pl.UTF-8
40 Serwer dla Dictionary Server Protocol (DICT), bazującego na TCP
41 protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do
42 definicji słownikowych z zestawu baz danych.
43
44 %package devel
45 Summary:        Package for dictd plugins development
46 Summary(pl.UTF-8):      Pakiet programistyczny do tworzenia wtyczek dictd
47 Group:          Development/Libraries
48 # doesn't require base
49
50 %description devel
51 Package for dictd plugins development.
52
53 %description devel -l pl.UTF-8
54 Pakiet programistyczny do tworzenia wtyczek dictd.
55
56 %package plugin-dbi
57 Summary:        DBI plugin for dictd server
58 Summary(pl.UTF-8):      Wtyczka DBI dla serwera dictd
59 Group:          Libraries
60 Requires:       %{name} = %{version}-%{release}
61
62 %description plugin-dbi
63 DBI plugin for dictd server.
64
65 %description plugin-dbi -l pl.UTF-8
66 Wtyczka DBI dla serwera dictd.
67
68 %package plugin-judy
69 Summary:        Judy plugin for dictd server
70 Summary(pl.UTF-8):      Wtyczka Judy dla serwera dictd
71 Group:          Libraries
72 Requires:       %{name} = %{version}-%{release}
73
74 %description plugin-judy
75 Judy plugin for dictd server.
76
77 %description plugin-judy -l pl.UTF-8
78 Wtyczka Judy dla serwera dictd.
79
80 %package -n dict
81 Summary:        DICT Protocol Client
82 Summary(pl.UTF-8):      Klient protokołu DICT
83 Group:          Applications/Networking
84
85 %description -n dict
86 Client for the Dictionary Server Protocol (DICT), a TCP transaction
87 based query/response protocol that provides access to dictionary
88 definitions from a set of natural language dictionary databases.
89
90 %description -n dict -l pl.UTF-8
91 Klient dla Dictionary Server Protocol (DICT), bazującego na TCP
92 protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do
93 definicji słownikowych z zestawu baz danych.
94
95 %package -n dictfmt
96 Summary:        dictfmt utility to convert databases in various formats into dict format
97 Summary(pl.UTF-8):      Narzędzie dictfmt do konwersji baz w różnych formatach na format dict
98 Group:          Applications/Text
99 Obsoletes:      dict-fmt
100
101 %description -n dictfmt
102 dictfmt utility is designed to convert databases in various formats
103 into working databases and indexes for the DICT server. This package
104 also includes other tools for formating databases:
105 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
106
107 %description -n dictfmt -l pl.UTF-8
108 Narzędzie dictfmt służy do konwertowania baz danych w różnych
109 formatach na działające bazy danych i indeksy dla serwera słowników
110 DICT. Ten pakiet zawiera także inne narzędzia do formatowania baz:
111 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
112
113 %package -n dictzip
114 Summary:        Compress (or expand) files, allowing random access
115 Summary(pl.UTF-8):      Kompresja (i dekompresja) plików pozwalająca na swobodny dostęp
116 Group:          Applications/Archiving
117
118 %description -n dictzip
119 dictzip compresses files using the gzip(1) algorithm (LZ77) in a
120 manner which is completely compatible with the gzip file format. An
121 extension to the gzip file format (Extra Field, described in 2.3.1.1
122 of RFC 1952) allows extra data to be stored in the header of a
123 compressed file. Dictd, the DICT protocol dictionary server will make
124 use of this data to perform pseudo-random access on the file.
125
126 %description -n dictzip -l pl.UTF-8
127 dictzip kompresuje pliki korzystając z zawartego w gzip(1) algorytmu
128 (LZ77) który jest całkowicie kompatybilny z formatem plików gzip.
129 Rozszerzenie do formatu plików gzip (pole dodatkowe, opisane w 2.3.1.1
130 RFC 1952) pozwalającego na dodatkowe dane zapisane w nagłówku
131 skompresowanego pliku. Dictd, serwer protokołu DICT wykorzystuje te
132 dane do pseudo-swobodnego dostępu do pliku.
133
134 %prep
135 %setup -q
136 %patch0 -p1
137
138 %build
139 cp -f /usr/share/automake/config.* .
140 %{__aclocal}
141 %{__autoconf}
142 CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99"
143 %configure \
144         --with-plugin-dbi \
145         --with-plugin-judy \
146         --with-system-utf8-funcs
147
148 %{__make}
149
150 %install
151 rm -rf $RPM_BUILD_ROOT
152 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir}/%{name},%{_datadir}/%{name}}
153
154 %{__make} install \
155         DESTDIR=$RPM_BUILD_ROOT
156
157 echo "server localhost" > dict.conf
158 echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf
159
160 install dict.conf $RPM_BUILD_ROOT%{_sysconfdir}
161 install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
162 :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
163 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
164 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
165
166 %{__rm} $RPM_BUILD_ROOT%{_libexecdir}/dictdplugin_*.{la,a}
167
168 mv -f doc/security.doc security.txt
169
170 %clean
171 rm -rf $RPM_BUILD_ROOT
172
173 %post
174 /sbin/chkconfig --add %{name}
175 %service dictd restart
176
177 %preun
178 if [ "$1" = "0" ]; then
179         %service dictd stop
180         /sbin/chkconfig --del %{name}
181 fi
182
183 %files
184 %defattr(644,root,root,755)
185 %doc ANNOUNCE ChangeLog NEWS README TODO examples/dictd* security.txt
186 %ghost %{_sysconfdir}/%{name}.conf
187 %dir %{_sysconfdir}/%{name}
188 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-main.conf
189 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
190 %attr(754,root,root) /etc/rc.d/init.d/%{name}
191 %attr(755,root,root) %{_sbindir}/%{name}
192 %dir %{_datadir}/%{name}
193 %dir %{_libexecdir}
194 %{_mandir}/man8/dictd.8*
195
196 %files devel
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/dictdplugin-config
199 %{_includedir}/dictdplugin.h
200
201 %files plugin-dbi
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_libexecdir}/dictdplugin_dbi.so*
204
205 %files plugin-judy
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_libexecdir}/dictdplugin_judy.so*
208
209 %files -n dict
210 %defattr(644,root,root,755)
211 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dict.conf
212 %attr(755,root,root) %{_bindir}/colorit
213 %attr(755,root,root) %{_bindir}/dict
214 %attr(755,root,root) %{_bindir}/dictl
215 %{_mandir}/man1/colorit.1*
216 %{_mandir}/man1/dict.1*
217 %{_mandir}/man1/dictl.1*
218
219 %files -n dictfmt
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/dictfmt*
222 %attr(755,root,root) %{_bindir}/dictunformat
223 %{_mandir}/man1/dictfmt*.1*
224 %{_mandir}/man1/dictunformat.1*
225
226 %files -n dictzip
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_bindir}/dictzip
229 %{_mandir}/man1/dictzip.1*
This page took 0.065693 seconds and 3 git commands to generate.