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