]> git.pld-linux.org Git - packages/dict-jargon.git/blame_incremental - dict-jargon.spec
- rel 3 (use %service)
[packages/dict-jargon.git] / dict-jargon.spec
... / ...
CommitLineData
1%define dictname jargon
2Summary: The On-Line Hacker Jargon File dictionary for dictd
3Summary(pl.UTF-8): Słownik Hacker Jargon dla dictd
4Name: dict-%{dictname}
5Version: 4.4.7
6Release: 3
7License: GPL
8Group: Applications/Dictionaries
9# Source0: http://www.tuxedo.org/~esr/jargon/jarg433.gz
10Source0: http://atos.wmid.amu.edu.pl/~undefine/jarg433.gz
11# Source0-md5: dcfee414bc8576e9d6eab9b2980226a0
12URL: http://www.dict.org/
13BuildRequires: dictfmt
14BuildRequires: dictzip
15BuildRequires: rpmbuild(macros) >= 1.268
16Requires: %{_sysconfdir}/dictd
17Requires: dictd
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21This package contains The On-Line Hacker Jargon File, version
22%{version}, formatted for use by the dictionary server in the dictd
23package.
24
25%description -l pl.UTF-8
26Ten 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
34dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
35dictzip %{dictname}.dict
36
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
40
41dictprefix=%{_datadir}/dictd/%{dictname}
42echo "# The On-Line Hacker Jargon File dictionary
43database %{dictname} {
44 data \"$dictprefix.dict.dz\"
45 index \"$dictprefix.index\"
46}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
47mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%post
53%service -q dictd restart
54
55%postun
56if [ "$1" = 0 ]; then
57 %service -q dictd restart
58fi
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.478026 seconds and 5 git commands to generate.