Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/releases/release-110.31/sml-mode/sml-mode.spec
ViewVC logotype

View of /sml/releases/release-110.31/sml-mode/sml-mode.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 750 - (download) (annotate)
Fri Dec 8 15:16:36 2000 UTC (19 years, 8 months ago)
File size: 2615 byte(s)
This commit was manufactured by cvs2svn to create tag
'release-110.31'.
%define emacs		emacs
%define prefix		%{_prefix}
%define datadir		%{_datadir}
%define lispdir		%{datadir}/emacs/site-lisp
%define startupfile	%{lispdir}/site-start.el
%define infodir		%{_infodir}

Summary:	Emacs mode for editing Standard ML source
Name:		sml-mode
Version:	3.9.3
Release:	3
Group:		Applications/Editors
Copyright:	GPL
Packager:	José Romildo Malaquias <romildo@iceb.ufop.br>
Source:		ftp://flint.cs.yale.edu/pub/monnier/sml-mode/sml-mode-%{version}.tar.gz
Buildroot:	%{_tmppath}/%{name}-buildroot
Requires:	%{emacs}
BuildArch:	noarch

%description
SML-MODE is a major Emacs mode for editing Standard ML. It provides syntax
highlighting and automatic indentation and comes with sml-proc which allows
interaction with an inferior SML interactive loop.

%prep
%setup -q -n sml-mode-%{version}
%patch -p1 -b .compat

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{infodir}
make install install_el install_startup \
  prefix=$RPM_BUILD_ROOT%{prefix} \
  datadir=$RPM_BUILD_ROOT%{datadir} \
  infodir=$RPM_BUILD_ROOT%{infodir} \
  lispdir=$RPM_BUILD_ROOT%{lispdir} \
  startupfile=$RPM_BUILD_ROOT%{startupfile} \
  EMACS=%{emacs}

gzip -9f $RPM_BUILD_ROOT%{lispdir}/sml-mode/*.el

sed -e "s|$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{startupfile} > $RPM_BUILD_ROOT%{lispdir}/sml-mode/sml-mode-startup.el

texi2pdf sml-mode.texi

if [ %{xemacs}x!=\%{xemacs}x ]; then
    mkdir -p $RPM_BUILD_ROOT%{lispdir}/../man
    cp -p sml-mode.texi $RPM_BUILD_ROOT%{lispdir}/../man
    echo "%doc %{lispdir}/../man/sml-mode.texi" > files
else
    echo "%doc sml-mode.texi" > files
fi

%post
cat >> %{startupfile} <<EOF
;; sml-mode-start
;; This section was automatically generated by rpm
(load-library "%{lispdir}/sml-mode/sml-mode-startup.el")
;; End of automatically generated section
;; sml-mode-end
EOF

if [ %{xemacs}x=\%{xemacs}x ]; then
  /sbin/install-info %{infodir}/sml-mode.info.gz %{infodir}/dir --section=Emacs
fi

%postun
ed -s %{startupfile} <<EOF
/^;; sml-mode-start$/,/^;; sml-mode-end$/d
wq
EOF
if [ %{xemacs}=\%{xemacs} ]; then
  /sbin/install-info --delete %{infodir}/sml-mode.info.gz %{infodir}/dir
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files -f files
%defattr(-,root,root)
%doc BUGS ChangeLog INSTALL NEWS README TODO
%doc sml-mode.texi sml-mode.pdf
%{lispdir}/sml-mode
%{infodir}/*

%changelog
* Thu Oct  5 2000 José Romildo Malaquias <romildo@iceb.ufop.br>
- Rebuild for Red Hat Linux 7.0

* Thu Aug 17 1999 José Romildo Malaquias <romildo@iceb.ufop.br>
- Version 3.9.3.
- Emacs/XEmacs switching.

* Tue Jun 23 1998 José Romildo Malaquias <romildo@iceb.ufop.br>
- initialization of spec file.


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0