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