-### Comment
-# This file is modified automatically by 'xemacs-adapter' script
-# from PLD-project CVS repository: cvs.pld.org.pl, module SPECS
-# For more details see comments in this script
-### EndComment
-
-Summary: A Unix process browsing tool.
-Summary(pl): A Unix process browsing tool.
-
-Name: xemacs-view-process-pkg
+Summary: A Unix process browsing tool
+Summary(pl): Narzêdzie do przegl±dania procesów
+Name: xemacs-view-process-pkg
%define srcname view-process
-Version: 1.08
-Release: 1
-
-### Preamble
+Version: 1.13
+Release: 2
License: GPL
-Group: Applications/Editors/Emacs
-Group(pl): Aplikacje/Edytory/Emacs
-URL: http://www.xemacs.org
-Source: ftp://ftp.xemacs.org/packages/%{srcname}-%{version}-pkg.tar.gz
-BuildRoot: /tmp/%{name}-%{version}-root
+Group: Applications/Editors/Emacs
+Source0: ftp://ftp.xemacs.org/xemacs/packages/%{srcname}-%{version}-pkg.tar.gz
+# Source0-md5: 05eca7ec61259b47f2a741fc30dcc65f
+URL: http://www.xemacs.org/
BuildArch: noarch
Conflicts: xemacs-sumo
-Requires: xemacs
-Requires: xemacs-base-pkg
-### EndPreamble
+Requires: xemacs
+Requires: xemacs-base-pkg
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
+A Unix process browsing tool.
+%description -l pl
+Narzêdzie do przegl±dania procesów.
-%description -l pl
-
-
-### Main
%prep
%setup -q -c
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/xemacs-packages
+
cp -a * $RPM_BUILD_ROOT%{_datadir}/xemacs-packages
-gzip -9nf lisp/view-process/ChangeLog
+
+# remove .el file if corresponding .elc file exists
+find $RPM_BUILD_ROOT -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
%clean
rm -fr $RPM_BUILD_ROOT
-### EndMain
-
-### PrePost
-### EndPrePost
-### Files
%files
%defattr(644,root,root,755)
+%doc lisp/view-process/ChangeLog
%dir %{_datadir}/xemacs-packages/lisp/*
-%{_datadir}/xemacs-packages/lisp/*/*.elc
-%doc lisp/view-process/ChangeLog.gz
-### EndFiles
+%{_datadir}/xemacs-packages/lisp/*/*.el*