aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/ProofGeneral.spec
blob: 37c50d6e4fdef1a48c2ac7a8446492e28aebc293 (plain)
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
Summary:	Proof General, Emacs interface for Proof Assistants
Name:		ProofGeneral
Version:	3.4pre020718
Release:	1
Group:		Applications/Editors/Emacs
Copyright:	LFCS, University of Edinburgh
Url:		http://www.proofgeneral.org/
Packager:	David Aspinall <da@dcs.ed.ac.uk>
Source:		http://www.proofgeneral.org/ProofGeneral-3.4pre020718.tar.gz
BuildRoot:	/tmp/ProofGeneral-root
PreReq:		/sbin/install-info
Prefixes:	/usr/share/emacs /usr/bin /usr/info
BuildArchitectures: noarch

%description
Proof General is a generic Emacs interface for proof assistants,
suitable for use by pacifists and Emacs militants alike.
It is supplied ready-customized for LEGO, Coq, and Isabelle.
You can adapt Proof General to other proof assistants if you know a
little bit of Emacs Lisp.

To use Proof General, use the command `proofgeneral', which launches
XEmacs (or Emacs) for you, or add the line:

   (load-file "/usr/share/emacs/ProofGeneral/generic/proof-site.el")

to your .emacs file so Proof General is available whenever 
you run Emacs.

%changelog
* Fri May  4 2001 David Aspinall <da@dcs.ed.ac.uk> 
- Changelog in CVS now; official spec file developed with source.

%prep
%setup

%build
[ -n "${RPM_BUILD_ROOT}" ] && rm -rf ${RPM_BUILD_ROOT}

%install
mkdir -p ${RPM_BUILD_ROOT}/usr/share/emacs/ProofGeneral

# Put binaries in proper place
mkdir -p ${RPM_BUILD_ROOT}/usr/bin
mv bin/proofgeneral lego/legotags coq/coqtags isar/isartags ${RPM_BUILD_ROOT}/usr/bin

# Put info file in proper place, compress it.
mkdir -p ${RPM_BUILD_ROOT}/usr/info
mv doc/ProofGeneral.info doc/ProofGeneral.info-* ${RPM_BUILD_ROOT}/usr/info
mv doc/PG-adapting.info  doc/PG-adapting.info-*  ${RPM_BUILD_ROOT}/usr/info
gzip ${RPM_BUILD_ROOT}/usr/info/ProofGeneral.info  ${RPM_BUILD_ROOT}/usr/info/ProofGeneral.info-*
gzip ${RPM_BUILD_ROOT}/usr/info/PG-adapting.info ${RPM_BUILD_ROOT}/usr/info/PG-adapting.info-*
# Remove duff bits
rm -f doc/dir doc/localdir 

# Put icons and menu entry into suitable place (at least for Mandrake)
mkdir -p ${RPM_BUILD_ROOT}/usr/share/icons/mini
cp images/pgmini.xpm ${RPM_BUILD_ROOT}/usr/share/icons/mini
cp images/pgicon.png ${RPM_BUILD_ROOT}/usr/share/icons
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/menu
mv etc/ProofGeneral.menu ${RPM_BUILD_ROOT}/usr/lib/menu/ProofGeneral

for f in */README; do mv $f $f.`basename $f`; done

cp -pr phox acl2 twelf coq lego isa isar hol98 images generic ${RPM_BUILD_ROOT}/usr/share/emacs/ProofGeneral

%clean
if [ "X" != "${RPM_BUILD_ROOT}X" ]; then
    rm -rf $RPM_BUILD_ROOT
fi

%post
/sbin/install-info /usr/info/ProofGeneral.info.* /usr/info/dir
/sbin/install-info /usr/info/PG-adapting.info.* /usr/info/dir

%preun
/sbin/install-info --delete /usr/info/ProofGeneral.info.* /usr/info/dir
/sbin/install-info --delete /usr/info/PG-adapting.info.* /usr/info/dir

%files
%attr(-,root,root) %doc AUTHORS BUGS CHANGES COPYING INSTALL README.* REGISTER doc/* */README.*
%attr(-,root,root) /usr/info/ProofGeneral.info.*
%attr(-,root,root) /usr/info/ProofGeneral.info-*.*
%attr(-,root,root) /usr/info/PG-adapting.info.*
%attr(-,root,root) /usr/info/PG-adapting.info-*.*
%attr(-,root,root) /usr/bin/proofgeneral
%attr(-,root,root) /usr/bin/coqtags
%attr(-,root,root) /usr/bin/legotags
%attr(-,root,root) /usr/bin/isartags
%attr(-,root,root) /usr/share/icons/pgicon.png
%attr(-,root,root) /usr/share/icons/mini/pgmini.xpm
%attr(-,root,root) /usr/lib/menu/ProofGeneral
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/images
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/generic
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/coq
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/lego
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/isa
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/isar
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/hol98
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/phox
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/acl2
%attr(0755,root,root) %dir /usr/share/emacs/ProofGeneral/twelf
%attr(-,root,root) /usr/share/emacs/ProofGeneral/images/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/generic/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/coq/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/lego/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/isa/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/isar/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/hol98/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/phox/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/acl2/*
%attr(-,root,root) /usr/share/emacs/ProofGeneral/twelf/*