]> git.pld-linux.org Git - packages/dict-vera.git/blob - dict-vera.spec
- updated to 1.24
[packages/dict-vera.git] / dict-vera.spec
1 %define         dictname vera
2 Summary:        Virtual Entity of Relevant Acronyms dictionary for dictd
3 Summary(pl.UTF-8):      Słownik Virtual Entity of Relevant Acronyms dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.23
6 Release:        1
7 License:        FDL v1.3+
8 Group:          Applications/Dictionaries
9 Source0:        http://ftp.gnu.org/gnu/vera/%{dictname}-%{version}.tar.gz
10 # Source0-md5:  3301685834a37f7005451c803e63a76a
11 URL:            http://home.snafu.de/ohei/vera/vueber-e.html
12 BuildRequires:  dictfmt
13 BuildRequires:  dictzip
14 BuildRequires:  perl-base
15 BuildRequires:  rpmbuild(macros) >= 1.268
16 Requires:       %{_sysconfdir}/dictd
17 Requires:       dictd
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This package contains V.E.R.A, version %{version}, formatted for use
22 by the dictionary server in the dictd package.
23
24 %description -l pl.UTF-8
25 Ten pakiet zawiera słownik V.E.R.A w wersji %{version}, sformatowany
26 do użytku z serwerem słownika dictd.
27
28 %prep
29 %setup -q -n %{dictname}-%{version}
30
31 %build
32 %{__perl} -ne 's/\@item (.*)\n/:$1:\n/; print unless /^@/' vera.? | \
33         dictfmt -j -u http://home.snafu.de/ohei/ -s \
34         "V.E.R.A. -- Virtual Entity of Relevant Acronyms (%{version})" %{dictname}
35 dictzip %{dictname}.dict
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
40
41 dictprefix=%{_datadir}/dictd/%{dictname}
42 echo "# Virtual Entity of Relevant Acronyms dictionary
43 database %{dictname} {
44         data  \"$dictprefix.dict.dz\"
45         index \"$dictprefix.index\"
46 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
47 cp -p %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 %service -q dictd restart
54
55 %postun
56 if [ "$1" = 0 ]; then
57         %service -q dictd restart
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README changelog
63 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
64 %{_datadir}/dictd/%{dictname}.*
This page took 0.052539 seconds and 3 git commands to generate.