2 Summary: Virtual Entity of Relevant Acronyms dictionary for dictd
3 Summary(pl.UTF-8): Słownik Virtual Entity of Relevant Acronyms dla dictd
8 Group: Applications/Dictionaries
9 Source0: http://home.snafu.de/ohei/FTP/%{dictname}-%{version}.tar.gz
10 # Source0-md5: 1ca915d0ecd4617c54379f79e1b67914
11 URL: http://home.snafu.de/ohei/vera/vueber-e.html
12 BuildRequires: dictfmt
13 BuildRequires: dictzip
14 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires: %{_sysconfdir}/dictd
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This package contains V.E.R.A, version %{version}, formatted for use
21 by the dictionary server in the dictd package.
23 %description -l pl.UTF-8
24 Ten pakiet zawiera słownik V.E.R.A w wersji %{version}, sformatowany
25 do użytku z serwerem słownika dictd.
28 %setup -q -n %{dictname}-%{version}
31 perl -ne 's/\@item (.*)\n/:$1:\n/; print unless /^@/' vera.? | \
32 dictfmt -j -u http://home.snafu.de/ohei/ -s \
33 "V.E.R.A. -- Virtual Entity of Relevant Acronyms (%{version})" %{dictname}
34 dictzip %{dictname}.dict
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
40 dictprefix=%{_datadir}/dictd/%{dictname}
41 echo "# Virtual Entity of Relevant Acronyms dictionary
42 database %{dictname} {
43 data \"$dictprefix.dict.dz\"
44 index \"$dictprefix.index\"
45 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
46 mv %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd
49 rm -rf $RPM_BUILD_ROOT
52 %service -q dictd restart
56 %service -q dictd restart
60 %defattr(644,root,root,755)
62 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
63 %{_datadir}/dictd/%{dictname}.*