54
58
This package is for GNU Emacs. XEmacs users should use the package system for
57
The package enables AUCTeX system-wide. If you do not want this,
58
install/upgrade with 'rpm --nopre ...' (the activation is done in the
61
The package enables AUCTeX modes system-wide. The README file
62
contains information how users may override this choice.
64
%package -n preview-tetex
65
Summary: LaTeX files for preview.sty
68
Obsoletes: preview-latex-common
69
Provides: preview-tetex preview-latex-common
71
%description -n preview-tetex
72
The LaTeX package preview.sty can be used for extracting selected
73
parts of LaTeX documents into graphics of their own. Various TeX and
74
editing applications use this as a subsystem. AUCTeX by now comes
75
with its own integrated version of preview-latex and the style files
76
and does not require this package, and newer versions of teTeX might
77
already contain preview.sty (in which case the resulting conflict is
78
probably best solved by not installing this package).
65
84
# The below will make the package build from a tar straight from CVS
66
85
# NOT RECOMMENDED, but useful for testing!
67
86
test -f ./configure || ./autogen.sh
68
# --with-texmf-dir overrides local docstrip configurations.
69
%configure "--with-emacs" '--with-texmf-dir=%{_datadir}/texmf'
87
%configure --with-emacs %{extraconfig} INSTALL_INFO=: --without-texmf-dir
72
make auctex.info tex-ref.pdf
76
94
rm -rf %{buildroot}
77
95
mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,%{_infodir}}
78
%makeinstall install-contrib install-info
80
# Remove dir file that has been created by the makeinfo calls because this
81
# file will not been included in the rpm distribution (make RPM 4.1+ happy)
82
rm -f '%{buildroot}%{_infodir}/dir'
85
echo "; Autoactivation of AUCTeX" > %{startupfile}
86
echo "; Created for %{name}-%{version}-%{release}.noarch.rpm" >> \
88
echo "(require 'tex-site)" >> %{startupfile}
97
cat <<EOFA > %{buildroot}%{_datadir}/emacs/site-lisp/suse-start-auctex.el
98
;; suse-start-auctex.el
99
;; This file enables AUCTeX globally:
100
(load "auctex.el" nil t t)
101
;; See (info "(auctex)Introduction") on how to disable AUCTeX.
103
cat <<EOFP > %{buildroot}%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el
104
;; suse-start-preview-latex.el
105
;; This file enables preview-latex globally:
106
(load "preview-latex.el" nil t t)
109
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d
111
%makeinstall install-docs
112
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/preview
113
cp -p preview/latex/*.{sty,def,cfg} %{buildroot}%{_datadir}/texmf/tex/latex/preview
114
touch -a %{buildroot}%{_datadir}/texmf/tex/latex/preview/preview.cfg
115
mkdir -p %{buildroot}%{_datadir}/texmf/doc/latex/styles
116
cp -p preview/latex/preview.dvi %{buildroot}%{_datadir}/texmf/doc/latex/styles
91
119
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/auctex.info
120
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/preview-latex.info
94
123
# $1 is the number of versions of this package installed
95
124
# after this uninstallation
96
125
if [ $1 -eq 0 ]; then
97
126
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/auctex.info
127
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/preview-latex.info
101
130
rm -rf %{buildroot}
132
%post -n preview-tetex
135
%postun -n preview-tetex
138
%files -n preview-tetex
139
%defattr(-,root,root)
140
%{_datadir}/texmf/tex/latex/preview
141
%config %{_datadir}/texmf/tex/latex/preview/preview.cfg
142
%{_datadir}/texmf/doc/latex/styles/preview.dvi
104
145
%defattr(-,root,root)
105
146
%doc RELEASE COPYING INSTALL README TODO FAQ CHANGES
106
147
%doc doc/tex-ref.pdf
148
# %doc --parents preview/RELEASE preview/README preview/INSTALL preview/TODO preview/FAQ
107
149
%doc %{_infodir}/*
150
# %exclude %{_infodir}/dir
108
151
%{_datadir}/emacs/site-lisp/%{name}
109
152
%{_localstatedir}/%{name}
110
153
%config %{_datadir}/emacs/site-lisp/tex-site.el
155
%{_datadir}/emacs/site-lisp/auctex.el
156
%{_datadir}/emacs/site-lisp/preview-latex.el
157
%{_datadir}/emacs/site-lisp/suse-start-auctex.el
158
%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el
160
%{_datadir}/emacs/site-lisp/site-start.d/auctex.el
161
%{_datadir}/emacs/site-lisp/site-start.d/preview-latex.el
166
# Shouldn't changelog include changes in the package instead of changes in the
169
* Tue Jun 6 2006 Reiner Steib <Reiner.Steib@gmx.de>
170
- Update to AUCTeX 11.83
172
* Wed Dec 28 2005 Reiner Steib <Reiner.Steib@gmx.de>
173
- Remove bogus preview directory. Add preview-latex in description.
175
* Sat Dec 17 2005 Reiner Steib <Reiner.Steib@gmx.de>
176
- Update for AUCTeX 11.82.
178
* Tue May 3 2005 David Kastrup <dak@gnu.org>
179
- include preview-latex, so outdate other stuff.
113
181
* Fri Jan 21 2005 David Kastrup <dak@gnu.org>
114
182
- Conflict with outdated Emacspeak versions