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