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