]> git.pld-linux.org Git - packages/dict-jargon.git/blobdiff - dict-jargon.spec
- rel 3 (use %service)
[packages/dict-jargon.git] / dict-jargon.spec
index 0e436460fcaf7b74ecce43484369c037f83328f4..9da3bd60efcf3af2fec56e8baae48a90fc65de87 100644 (file)
@@ -1,57 +1,63 @@
-%define         dictname jargon
+%define                dictname jargon
 Summary:       The On-Line Hacker Jargon File dictionary for dictd
+Summary(pl.UTF-8):     Słownik Hacker Jargon dla dictd
 Name:          dict-%{dictname}
-Version:       4.2.0
-Release:       2
+Version:       4.4.7
+Release:       3
 License:       GPL
 Group:         Applications/Dictionaries
-Group(pl):     Aplikacje/S³owniki
+# Source0:     http://www.tuxedo.org/~esr/jargon/jarg433.gz
+Source0:       http://atos.wmid.amu.edu.pl/~undefine/jarg433.gz
+# Source0-md5: dcfee414bc8576e9d6eab9b2980226a0
 URL:           http://www.dict.org/
-Source0:       ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: dictfmt
 BuildRequires: dictzip
-Requires:      dictd 
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
-BuildArch:     noarch
+Requires:      dictd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%description 
-This package contains The On-Line Hacker Jargon File, version 4.2.0,
-formatted for use by the dictionary server in the dictd package.
+%description
+This package contains The On-Line Hacker Jargon File, version
+%{version}, formatted for use by the dictionary server in the dictd
+package.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera słownik The On-Line Hacker Jargon File w wersji
+%{version}, sformatowany do użytku z serwerem słownika dictd.
 
 %prep
-%setup -q
+%setup -q -c -T
+%{__gzip} -dc %{SOURCE0} > jarg433
 
 %build
-%configure 
-%{__make} db 
+dictfmt -j -u http://www.jargon.org/ -s "Jargon File (4.3.3, 20 Sep 2002)" %{dictname} < jarg433
+dictzip %{dictname}.dict
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
-%{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
+install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
 
 dictprefix=%{_datadir}/dictd/%{dictname}
 echo "# The On-Line Hacker Jargon File dictionary
 database %{dictname} {
-    data  \"$dictprefix.dict.dz\"
-    index \"$dictprefix.index\" 
-}
-" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
+       data  \"$dictprefix.dict.dz\"
+       index \"$dictprefix.index\"
+}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
+mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%postun
-if [ -f /var/lock/subsys/dictd ]; then
-       /etc/rc.d/init.d/dictd restart 1>&2
-fi
-
 %post
-if [ -f /var/lock/subsys/dictd ]; then
-       /etc/rc.d/init.d/dictd restart 1>&2
+%service -q dictd restart
+
+%postun
+if [ "$1" = 0 ]; then
+       %service -q dictd restart
 fi
 
 %files
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/*.dictconf
-%{_datadir}/dictd/%{dictname}*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
+%{_datadir}/dictd/%{dictname}.*
This page took 0.074333 seconds and 4 git commands to generate.