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