]> git.pld-linux.org Git - packages/dictd.git/blob - dictd.spec
- LSB conformance
[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.7
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
9 Source1:        %{name}.init
10 Source2:        %{name}.sysconfig
11 Patch0:         %{name}-no_libnsl.patch
12 Patch1:         %{name}-opt.patch
13 Patch2:         %{name}-ac253.patch
14 URL:            http://www.dict.org/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  libltdl-devel
20 BuildRequires:  zlib-devel
21 Requires(post,preun):   /sbin/chkconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Server for the Dictionary Server Protocol (DICT), a TCP transaction
26 based query/response protocol that allows a client to access
27 dictionary definitions from a set of natural language dictionary
28 databases.
29
30 %description -l pl
31 Serwer dla Dictionary Server Protocol (DICT), bazuj±cego na TCP
32 protoko³u zapytañ i odpowiedzi umo¿liwiaj±cego klientom na dostêp do
33 definicji s³ownikowych z zestawu baz danych.
34
35 %package -n dict
36 Summary:        DICT Protocol Client
37 Summary(pl):    Klient protoko³u DICT
38 Group:          Applications/Networking
39
40 %description -n dict
41 Client for the Dictionary Server Protocol (DICT), a TCP transaction
42 based query/response protocol that provides access to dictionary
43 definitions from a set of natural language dictionary databases.
44
45 %description -n dict -l pl
46 Klient dla Dictionary Server Protocol (DICT), bazuj±cego na TCP
47 protoko³u zapytañ i odpowiedzi umo¿liwiaj±cego klientom na dostêp do
48 definicji s³ownikowych z zestawu baz danych.
49
50 %package -n dictfmt
51 Summary:        dictfmt utility to convert databases in various formats into dict format
52 Summary(pl):    Narzêdzie dictfmt do konwersji baz w ró¿nych formatach na format dict
53 Group:          Applications/Text
54 Obsoletes:      dict-fmt
55 Obsoletes:      dictfmt
56
57 %description -n dictfmt
58 dictfmt utility is designed to convert databases in various formats
59 into working databases and indexes for the DICT server.
60 This package also includes other tools for formating databases:
61 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
62
63 %description -n dictfmt -l pl
64 Narzêdzie dictfmt s³u¿y do konwertowania baz danych w ró¿nych
65 formatach na dzia³aj±ce bazy danych i indeksy dla serwera s³owników
66 DICT.
67 Ten pakiet zawiera tak¿e inne narzêdzia do formatowania baz:
68 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
69
70 %package -n dictzip
71 Summary:        Compress (or expand) files, allowing random access
72 Summary(pl):    Kompresja (i dekompresja) plików pozwalaj±ca na swobodny dostêp
73 Group:          Applications/Archiving
74
75 %description -n dictzip
76 dictzip compresses files using the gzip(1) algorithm (LZ77) in a
77 manner which is completely compatible with the gzip file format. An
78 extension to the gzip file format (Extra Field, described in 2.3.1.1
79 of RFC 1952) allows extra data to be stored in the header of a
80 compressed file. Dictd, the DICT protocol dictionary server will make
81 use of this data to perform pseudo-random access on the file.
82
83 %description -n dictzip -l pl
84 dictzip kompresuje pliki korzystaj±c z zawartego w gzip(1) algorytmu
85 (LZ77) który jest ca³kowicie kompatybilny z formatem plików gzip.
86 Rozszerzenie do formatu plików gzip (pole dodatkowe, opisane w 2.3.1.1
87 RFC 1952) pozwalaj±cego na dodatkowe dane zapisane w nag³ówku
88 skompresowanego pliku. Dictd, serwer protoko³u DICT wykorzystuje te
89 dane do pseudo-swobodnego dostêpu do pliku.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94 %patch1 -p1
95 %patch2 -p1
96
97 %build
98 cp -f %{_datadir}/automake/config.* .
99 %{__aclocal}
100 %{__autoconf}
101 cd libmaa
102 cp -f %{_datadir}/automake/config.* .
103 %{__aclocal}
104 %{__autoconf}
105 cd ..
106 CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99"
107 %configure
108
109 %{__make}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,%{name}},%{_bindir},%{_sbindir}} \
114                 $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/man{1,8}}
115
116 install dict dictzip dictfmt{,_{index2suffix,index2word,plugin,virtual}} \
117         dictunformat $RPM_BUILD_ROOT%{_bindir}
118 install dict*.1 $RPM_BUILD_ROOT%{_mandir}/man1
119
120 install %{name} $RPM_BUILD_ROOT%{_sbindir}
121 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
122
123 echo "server localhost" > dict.conf
124 echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf
125
126 install dict.conf $RPM_BUILD_ROOT%{_sysconfdir}
127 install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
128 :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
129 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
130 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
131
132 mv -f doc/security.doc security.txt
133
134 %clean
135 rm -rf $RPM_BUILD_ROOT
136
137 %post
138 /sbin/chkconfig --add %{name}
139 if [ -f /var/lock/subsys/%{name} ]; then
140         /etc/rc.d/init.d/%{name} restart >&2
141 else
142         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
143 fi
144
145 %preun
146 if [ "$1" = "0" ]; then
147         if [ -f /var/lock/subsys/%{name} ]; then
148                 /etc/rc.d/init.d/%{name} stop >&2
149         fi
150         /sbin/chkconfig --del %{name}
151 fi
152
153 %files
154 %defattr(644,root,root,755)
155 %doc ANNOUNCE ChangeLog README* TODO dictd.conf example* security.txt
156 %ghost %{_sysconfdir}/%{name}.conf
157 %dir %{_sysconfdir}/%{name}
158 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/%{name}-main.conf
159 %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/%{name}
160 %attr(754,root,root) /etc/rc.d/init.d/%{name}
161 %attr(755,root,root) %{_sbindir}/%{name}
162 %dir %{_datadir}/%{name}
163 %{_mandir}/man8/%{name}*
164
165 %files -n dict
166 %defattr(644,root,root,755)
167 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/dict.conf
168 %attr(755,root,root) %{_bindir}/dict
169 %{_mandir}/man1/dict.1*
170
171 %files -n dictfmt
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_bindir}/dictfmt*
174 %attr(755,root,root) %{_bindir}/dictunformat
175 %{_mandir}/man1/dictfmt*.1*
176 %{_mandir}/man1/dictunformat.1*
177
178 %files -n dictzip
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_bindir}/dictzip
181 %{_mandir}/man1/dictzip.1*
This page took 0.068927 seconds and 3 git commands to generate.