Blame SPECS/emacs-auctex.spec

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