# This is an RPM spec file that specifies how to package # ESS for Fedora Core Linux and, possibly, similar systems. # $Id: emacs-ess.spec,v 1.12 2005/04/18 15:41:18 thor Exp $ %define pkg ess Summary: Emacs Speaks Statistics add-on package for Emacs Name: emacs-ess Version: 5.3.4 Release: 1.tgm License: GPL Group: Applications/Editors Source: http://ESS.R-project.org/downloads/ess/ess-%{version}.tgz URL: http://ESS.R-project.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Prefix: %{_prefix} BuildArch: noarch BuildRequires: emacs texinfo Requires: emacs-common /sbin/install-info %description This package provides Emacs Speaks Statistics (ESS), which provides Emacs-based front ends for popular statistics packages. ESS provides an intelligent, consistent interface between the user and the software. ESS interfaces with S-PLUS, R, SAS, BUGS and other statistical analysis packages under the Unix, Microsoft Windows, and Apple Mac OS operating systems. ESS is a package for the GNU Emacs and XEmacs text editors whose features ESS uses to streamline the creation and use of statistical software. ESS knows the syntax and grammar of statistical analysis packages and provides consistent display and editing features based on that knowledge. ESS assists in interactive and batch execution of statements written in these statistical analysis languages. %prep %setup -n %{pkg}-%{version} ( cd doc && chmod u+w html info ) # fix perms to ensure builddir can be deleted %build make # create an init file that is loaded when a user starts up emacs to # tell emacs to autoload our package's Emacs code when needed cat > %{name}-init.el <<"EOF" ;;; Set up %{name} for Emacs. ;;; ;;; This file is automatically loaded by emacs's site-start.el ;;; when you start a new emacs session. (require 'ess-site) EOF # create a README.RPM file to document any quirks of this package cat > README.RPM < EOF %install %{__rm} -rf ${RPM_BUILD_ROOT} INITDIR=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/site-start.d PKGLISP=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{pkg} INFODIR=${RPM_BUILD_ROOT}%{_infodir} %{__install} -m 755 -d $INITDIR %{__install} -m 644 %{name}-init.el $INITDIR/%{pkg}-init.el %{__install} -m 755 -d $PKGLISP %{__install} -m 755 -d $INFODIR %{__make} install \ PREFIX=${RPM_BUILD_ROOT}%{_prefix} \ LISPDIR=$PKGLISP \ INFODIR=$INFODIR \ ETCDIR=$PKGLISP/etc %{__rm} -f $INFODIR/dir # don't package but instead update in pre and post %{__cp} -a etc $PKGLISP # tuck ess's /etc into lisp dir for easy transport # Uncomment to print the README file after install. # # %post # echo # cat %{_defaultdocdir}/%{name}-%{version}/README.RPM # echo %clean %{__rm} -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc README README.RPM ANNOUNCE COPYING VERSION ChangeLog doc %doc %{_infodir}/*.gz %dir %{_datadir}/emacs/site-lisp/%{pkg} %{_datadir}/emacs/site-lisp/%{pkg}/* %{_datadir}/emacs/site-lisp/site-start.d/* %post [ -f /usr/share/info/ess.info.gz ] && \ /sbin/install-info /usr/share/info/ess.info.gz /usr/share/info/dir || : %preun if [ $1 = 0 ]; then [ -f /usr/share/info/ess.info.gz ] && \ /sbin/install-info --delete /usr/share/info/ess.info.gz \ /usr/share/info/dir || : fi %changelog * Thu Apr 26 2007 - 5.3.4-1.tgm - Updated for ESS 5.3.4 * Tue Sep 26 2006 - 5.3.3-1.tgm - Updated for ESS 5.3.3 * Tue Sep 19 2006 - 5.3.2-1.tgm - Updated for ESS 5.3.2 * Sun Jun 4 2006 - 5.3.1-1.tgm - Updated to ESS 5.3.1 * Tue May 16 2006 - 5.3.0-2.tgm - Moved site-list%{name}-%{version} to site-lisp/%{pgk} * Sat Apr 8 2006 - 5.3.0-1.tgm - Updated for ESS 5.3.0 * Tue Feb 7 2006 Tom Moertel - 5.2.12-1.tgm - Updated for ESS 5.2.12 * Tue Jan 3 2006 Tom Moertel - 5.2.11-2.tgm - Updated BuildRoot tag, per Fedora Extras packaging guidelines - Removed Packager tag, per Fedora Extras packaging guidelines * Sat Dec 17 2005 Tom Moertel - 5.2.11-1.tgm - Updated for ESS 5.2.11. * Mon Sep 12 2005 Tom Moertel - 5.2.10-1.tgm - Updated to ESS 5.2.10 - Changed Copyright tag to License - Added texinfo to BuildRequires * Thu May 12 2005 Tom Moertel - 5.2.8-1.tgm - Updated to ESS 5.2.8 * Mon Apr 18 2005 Tom Moertel - 5.2.7-1.tgm - Updated to 5.2.7 * Tue Feb 1 2005 Tom Moertel - 5.2.5-1.tgm - Updated for ESS 5.2.5. * Thu Jan 13 2005 Tom Moertel - 5.2.4-1.tgm - Updated for ESS 5.2.4. * Sat Nov 13 2004 Tom Moertel 5.2.3-2.tgm - Fixed permissions on ...-init.el file * Fri Oct 15 2004 Tom Moertel 5.2.3-1.tgm - Updated to ESS 5.2.3. * Fri Aug 27 2004 Tom Moertel 5.2.2-3.tgm - Updated ESS URL. - Fixed Summary. * Fri Aug 27 2004 Tom Moertel 5.2.2-2.tgm - Fixed bug: Forgot to include ESS's etc/ directory * Thu Aug 26 2004 Tom Moertel 5.2.2-1.tgm - Initial build