9cc2bfe
# AucTeX includes preview-latex which allows previeweing directly in the Emacs
9cc2bfe
# buffer. This makes use of preview.sty, a LaTeX class, which is also included
bcf9f0f
# with AucTex. preview-latex can either use a privately installed copy of
9cc2bfe
# preview.sty, or it can use one installed in the system texmf tree. If the
9cc2bfe
# following is set to 1, an add-on LaTeX package will be created which installs
9cc2bfe
# into the system texmf tree, and preview-latex will use that. However, TeXLive
9cc2bfe
# already includes preview.sty and so this may not be desireable -- setting the
9cc2bfe
# following value to 0 means that preview-latex/AucTeX will use a privately
9cc2bfe
# installed copy of preview.sty.
690a3c2
%define separate_preview 1
9cc2bfe
bfe2b43
Summary: 	Enhanced TeX modes for Emacs
247fee4
Name: 		emacs-auctex
5e94a76
Version: 	11.86
b09e92c
Release: 	2%{?dist}
a6b1320
License: 	GPLv3+
247fee4
Group: 		Applications/Editors
247fee4
URL: 		http://www.gnu.org/software/auctex/
247fee4
Obsoletes: 	auctex
247fee4
Provides: 	auctex
247fee4
Conflicts: 	emacspeak < 18
bcf9f0f
Requires: 	emacs(bin) >= %{_emacs_version}
b09e92c
Requires:	ghostscript dvipng
bbd2e73
Requires:	tex(latex) tex(dvips)
9cc2bfe
Requires(pre): 	/sbin/install-info 
9cc2bfe
Requires(post): /sbin/install-info
9cc2bfe
%if %{separate_preview}
9cc2bfe
Requires: 	tex-preview = %{version}-%{release}
9cc2bfe
%endif
9cc2bfe
9cc2bfe
Source0: 	ftp://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz
8bbf381
9cc2bfe
BuildArch: 	noarch
9cc2bfe
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bcf9f0f
BuildRequires: 	emacs texlive-latex texinfo-tex ghostscript
Ed Hill f1bc5de
Ed Hill f1bc5de
%description 
f683237
AUCTeX is an extensible package that supports writing and formatting
f683237
TeX files for most variants of Emacs.
Ed Hill f1bc5de
f683237
AUCTeX supports many different TeX macro packages, including AMS-TeX,
f683237
LaTeX, Texinfo and basic support for ConTeXt.  Documentation can be
f683237
found under /usr/share/doc, e.g. the reference card (tex-ref.pdf) and
f683237
the FAQ. The AUCTeX manual is available in Emacs info (C-h i d m
f683237
AUCTeX RET). On the AUCTeX home page, we provide manuals in various
f683237
formats.
5f9434c
f683237
AUCTeX includes preview-latex support which makes LaTeX a tightly
f683237
integrated component of your editing workflow by visualizing selected
f683237
source chunks (such as single formulas or graphics) directly as images
f683237
in the source buffer.
Ed Hill f1bc5de
Ed Hill f1bc5de
This package is for GNU Emacs.
Ed Hill f1bc5de
5f9434c
%package el
bfe2b43
Summary: 	Elisp source files for %{name}
bfe2b43
Group: 		Applications/Editors
8ee0fc4
Requires: 	%{name} = %{version}-%{release}
5f9434c
5f9434c
%description el
5f9434c
This package contains the source Elisp files for AUCTeX for Emacs.
5f9434c
865b711
%package doc
865b711
Summary:	Documentation in various formats for AUCTeX
865b711
Group:		Documentation
865b711
865b711
%description doc
865b711
Documentation for the AUCTeX package for emacs in various formats,
865b711
including HTML and PDF.
865b711
9cc2bfe
%if %{separate_preview}
9cc2bfe
%package -n tex-preview
bfe2b43
Summary: 	Preview style files for LaTeX
bfe2b43
Group: 		Applications/Publishing
bbd2e73
Requires: 	tex(latex)
9dfd7fe
Obsoletes:	tetex-preview
9dfd7fe
Provides:	tetex-preview
5f9434c
9cc2bfe
%description -n tex-preview 
f683237
The preview package for LaTeX allows for the processing of selected
f683237
parts of a LaTeX input file.  This package extracts indicated pieces
f683237
from a source file (typically displayed equations, figures and
f683237
graphics) and typesets with their base point at the (1in,1in) magic
f683237
location, shipping out the individual pieces on separate pages without
f683237
any page markup.  You can produce either DVI or PDF files, and options
f683237
exist that will set the page size separately for each page.  In that
f683237
manner, further processing (as with Ghostscript or dvipng) will be
f683237
able to work in a single pass.
f683237
f683237
The main purpose of this package is the extraction of certain
bfe2b43
environments (most notably displayed formulas) from LaTeX sources as
f683237
graphics. This works with DVI files postprocessed by either Dvips and
f683237
Ghostscript or dvipng, but it also works when you are using PDFTeX for
f683237
generating PDF files (usually also postprocessed by Ghostscript).
f683237
690a3c2
The tex-preview package is generated from the AUCTeX package for 
f683237
Emacs.
9cc2bfe
%endif
5f9434c
Ed Hill f1bc5de
%prep
Ed Hill f1bc5de
%setup -q -n auctex-%{version}
Ed Hill f1bc5de
Ed Hill f1bc5de
%build
9cc2bfe
%if %{separate_preview}
bfe2b43
%configure --with-emacs 
9cc2bfe
%else
9cc2bfe
%configure --with-emacs --without-texmf-dir
9cc2bfe
%endif
9cc2bfe
Ed Hill f1bc5de
make
8149720
865b711
# Build documentation in various formats
Ed Hill f1bc5de
pushd doc
865b711
make extradist
Ed Hill f1bc5de
popd
Ed Hill f1bc5de
9cc2bfe
# Fix some encodings
ec62c06
iconv -f ISO-8859-1 -t UTF8 RELEASE > RELEASE.utf8 && touch -r RELEASE RELEASE.utf8 && mv RELEASE.utf8 RELEASE
9cc2bfe
Ed Hill f1bc5de
%install
Ed Hill f1bc5de
rm -rf %{buildroot}
bcf9f0f
mkdir -p %{buildroot}%{_emacs_sitestartdir}
bfe2b43
make DESTDIR=%{buildroot} install
8149720
rm -rf %{buildroot}%{_var}
Ed Hill f1bc5de
fd9928c
# Remove /usr/share/doc/auctex directory from buildroot since we don't want doc
fd9928c
# files installed here
fd9928c
rm -rf %{buildroot}%{_docdir}/auctex
fd9928c
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
9cc2bfe
%if %{separate_preview}
690a3c2
%post -n tex-preview
5f9434c
/usr/bin/texhash > /dev/null 2>&1 || :
5f9434c
690a3c2
%postun -n tex-preview
5f9434c
/usr/bin/texhash > /dev/null 2>&1 || :
9cc2bfe
%endif
5f9434c
Ed Hill f1bc5de
%files
Ed Hill f1bc5de
%defattr(-,root,root,-)
8149720
%doc RELEASE COPYING README TODO FAQ CHANGES
Ed Hill f1bc5de
%doc %{_infodir}/*.info*
Ed Hill f1bc5de
%exclude %{_infodir}/dir
bcf9f0f
%{_emacs_sitestartdir}/*
bcf9f0f
%dir %{_emacs_sitelispdir}/auctex
bcf9f0f
%dir %{_emacs_sitelispdir}/auctex/style
bcf9f0f
%{_emacs_sitelispdir}/auctex/*.elc
bcf9f0f
%{_emacs_sitelispdir}/auctex/style/*.elc
bcf9f0f
%{_emacs_sitelispdir}/auctex/.nosearch
bcf9f0f
%{_emacs_sitelispdir}/auctex/style/.nosearch
bcf9f0f
%{_emacs_sitelispdir}/auctex/images
bcf9f0f
%{_emacs_sitelispdir}/tex-site.el
9cc2bfe
%if !%{separate_preview}
bcf9f0f
%{_emacs_sitelispdir}/auctex/latex
bcf9f0f
%{_emacs_sitelispdir}/auctex/doc
9cc2bfe
%endif
Ed Hill f1bc5de
9cc2bfe
%files el
9cc2bfe
%defattr(-,root,root,-)
bcf9f0f
%{_emacs_sitelispdir}/auctex/*.el
bcf9f0f
%{_emacs_sitelispdir}/auctex/style/*.el
865b711
9cc2bfe
%if %{separate_preview}
9cc2bfe
%files -n tex-preview
5f9434c
%defattr(-,root,root,-)
bfe2b43
%{_datadir}/texmf/tex/latex/preview
bfe2b43
%{_datadir}/texmf/doc/latex/styles
9cc2bfe
%endif
5f9434c
9cc2bfe
%files doc
9cc2bfe
%doc doc/*.{dvi,ps,pdf}
9cc2bfe
%doc doc/html
5f9434c
Ed Hill f1bc5de
%changelog
b09e92c
* Sun May 23 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-2
b09e92c
- Drop Requires for evince (rhbz 595104)
b09e92c
5e94a76
* Sat Mar  6 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-1
5e94a76
- Update to 11.86
5e94a76
- Drop unneeded patch for PDF and HTML viewing
5e94a76
8bbf381
* Thu Jan 28 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-11
8bbf381
- Add patch to use evince for PDF file viewing and xdg-open for html file
8bbf381
  viewing
8bbf381
- Add Requires for evince
8bbf381
bcf9f0f
* Sat Nov  7 2009 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-10
bcf9f0f
- Update spec file to use macros defined in /etc/rpm/macros.emacs
bcf9f0f
- Fix typo in spec comments
bcf9f0f
085e39e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.85-9
085e39e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
085e39e
596a8aa
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.85-8
596a8aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
596a8aa
50c4d74
* Sun Feb 24 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-7
50c4d74
- Add Requires for dvipng
50c4d74
ec62c06
* Sat Feb 16 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-6
ec62c06
- Preserve timestamp of RELEASE when converting to UTF8
ec62c06
2ad94a6
* Wed Feb 13 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-5
2ad94a6
- Re-add creation of emacs_startdir
2ad94a6
fd9928c
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-4
fd9928c
- Remove BuildRequires for pkgconfig - not needed
fd9928c
- Clean out uneeded creation of site start directory
fd9928c
- Remove /usr/share/doc/auctex directory from buildroot
fd9928c
69199e1
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-3
69199e1
- Bump release and rebuild - had forgotten to upload the new sources
69199e1
53b0c67
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-2
53b0c67
- Add BuilddRequires for pkgconfig
53b0c67
a6b1320
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-1
a6b1320
- Update to version 11.85
a6b1320
- Change license to GPLv3+ accordingly
a6b1320
bbd2e73
* Wed Jan 23 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-7
bbd2e73
- tex-preview no longer Requires ghostscript (#429811)
bbd2e73
- Use virtual provides for tex(latex) etc.
bbd2e73
9dfd7fe
* Tue Dec 25 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-6
9dfd7fe
- Add Obsolotes and Provides for tetex-preview to tex-preview (#426758)
9dfd7fe
690a3c2
* Sun Dec 23 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-5
690a3c2
- Enable building of separate tex-preview package
690a3c2
- Remove a few residual tetex references
690a3c2
9cc2bfe
* Sun Dec 16 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-4
9cc2bfe
- Add macros for automatic detection of Emacs version, site-lisp directory etc
9cc2bfe
- Make building of tex-preview subpackage optional, and disable for now
9cc2bfe
- Adjust Requires and BuildRequires for texlive
9cc2bfe
- Remove auctex-init.el since not needed
9cc2bfe
- Make RELEASE utf8
9cc2bfe
8ee0fc4
* Sat Aug  4 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-3
8ee0fc4
- Clarify license version
8ee0fc4
- Correct version and release requirement for the el package
8ee0fc4
6de724f
* Sat Jan 13 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-2
6de724f
- Update BuildRequires for texinfo-tex package
6de724f
865b711
* Sat Jan 13 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-1
865b711
- Update to version 11.84
865b711
- Build all documentation and package in a -doc package
865b711
93bc040
* Mon Aug 28 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-7
93bc040
- Bump release for FC-6 mass rebuild
93bc040
8ba4e8d
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-6
8ba4e8d
- Remove debug patch entry
8ba4e8d
4095d7f
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-5
4095d7f
- Bump release
4095d7f
c40a58f
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-4
c40a58f
- Bump release
c40a58f
bfe2b43
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-3
bfe2b43
- Sync with FC-5 spec file which includes the following changes
bfe2b43
- No longer use makeinstall macro
bfe2b43
- No longer specify texmf-dir, tex-dir for configure
bfe2b43
- Main package now owns the site-lisp auctex and styles directories
bfe2b43
- Place preview.dvi in correct directory, and have tetex-preview own
bfe2b43
  it
bfe2b43
- General cleanups
bfe2b43
22da8a1
* Sat Jun 10 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-4
22da8a1
- Bump release
22da8a1
f683237
* Sat Jun 10 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-3
f683237
- Bump release. Wrap descriptions at column 70.
f683237
fe5e192
* Sat Jun 10 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-1
fe5e192
- Update to 11.83
fe5e192
- Add specific release requirement to tetex-preview Requires of main package
fe5e192
247fee4
* Wed May 24 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-12
247fee4
- Bump version number.
247fee4
247fee4
* Wed May 24 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-11
247fee4
- Fix up whitespace for Ed. Bump version number.
247fee4
5f9434c
* Thu May 18 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-9
5f9434c
- Split out tetex-preview subpackage
5f9434c
- Split out source elisp files
5f9434c
- Update package descriptions
5f9434c
02b4d8a
* Mon May  1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-8
02b4d8a
- Add tetex-latex to BuildRequires
02b4d8a
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