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