File: sml-mode.spec

package info (click to toggle)
sml-mode 6.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 420 kB
  • sloc: lisp: 3,769; makefile: 6; sh: 5
file content (67 lines) | stat: -rw-r--r-- 1,672 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%define lispdir		%{_datadir}/emacs/site-lisp
%define startupfile	%{lispdir}/site-start.el

Summary:	Emacs mode for editing Standard ML source code
Name:		sml-mode
Version:	$Name$
Release:	0.1
Group:		Applications/Editors
Copyright:	GPL
Packager:	Stefan Monnier
Source:		http://iro.umontreal.ca/~monnier/elisp/%{name}.tar.gz
Buildroot:	%{_tmppath}/%{name}-buildroot
BuildPreReq:	emacs >= 20 xemacs >= 21
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 %{name}

%install
make install \
  prefix=%{buildroot}%{_prefix} \
  infodir=%{buildroot}%{_infodir} \
  lispdir=%{buildroot}%{lispdir}
gzip -9f %{buildroot}%{lispdir}/sml-mode/*.el

texi2pdf sml-mode.texi

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

/sbin/install-info %{_infodir}/sml-mode.info.gz %{_infodir}/dir

%postun
ed -s %{lispdir}/site-start.el <<EOF
/^;; sml-mode-start$/,/^;; sml-mode-end$/d
wq
EOF

/sbin/install-info --delete %{_infodir}/sml-mode.info.gz %{_infodir}/dir \
    --section=Emacs \
    --entry="* SML: (sml-mode).    Editing & Running Standard ML from Emacs"

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc BUGS ChangeLog INSTALL NEWS README TODO
%doc sml-mode.texi sml-mode.pdf
%doc %{_infodir}/*.info*
%dir %{lispdir}/%{name}
%{lispdir}/%{name}/*.elc
%{lispdir}/%{name}/*.el
%{lispdir}/%{name}/*.el.*

%changelog