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