]> git.pld-linux.org Git - packages/dict-vera.git/blob - dict-vera.spec
- upgraded to 1.19, updated URLs
[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.19
6 Release:        1
7 License:        GPL
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
16 Requires:       dictd
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains V.E.R.A, version %{version}, formatted for use
21 by the dictionary server in the dictd package.
22
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.
26
27 %prep
28 %setup -q -n %{dictname}-%{version}
29
30 %build
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
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
39
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
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 %service -q dictd restart
53
54 %postun
55 if [ "$1" = 0 ]; then
56         %service -q dictd restart
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc README vera.texi
62 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
63 %{_datadir}/dictd/%{dictname}.*
This page took 0.122366 seconds and 3 git commands to generate.