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