forked from emacs-ess/ESS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RPM.spec.in
131 lines (105 loc) · 3.84 KB
/
RPM.spec.in
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# This is an RPM spec file that specifies how to package
# ESS for Fedora Core Linux and, possibly, similar systems.
%define name emacs-ess
%define version @@VERSION@@
%define release 1.tgm
Summary: Emacs Speaks Statistics add-on package for Emacs
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Applications/Editors
Source: http://ESS.R-project.org/downloads/ess/ess-%{version}.tgz
URL: http://ESS.R-project.org/
Packager: Detlef Steuer <.........de>
BuildRoot: %{_tmppath}/%{name}-root
Prefix: %{_prefix}
BuildArchitectures: noarch
BuildRequires: emacs
Requires: emacs
%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 ess-%{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
README for %{name}-%{version}-%{release} RPM package
Generally, there will be no need to modify your .emacs file in order
to use the features of this package -- they are enabled by default
when you start Emacs.
Cheers,
Tom
--
Tom Moertel <[email protected]>
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/%{name}-%{version}
INFODIR=${RPM_BUILD_ROOT}%{_infodir}
%{__install} -D %{name}-init.el $INITDIR/%{name}-init.el
%{__install} -d $PKGLISP
%{__install} -d $INFODIR
%{__make} install \
PREFIX=${RPM_BUILD_ROOT}%{_prefix} \
LISPDIR=$PKGLISP \
INFODIR=$INFODIR
%{__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
%dir %{_datadir}/emacs/site-lisp/%{name}-%{version}
%{_datadir}/emacs/site-lisp/%{name}-%{version}/*
%{_datadir}/emacs/site-lisp/site-start.d/*
%{_infodir}/*.gz
%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
* Fri Oct 15 2004 Tom Moertel <[email protected]> 5.2.3-1.tgm
- Updated to ESS 5.2.3.
* Fri Aug 27 2004 Tom Moertel <[email protected]> 5.2.2-3.tgm
- Updated ESS URL.
- Fixed Summary.
* Fri Aug 27 2004 Tom Moertel <[email protected]> 5.2.2-2.tgm
- Fixed bug: Forgot to include ESS's etc/ directory.
* Thu Aug 26 2004 Tom Moertel <[email protected]> 5.2.2-1.tgm
- Initial build.