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