%define startupdir %{_datadir}/emacs/site-lisp/site-start.d/
%define startupfile %{startupdir}/auctex-init.el
Summary: Enhanced TeX modes for Emacsen
Name: emacs-auctex
Version: 11.82
Release: 6%{?dist}
License: GPL
Group: Applications/Editors
URL: http://www.gnu.org/software/auctex/
Source0: ftp://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: auctex
Conflicts: emacspeak < 18
Provides: auctex
Requires: emacs emacs-common
BuildRequires: emacs tetex tetex-dvips texinfo
%description
AUCTeX is an extensible package that supports writing and formatting
TeX files for most variants of Emacs.
AUCTeX supports many different TeX macro packages, including AMS-TeX,
LaTeX, Texinfo and basic support for ConTeXt. Documentation can be
found under /usr/share/doc, e.g. the reference card (tex-ref.pdf) and
the FAQ. The AUCTeX manual is available in Emacs info (C-h i d m
AUCTeX RET). On the AUCTeX home page, we provide manuals in various
formats.
This package is for GNU Emacs.
%prep
%setup -q -n auctex-%{version}
%build
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/preview
%configure --with-emacs --without-texmf-dir
make
pushd doc
make auctex.info tex-ref.pdf
popd
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp/site-start.d,%{_infodir}}
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/preview
%makeinstall
mkdir -p %{buildroot}%{startupdir}
cat <<EOF > %{buildroot}%{startupfile}
;; This enables AUCTeX globally.
;; See (info "(auctex)Introduction") on how to disable AUCTeX.
;; Created for %{name}-%{version}-%{release}.noarch.rpm
(load "auctex.el" nil t t)
;; This enables preview-latex globally.
;; Created for %{name}-%{version}-%{release}.noarch.rpm
(load "preview-latex.el" nil t t)
EOF
rm -rf %{buildroot}%{_var}
#rm -f %{buildroot}%{_datadir}/emacs/site-lisp/auctex/style/.nosearch
%clean
rm -rf %{buildroot}
%post
/sbin/install-info %{_infodir}/auctex.info %{_infodir}/dir 2>/dev/null || :
/sbin/install-info %{_infodir}/preview-latex.info %{_infodir}/dir 2>/dev/null || :
%preun
if [ $1 -eq 0 ]; then
/sbin/install-info --delete %{_infodir}/auctex.info %{_infodir}/dir 2>/dev/null || :
/sbin/install-info --delete %{_infodir}/preview-latex.info %{_infodir}/dir 2>/dev/null || :
fi
%files
%defattr(-,root,root,-)
%doc RELEASE COPYING README TODO FAQ CHANGES
%doc doc/tex-ref.pdf
%doc %{_infodir}/*.info*
%exclude %{_infodir}/dir
%{startupdir}
%{_datadir}/emacs/site-lisp/auctex
%{_datadir}/emacs/site-lisp/tex-site.el
%changelog
* Mon May 1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-6
- Leave .nosearch file in styles directory - this directory shouldn't be in the load-path
* Mon May 1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-5
- Move installation of the preview style files out of the texmf tree for now
* Mon Apr 24 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-4
- Added preview-latex
- Removed INSTALL document from package (not necessary)
- Clean up generation of startup files from spec file
* Thu Apr 20 2006 Ed Hill <ed@eh3.com> - 11.82-3
- fix startup file per bug# 189488
* Sun Apr 9 2006 Ed Hill <ed@eh3.com> - 11.82-2
- rebuild
* Sun Apr 9 2006 Ed Hill <ed@eh3.com> - 11.82-1
- update to 11.82
* Fri Sep 30 2005 Ed Hill <ed@eh3.com> - 11.81-2
- fix stupid tagging mistake
* Fri Sep 30 2005 Ed Hill <ed@eh3.com> - 11.81-1
- update to 11.81
- disable preview for now since it needs some packaging work
* Tue Sep 6 2005 Ed Hill <ed@eh3.com> - 11.55-5
- bugzilla 167439
* Tue Aug 9 2005 Ed Hill <ed@eh3.com> - 11.55-4
- call it BuildArch
* Tue Aug 9 2005 Ed Hill <ed@eh3.com> - 11.55-3
- add Requires and BuildRequires
* Mon Aug 8 2005 Ed Hill <ed@eh3.com> - 11.55-2
- modify for acceptance into Fedora Extras
* Fri Jan 21 2005 David Kastrup <dak@gnu.org>
- Conflict with outdated Emacspeak versions
* Fri Jan 14 2005 David Kastrup <dak@gnu.org>
- Install and remove auctex.info, not auctex
* Thu Aug 19 2004 David Kastrup <dak@gnu.org>
- Change tex-site.el to overwriting config file mode. New naming scheme.
* Mon Aug 16 2004 David Kastrup <dak@gnu.org>
- Attempt a bit of SuSEism. Might work if we are lucky.
* Sat Dec 7 2002 David Kastrup <David.Kastrup@t-online.de>
- Change addresses to fit move to Savannah.
* Mon Apr 15 2002 Jan-Ake Larsson <jalar@imf.au.dk>
- Adjusted TeX-macro-global and put autoactivation in preinstall
script so that it can be chosen at install time.
* Tue Feb 19 2002 Jan-Ake Larsson <jalar@imf.au.dk>
- Added site-start.el support
* Sat Feb 16 2002 Jan-Ake Larsson <jalar@imf.au.dk>
- Prerelease 11.11