Blame SPECS/emacs-auctex.spec

593f41
# AucTeX includes preview-latex which allows previeweing directly in the Emacs
593f41
# buffer. This makes use of preview.sty, a LaTeX class, which is also included
593f41
# with AucTex. preview-latex can either use a privately installed copy of
593f41
# preview.sty, or it can use one installed in the system texmf tree. If the
593f41
# following is set to 1, an add-on LaTeX package will be created which installs
593f41
# into the system texmf tree, and preview-latex will use that. However, TeXLive
593f41
# already includes preview.sty and so this may not be desireable -- setting the
593f41
# following value to 0 means that preview-latex/AucTeX will use a privately
593f41
# installed copy of preview.sty.
593f41
%global separate_preview 1
593f41
593f41
Summary: 	Enhanced TeX modes for Emacs
593f41
Name: 		emacs-auctex
593f41
Version: 	11.87
593f41
Release: 	3%{?dist}
593f41
License: 	GPLv3+ and GFDL
593f41
Group: 		Applications/Editors
593f41
URL: 		http://www.gnu.org/software/auctex/
593f41
Requires: 	emacs(bin) >= %{_emacs_version}
593f41
Requires:	ghostscript dvipng
593f41
Requires:	tex(latex) tex(dvips)
593f41
Requires(pre): 	/sbin/install-info
593f41
Requires(post): /sbin/install-info
593f41
Obsoletes:	emacs-auctex-el <= 11.86-9
593f41
Provides:	emacs-auctex-el <= 11.86-9
593f41
%if %{separate_preview}
593f41
Requires: 	tex-preview = %{version}-%{release}
593f41
%endif
593f41
593f41
Source0: 	ftp://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz
593f41
593f41
BuildArch: 	noarch
593f41
BuildRequires: 	emacs tex(latex) texinfo-tex ghostscript
593f41
593f41
%description
593f41
AUCTeX is an extensible package that supports writing and formatting
593f41
TeX files for most variants of Emacs.
593f41
593f41
AUCTeX supports many different TeX macro packages, including AMS-TeX,
593f41
LaTeX, Texinfo and basic support for ConTeXt.  Documentation can be
593f41
found under /usr/share/doc, e.g. the reference card (tex-ref.pdf) and
593f41
the FAQ. The AUCTeX manual is available in Emacs info (C-h i d m
593f41
AUCTeX RET). On the AUCTeX home page, we provide manuals in various
593f41
formats.
593f41
593f41
AUCTeX includes preview-latex support which makes LaTeX a tightly
593f41
integrated component of your editing workflow by visualizing selected
593f41
source chunks (such as single formulas or graphics) directly as images
593f41
in the source buffer.
593f41
593f41
This package is for GNU Emacs.
593f41
593f41
%package doc
593f41
Summary:	Documentation in various formats for AUCTeX
593f41
Group:		Documentation
593f41
License: 	GFDL
593f41
593f41
%description doc
593f41
Documentation for the AUCTeX package for emacs in various formats,
593f41
including HTML and PDF.
593f41
593f41
%if %{separate_preview}
593f41
%package -n tex-preview
593f41
Summary: 	Preview style files for LaTeX
593f41
Group: 		Applications/Publishing
593f41
Requires: 	tex(latex)
593f41
Obsoletes:	tetex-preview
593f41
Provides:	tetex-preview
593f41
593f41
%description -n tex-preview
593f41
The preview package for LaTeX allows for the processing of selected
593f41
parts of a LaTeX input file.  This package extracts indicated pieces
593f41
from a source file (typically displayed equations, figures and
593f41
graphics) and typesets with their base point at the (1in,1in) magic
593f41
location, shipping out the individual pieces on separate pages without
593f41
any page markup.  You can produce either DVI or PDF files, and options
593f41
exist that will set the page size separately for each page.  In that
593f41
manner, further processing (as with Ghostscript or dvipng) will be
593f41
able to work in a single pass.
593f41
593f41
The main purpose of this package is the extraction of certain
593f41
environments (most notably displayed formulas) from LaTeX sources as
593f41
graphics. This works with DVI files postprocessed by either Dvips and
593f41
Ghostscript or dvipng, but it also works when you are using PDFTeX for
593f41
generating PDF files (usually also postprocessed by Ghostscript).
593f41
593f41
The tex-preview package is generated from the AUCTeX package for
593f41
Emacs.
593f41
%endif
593f41
593f41
%prep
593f41
%setup -q -n auctex-%{version}
593f41
593f41
%build
593f41
%if %{separate_preview}
593f41
%configure --with-emacs --with-texmf-dir=%{_datadir}/texmf
593f41
%else
593f41
%configure --with-emacs --without-texmf-dir
593f41
%endif
593f41
593f41
make
593f41
593f41
# Build documentation in various formats
593f41
pushd doc
593f41
make extradist
593f41
popd
593f41
593f41
# Fix some encodings
593f41
iconv -f ISO-8859-1 -t UTF8 RELEASE > RELEASE.utf8 && touch -r RELEASE RELEASE.utf8 && mv RELEASE.utf8 RELEASE
593f41
593f41
%install
593f41
mkdir -p %{buildroot}%{_emacs_sitestartdir}
593f41
make DESTDIR=%{buildroot} install
593f41
rm -rf %{buildroot}%{_var}
593f41
593f41
# Remove /usr/share/doc/auctex directory from buildroot since we don't want doc
593f41
# files installed here
593f41
rm -rf %{buildroot}%{_docdir}/auctex
593f41
593f41
%post
593f41
/sbin/install-info %{_infodir}/auctex.info %{_infodir}/dir 2>/dev/null || :
593f41
/sbin/install-info %{_infodir}/preview-latex.info %{_infodir}/dir 2>/dev/null || :
593f41
593f41
%preun
593f41
if [ $1 -eq 0 ]; then
593f41
  /sbin/install-info --delete %{_infodir}/auctex.info %{_infodir}/dir 2>/dev/null || :
