]> git.pld-linux.org Git - SPECS.git/blob - dict-jargon.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / dict-jargon.spec
1 %define         dictname jargon
2 Summary:        The On-Line Hacker Jargon File dictionary for dictd
3 Summary(pl.UTF-8):      Słownik Hacker Jargon dla dictd
4 Name:           dict-%{dictname}
5 Version:        4.4.7
6 Release:        3
7 License:        GPL
8 Group:          Applications/Dictionaries
9 # Source0:      http://www.tuxedo.org/~esr/jargon/jarg433.gz
10 Source0:        http://atos.wmid.amu.edu.pl/~undefine/jarg433.gz
11 # Source0-md5:  dcfee414bc8576e9d6eab9b2980226a0
12 URL:            http://www.dict.org/
13 BuildRequires:  dictfmt
14 BuildRequires:  dictzip
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 The On-Line Hacker Jargon File, version
22 %{version}, formatted for use by the dictionary server in the dictd
23 package.
24
25 %description -l pl.UTF-8
26 Ten pakiet zawiera słownik The On-Line Hacker Jargon File w wersji
27 %{version}, sformatowany do użytku z serwerem słownika dictd.
28
29 %prep
30 %setup -q -c -T
31 %{__gzip} -dc %{SOURCE0} > jarg433
32
33 %build
34 dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
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 "# The On-Line Hacker Jargon File dictionary
43 database %{dictname} {
44         data  \"$dictprefix.dict.dz\"
45         index \"$dictprefix.index\"
46 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
47 mv %{dictname}.* $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 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
63 %{_datadir}/dictd/%{dictname}.*
This page took 0.35674 seconds and 3 git commands to generate.