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

SCM Repository

[smlnj] Diff of /sml/trunk/sml-mode/sml-mode.spec
ViewVC logotype

Diff of /sml/trunk/sml-mode/sml-mode.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 706, Sat Oct 7 03:21:46 2000 UTC revision 766, Sun Dec 24 19:59:32 2000 UTC
# Line 1  Line 1 
1  %define emacs           emacs  %define lispdir         %{_datadir}/emacs/site-lisp
 %define prefix          %{_prefix}  
 %define datadir         %{_datadir}  
 %define lispdir         %{datadir}/emacs/site-lisp  
2  %define startupfile     %{lispdir}/site-start.el  %define startupfile     %{lispdir}/site-start.el
 %define infodir         %{_infodir}  
3    
4  Summary:        Emacs mode for editing Standard ML source  Summary:        Emacs mode for editing Standard ML source code
5  Name:           sml-mode  Name:           sml-mode
6  Version:        3.9.3  Version:        $Name$
7  Release:        3  Release:        0.1
8  Group:          Applications/Editors  Group:          Applications/Editors
9  Copyright:      GPL  Copyright:      GPL
10  Packager:       José Romildo Malaquias <romildo@iceb.ufop.br>  Packager:       Stefan Monnier
11  Source:         ftp://flint.cs.yale.edu/pub/monnier/sml-mode/sml-mode-%{version}.tar.gz  Source:         ftp://flint.cs.yale.edu/pub/monnier/%{name}/%{name}.tar.gz
12  Buildroot:      %{_tmppath}/%{name}-buildroot  Buildroot:      %{_tmppath}/%{name}-buildroot
13  Requires:       %{emacs}  BuildPreReq:    emacs >= 20 xemacs >= 21
14  BuildArch:      noarch  BuildArch:      noarch
15    
16  %description  %description
17  SML-MODE is a major Emacs mode for editing Standard ML. It provides syntax  SML-MODE is a major Emacs mode for editing Standard ML. It provides
18  highlighting and automatic indentation and comes with sml-proc which allows  syntax highlighting and automatic indentation and comes with sml-proc
19  interaction with an inferior SML interactive loop.  which allows interaction with an inferior SML interactive loop.
20    
21  %prep  %prep
22  %setup -q -n sml-mode-%{version}  %setup -q -n %{name}
 %patch -p1 -b .compat  
23    
24  %install  %install
25  rm -rf $RPM_BUILD_ROOT  make install \
26  mkdir -p $RPM_BUILD_ROOT%{infodir}    prefix=%{buildroot}%{_prefix} \
27  make install install_el install_startup \    infodir=%{buildroot}%{_infodir} \
28    prefix=$RPM_BUILD_ROOT%{prefix} \    lispdir=%{buildroot}%{lispdir}
29    datadir=$RPM_BUILD_ROOT%{datadir} \  gzip -9f %{buildroot}%{lispdir}/sml-mode/*.el
   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  
30    
31  texi2pdf sml-mode.texi  texi2pdf sml-mode.texi
32    
 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  
   
33  %post  %post
34  cat >> %{startupfile} <<EOF  cat >> %{lispdir}/site-start.el <<EOF
35  ;; sml-mode-start  ;; sml-mode-start
36  ;; This section was automatically generated by rpm  ;; This section was automatically generated by rpm
37  (load-library "%{lispdir}/sml-mode/sml-mode-startup.el")  (load "sml-mode-startup")
38  ;; End of automatically generated section  ;; End of automatically generated section
39  ;; sml-mode-end  ;; sml-mode-end
40  EOF  EOF
41    
42  if [ %{xemacs}x=\%{xemacs}x ]; then  /sbin/install-info %{_infodir}/sml-mode.info.gz %{_infodir}/dir \
43    /sbin/install-info %{infodir}/sml-mode.info.gz %{infodir}/dir --section=Emacs      --section=Emacs \
44  fi      --entry="* SML: (sml-mode).    Editing & Running Standard ML from Emacs"
45    
46  %postun  %postun
47  ed -s %{startupfile} <<EOF  ed -s %{lispdir}/site-start.el <<EOF
48  /^;; sml-mode-start$/,/^;; sml-mode-end$/d  /^;; sml-mode-start$/,/^;; sml-mode-end$/d
49  wq  wq
50  EOF  EOF
51  if [ %{xemacs}=\%{xemacs} ]; then  
52    /sbin/install-info --delete %{infodir}/sml-mode.info.gz %{infodir}/dir  /sbin/install-info --delete %{_infodir}/sml-mode.info.gz %{_infodir}/dir \
53  fi      --section=Emacs \
54        --entry="* SML: (sml-mode).    Editing & Running Standard ML from Emacs"
55    
56  %clean  %clean
57  rm -rf $RPM_BUILD_ROOT  rm -rf %{buildroot}
58    
59  %files -f files  %files
60  %defattr(-,root,root)  %defattr(-,root,root)
61  %doc BUGS ChangeLog INSTALL NEWS README TODO  %doc BUGS ChangeLog INSTALL NEWS README TODO
62  %doc sml-mode.texi sml-mode.pdf  %doc sml-mode.texi sml-mode.pdf
63  %{lispdir}/sml-mode  %doc %{_infodir}/*.info*
64  %{infodir}/*  %dir %{lispdir}/%{name}
65    %{lispdir}/%{name}/*.elc
66    %{lispdir}/%{name}/*.el
67    %{lispdir}/%{name}/*.el.*
68    
69  %changelog  %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.  
   

Legend:
Removed from v.706  
changed lines
  Added in v.766

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