593f41
  /sbin/install-info --delete %{_infodir}/preview-latex.info %{_infodir}/dir 2>/dev/null || :
593f41
fi
593f41
593f41
%if %{separate_preview}
593f41
%post -n tex-preview
593f41
/usr/bin/texhash > /dev/null 2>&1 || :
593f41
593f41
%postun -n tex-preview
593f41
/usr/bin/texhash > /dev/null 2>&1 || :
593f41
%endif
593f41
593f41
%files
593f41
%doc RELEASE COPYING README TODO FAQ CHANGES
593f41
%doc %{_infodir}/*.info*
593f41
%exclude %{_infodir}/dir
593f41
%{_emacs_sitestartdir}/*
593f41
%dir %{_emacs_sitelispdir}/auctex
593f41
%dir %{_emacs_sitelispdir}/auctex/style
593f41
%{_emacs_sitelispdir}/auctex/*.el
593f41
%{_emacs_sitelispdir}/auctex/*.elc
593f41
%{_emacs_sitelispdir}/auctex/style/*.el
593f41
%{_emacs_sitelispdir}/auctex/style/*.elc
593f41
%{_emacs_sitelispdir}/auctex/.nosearch
593f41
%{_emacs_sitelispdir}/auctex/style/.nosearch
593f41
%{_emacs_sitelispdir}/auctex/images
593f41
%{_emacs_sitelispdir}/tex-site.el
593f41
%if !%{separate_preview}
593f41
%{_emacs_sitelispdir}/auctex/latex
593f41
%{_emacs_sitelispdir}/auctex/doc
593f41
%endif
593f41
593f41
%if %{separate_preview}
593f41
%files -n tex-preview
593f41
%doc COPYING
593f41
%{_datadir}/texmf/tex/latex/preview
593f41
%{_datadir}/texmf/doc/latex/styles
593f41
%endif
593f41
593f41
%files doc
593f41
%doc doc/*.{dvi,ps,pdf}
593f41
%doc doc/html
593f41
593f41
%changelog
593f41
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.87-3
593f41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
593f41
593f41
* Tue Dec  4 2012 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.87-2
593f41
- Fix the install location of the preview tex files
593f41
- Fix the BuildRequires for latex
593f41
593f41
* Mon Dec  3 2012 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.87-1
593f41
- Update to new upstream version 11.87
593f41
593f41
* Wed Oct  3 2012 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-10
593f41
- Fix the Obsoletes and Provides to allow package updating (BZ 862398)
593f41
593f41
* Wed Sep 19 2012 Karel Klíč <kklic@redhat.com> - 11.86-9
593f41
- ELisp source code is no longer distributed in a separate package
593f41
- License filed includes GFDL for the documentation
593f41
593f41
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.86-8
593f41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
593f41
593f41
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.86-7
593f41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
593f41
593f41
* Tue Mar  8 2011 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-6
593f41
- Replace define with global in macro definitions
593f41
- Add patch to fix previewing of equations courtesy of Sato Ichi (BZ 646632)
593f41
- Add defattr to doc sub-package
593f41
593f41
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.86-5
593f41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
593f41
593f41
* Fri Jul 16 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-4
593f41
- Duplicate only the COPYING file and not the other docs in the tex-preview
593f41
  subpackage
593f41
593f41
* Fri Jul 16 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-3
593f41
- Add COPYING file and other docs to the tex-preview subpackage to comply with
593f41
  updated licensing guidelines
593f41
- Remove the no longer needed BuildRoot, %%clean and cleaning of Buildroot
593f41
  inside %%install
593f41
593f41
* Sun May 23 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-2
593f41
- Drop Requires for evince (rhbz 595104)
593f41
593f41
* Sat Mar  6 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.86-1
593f41
- Update to 11.86
593f41
- Drop unneeded patch for PDF and HTML viewing
593f41
593f41
* Thu Jan 28 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-11
593f41
- Add patch to use evince for PDF file viewing and xdg-open for html file
593f41
  viewing
593f41
- Add Requires for evince
593f41
593f41
* Sat Nov  7 2009 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-10
593f41
- Update spec file to use macros defined in /etc/rpm/macros.emacs
593f41
- Fix typo in spec comments
593f41
593f41
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.85-9
593f41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
593f41
593f41
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.85-8
593f41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
593f41
593f41
* Sun Feb 24 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-7
593f41
- Add Requires for dvipng
593f41
593f41
* Sat Feb 16 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-6
593f41
- Preserve timestamp of RELEASE when converting to UTF8
593f41
593f41
* Wed Feb 13 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-5
593f41
- Re-add creation of emacs_startdir
593f41
593f41
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-4
593f41
- Remove BuildRequires for pkgconfig - not needed
593f41
- Clean out uneeded creation of site start directory
593f41
- Remove /usr/share/doc/auctex directory from buildroot
593f41
593f41
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-3
593f41
- Bump release and rebuild - had forgotten to upload the new sources
593f41
593f41
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-2
593f41
- Add BuilddRequires for pkgconfig
593f41
593f41
* Tue Feb 12 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.85-1
593f41
- Update to version 11.85
593f41
- Change license to GPLv3+ accordingly
593f41
593f41
* Wed Jan 23 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-7
593f41
- tex-preview no longer Requires ghostscript (#429811)
593f41
- Use virtual provides for tex(latex) etc.
593f41
593f41
* Tue Dec 25 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-6
593f41
- Add Obsolotes and Provides for tetex-preview to tex-preview (#426758)
593f41
593f41
* Sun Dec 23 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-5
593f41
- Enable building of separate tex-preview package
593f41
- Remove a few residual tetex references
593f41
593f41
* Sun Dec 16 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-4
593f41
- Add macros for automatic detection of Emacs version, site-lisp directory etc
593f41
- Make building of tex-preview subpackage optional, and disable for now
593f41
- Adjust Requires and BuildRequires for texlive
593f41
- Remove auctex-init.el since not needed
593f41
- Make RELEASE utf8
593f41
593f41
* Sat Aug  4 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-3
593f41
- Clarify license version
593f41
- Correct version and release requirement for the el package
593f41
593f41
* Sat Jan 13 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-2
593f41
- Update BuildRequires for texinfo-tex package
593f41
593f41
* Sat Jan 13 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.84-1
593f41
- Update to version 11.84
593f41
- Build all documentation and package in a -doc package
593f41
593f41
* Mon Aug 28 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-7
593f41
- Bump release for FC-6 mass rebuild
593f41
593f41
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-6
593f41
- Remove debug patch entry
593f41
593f41
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-5
593f41
- Bump release
593f41
593f41
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-4
593f41
- Bump release
593f41
593f41
* Sun Jun 18 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-3
593f41
- Sync with FC-5 spec file which includes the following changes
593f41
- No longer use makeinstall macro
593f41
- No longer specify texmf-dir, tex-dir for configure
593f41
- Main package now owns the site-lisp auctex and styles directories
593f41
- Place preview.dvi in correct directory, and have tetex-preview own
593f41
  it
593f41
- General cleanups
593f41
593f41
* Sat Jun 10 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-4
593f41
- Bump release
593f41
593f41
* Sat Jun 10 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-3
593f41
- Bump release. Wrap descriptions at column 70.
593f41
593f41
* Sat Jun 10 2006 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 11.83-1
593f41
- Update to 11.83
593f41
- Add specific release requirement to tetex-preview Requires of main package
593f41
593f41
* Wed May 24 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-12
593f41
- Bump version number.
593f41
593f41
* Wed May 24 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-11
593f41
- Fix up whitespace for Ed. Bump version number.
593f41
593f41
* Thu May 18 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-9
593f41
- Split out tetex-preview subpackage
593f41
- Split out source elisp files
593f41
- Update package descriptions
593f41
593f41
* Mon May  1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-8
593f41
- Add tetex-latex to BuildRequires
593f41
593f41
* Mon May  1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-7
593f41
- Add ghostscript to Requires and BuildRequires
593f41
593f41
* Mon May  1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-6
593f41
- Leave .nosearch file in styles directory - this directory shouldn't be in the load-path
593f41
593f41
* Mon May  1 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-5
593f41
- Move installation of the preview style files out of the texmf tree for now
593f41
593f41
* Mon Apr 24 2006 Jonathan Underwood <jonathan.underwood@gmail.com> - 11.82-4
593f41
- Added preview-latex
593f41
- Removed INSTALL document from package (not necessary)
593f41
- Clean up generation of startup files from spec file
593f41
593f41
* Thu Apr 20 2006 Ed Hill <ed@eh3.com> - 11.82-3
593f41
- fix startup file per bug# 189488
593f41
593f41
* Sun Apr  9 2006 Ed Hill <ed@eh3.com> - 11.82-2
593f41
- rebuild
593f41
593f41
* Sun Apr  9 2006 Ed Hill <ed@eh3.com> - 11.82-1
593f41
- update to 11.82
593f41
593f41
* Fri Sep 30 2005 Ed Hill <ed@eh3.com> - 11.81-2
593f41
- fix stupid tagging mistake
593f41
593f41
* Fri Sep 30 2005 Ed Hill <ed@eh3.com> - 11.81-1
593f41
- update to 11.81
593f41
- disable preview for now since it needs some packaging work
593f41
593f41
* Tue Sep  6 2005 Ed Hill <ed@eh3.com> - 11.55-5
593f41
- bugzilla 167439
593f41
593f41
* Tue Aug  9 2005 Ed Hill <ed@eh3.com> - 11.55-4
593f41
- call it BuildArch
593f41
593f41
* Tue Aug  9 2005 Ed Hill <ed@eh3.com> - 11.55-3
593f41
- add Requires and BuildRequires
593f41
593f41
* Mon Aug  8 2005 Ed Hill <ed@eh3.com> - 11.55-2
593f41
- modify for acceptance into Fedora Extras
593f41
593f41
* Fri Jan 21 2005 David Kastrup <dak@gnu.org>
593f41
- Conflict with outdated Emacspeak versions
593f41
593f41
* Fri Jan 14 2005 David Kastrup <dak@gnu.org>
593f41
- Install and remove auctex.info, not auctex
593f41
593f41
* Thu Aug 19 2004 David Kastrup <dak@gnu.org>
593f41
- Change tex-site.el to overwriting config file mode.  New naming scheme.
593f41
593f41
* Mon Aug 16 2004 David Kastrup <dak@gnu.org>
593f41
- Attempt a bit of SuSEism.  Might work if we are lucky.
593f41
593f41
* Sat Dec  7 2002 David Kastrup <David.Kastrup@t-online.de>
593f41
- Change addresses to fit move to Savannah.
593f41
593f41
* Mon Apr 15 2002 Jan-Ake Larsson <jalar@imf.au.dk>
593f41
- Adjusted TeX-macro-global and put autoactivation in preinstall
593f41
  script so that it can be chosen at install time.
593f41
593f41
* Tue Feb 19 2002 Jan-Ake Larsson <jalar@imf.au.dk>
593f41
- Added site-start.el support
593f41
593f41
* Sat Feb 16 2002 Jan-Ake Larsson <jalar@imf.au.dk>
593f41
- Prerelease 11.11