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