ALT Linux repositórios
S: | 13.1-alt1 |
5.0: | 11.85-alt1 |
4.1: | 11.85-alt1 |
4.0: | 11.84-alt1 |
3.0: | 11.54-alt1 |
+backports: | 11.83-alt0.M30.1 |
Group :: Editores
RPM: emacs-mode-auctex
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define emacsbin emacs
# define emacsbin emacs-nox
%define ModeName auctex
%define emacs_version %(%emacsbin --version | head --lines=1 | cut -d' ' --fields=3 | cut -d. --fields=1,2)
%if "%emacs_version" == ""
# Not to leave the macro undefined in case of no emacs.
%define emacs_version 0
%endif
%define _aucstatedir %_localstatedir/%ModeName
Name: emacs-mode-%ModeName
Version: 11.83
Release: alt0.M30.1
Summary: Enhanced LaTeX mode for GNU Emacs
License: GPL
Group: Editors
Url: http://www.cs.auc.dk/~amanda/%ModeName/
BuildArch: noarch
#Source0: ftp://sunsite.auc.dk/packages/auctex/%ModeName-%version.tar.bz2
Source0: ftp://ftp.gnu.org/pub/gnu/auctex/%ModeName-%version.tar.gz
Source1: auctex.el
Source10: %name-11.10-info.ALT
Patch1: %ModeName-11.53-printerlist.patch
Patch2: %ModeName-9.9p-customize.patch
Patch3: %ModeName-russian-math.patch
Patch4: %ModeName-rumakeindex.patch
# Due to patches 1 and 2, the administrator of a system won't have to set
# any site-specific variables for AUC TeX.
Provides: emacs-preview-latex = %version-%release
Obsoletes: emacs-preview-latex < %version
Obsoletes: auctex
Requires: common-licenses
Requires: emacs >= %emacs_version
Requires: tetex-latex-preview = %version-%release
# The list is quite strange -- but it looks like it really doesn't want to compile without any of these.
BuildPreReq: cups-common libcups libssl tetex tetex-latex ghostscript-classic hostinfo tetex-core texinfo tetex-dvips xorg-x11-libs
%define require_compiler %(rpm -qf "$(which %emacsbin)" --queryformat=%%{NAME} 2> /dev/null)
# Automatically added by buildreq on Thu Aug 24 2006
BuildRequires: fontconfig tetex-dvips tetex-latex
%if "%require_compiler" != ""
BuildPreReq: %require_compiler
%(echo '%require_compiler provides the used Emacs Lisp compiler (%emacsbin)' 1>&2)
%else
BuildPreReq: emacs
%(echo 'emacs provides the used Emacs Lisp compiler (%emacsbin)' 1>&2)
%endif
# We DONT need el-pkgutils to genreate file-lists:
#BuildPreReq: emacs-common >= 21.1-alt11
%description
AUC TeX is a comprehensive, customizable, integrated environment for
writing, editing and processing input files for LaTeX using GNU Emacs.
This mode also supports graphic preview for formulas and figures.
(Emacs Lisp code is principally byte-compiled, install %name-el for sources.)
%package el
Summary: The Emacs Lisp sources for bytecode included in %name
Group: Development/Other
Requires: %name = %version-%release
Provides: emacs-preview-latex-el = %version-%release
%description el
%name-el contains the Emacs Lisp sources for the bytecode included in the %name package,
that extends the Emacs editor.
You need to install %name-el only if you intend to modify any of the
%name code or see some Lisp examples.
Requires: emacs-X11 emacs-mode-auctex = %version-%release
%package -n tetex-latex-preview
Summary: LaTeX style and docs for inline preview
Group: Editors
Provides: preview-latex
Requires: tetex-dvips gnu-ghostscript tetex-latex
%description -n tetex-latex-preview
Does your neck hurt from turning between previewer windows and the
source too often? This Elisp/LaTeX package will render your displayed
LaTeX equations right into the editing window where they belong.
This package contains the LaTeX style files and the documentation.
%prep
%setup -q -n %ModeName-%version
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%configure --with-emacs=%emacsbin --with-tex-input-dirs=/usr/share/texmf/tex
%make_build
%install
%__install -d $RPM_BUILD_ROOT{%_emacslispdir,%_infodir}
%define _makeinstall_target install
%makeinstall %_makeinstall_target
install -d %buildroot/etc/emacs/site-start.d
install -m 644 %SOURCE1 %buildroot/etc/emacs/site-start.d/auctex.el
# install ALT's info:
%__install -m0644 %SOURCE10 ALT-packaging-info
# The license:
%__ln_s -f %_licensedir/GPL-2 COPYING
%__rm -f $RPM_BUILD_ROOT/%_infodir/dir
%post
%install_info auctex.info
%install_info preview-latex.info
%post -n tetex-latex-preview
# Fix the TeX file hash
if [ $1 = 1 ] ; then
[ -x /usr/bin/texhash ] && /usr/bin/texhash 2>/dev/null ||:
fi
%preun
%uninstall_info auctex.info
%uninstall_info preview-latex.info
%preun -n tetex-latex-preview
if [ $1 = 0 ] ; then
[ -x /usr/bin/texhash ] && /usr/bin/texhash 2>/dev/null ||:
fi
%files
%doc --no-dereference COPYING
%doc ChangeLog
%doc ALT-packaging-info
%_infodir/*
%config(noreplace) %_sysconfdir/emacs/site-start.d/auctex.el
%_aucstatedir
%_emacslispdir/tex-site.el
%_emacslispdir/auctex.el
%_emacslispdir/preview-latex.el
%_emacslispdir/auctex
%exclude %_emacslispdir/auctex/*.el
%exclude %_emacslispdir/auctex/style/*.el
%files el
%_emacslispdir/auctex/*.el
%_emacslispdir/auctex/style/*.el
%files -n tetex-latex-preview
%_datadir/texmf/tex/latex/preview
%_datadir/texmf/doc/latex/styles/*
%changelog
…
Todas as alterações você pod ver aqui
# define emacsbin emacs-nox
%define ModeName auctex
%define emacs_version %(%emacsbin --version | head --lines=1 | cut -d' ' --fields=3 | cut -d. --fields=1,2)
%if "%emacs_version" == ""
# Not to leave the macro undefined in case of no emacs.
%define emacs_version 0
%endif
%define _aucstatedir %_localstatedir/%ModeName
Name: emacs-mode-%ModeName
Version: 11.83
Release: alt0.M30.1
Summary: Enhanced LaTeX mode for GNU Emacs
License: GPL
Group: Editors
Url: http://www.cs.auc.dk/~amanda/%ModeName/
BuildArch: noarch
#Source0: ftp://sunsite.auc.dk/packages/auctex/%ModeName-%version.tar.bz2
Source0: ftp://ftp.gnu.org/pub/gnu/auctex/%ModeName-%version.tar.gz
Source1: auctex.el
Source10: %name-11.10-info.ALT
Patch1: %ModeName-11.53-printerlist.patch
Patch2: %ModeName-9.9p-customize.patch
Patch3: %ModeName-russian-math.patch
Patch4: %ModeName-rumakeindex.patch
# Due to patches 1 and 2, the administrator of a system won't have to set
# any site-specific variables for AUC TeX.
Provides: emacs-preview-latex = %version-%release
Obsoletes: emacs-preview-latex < %version
Obsoletes: auctex
Requires: common-licenses
Requires: emacs >= %emacs_version
Requires: tetex-latex-preview = %version-%release
# The list is quite strange -- but it looks like it really doesn't want to compile without any of these.
BuildPreReq: cups-common libcups libssl tetex tetex-latex ghostscript-classic hostinfo tetex-core texinfo tetex-dvips xorg-x11-libs
%define require_compiler %(rpm -qf "$(which %emacsbin)" --queryformat=%%{NAME} 2> /dev/null)
# Automatically added by buildreq on Thu Aug 24 2006
BuildRequires: fontconfig tetex-dvips tetex-latex
%if "%require_compiler" != ""
BuildPreReq: %require_compiler
%(echo '%require_compiler provides the used Emacs Lisp compiler (%emacsbin)' 1>&2)
%else
BuildPreReq: emacs
%(echo 'emacs provides the used Emacs Lisp compiler (%emacsbin)' 1>&2)
%endif
# We DONT need el-pkgutils to genreate file-lists:
#BuildPreReq: emacs-common >= 21.1-alt11
%description
AUC TeX is a comprehensive, customizable, integrated environment for
writing, editing and processing input files for LaTeX using GNU Emacs.
This mode also supports graphic preview for formulas and figures.
(Emacs Lisp code is principally byte-compiled, install %name-el for sources.)
%package el
Summary: The Emacs Lisp sources for bytecode included in %name
Group: Development/Other
Requires: %name = %version-%release
Provides: emacs-preview-latex-el = %version-%release
%description el
%name-el contains the Emacs Lisp sources for the bytecode included in the %name package,
that extends the Emacs editor.
You need to install %name-el only if you intend to modify any of the
%name code or see some Lisp examples.
Requires: emacs-X11 emacs-mode-auctex = %version-%release
%package -n tetex-latex-preview
Summary: LaTeX style and docs for inline preview
Group: Editors
Provides: preview-latex
Requires: tetex-dvips gnu-ghostscript tetex-latex
%description -n tetex-latex-preview
Does your neck hurt from turning between previewer windows and the
source too often? This Elisp/LaTeX package will render your displayed
LaTeX equations right into the editing window where they belong.
This package contains the LaTeX style files and the documentation.
%prep
%setup -q -n %ModeName-%version
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%configure --with-emacs=%emacsbin --with-tex-input-dirs=/usr/share/texmf/tex
%make_build
%install
%__install -d $RPM_BUILD_ROOT{%_emacslispdir,%_infodir}
%define _makeinstall_target install
%makeinstall %_makeinstall_target
install -d %buildroot/etc/emacs/site-start.d
install -m 644 %SOURCE1 %buildroot/etc/emacs/site-start.d/auctex.el
# install ALT's info:
%__install -m0644 %SOURCE10 ALT-packaging-info
# The license:
%__ln_s -f %_licensedir/GPL-2 COPYING
%__rm -f $RPM_BUILD_ROOT/%_infodir/dir
%post
%install_info auctex.info
%install_info preview-latex.info
%post -n tetex-latex-preview
# Fix the TeX file hash
if [ $1 = 1 ] ; then
[ -x /usr/bin/texhash ] && /usr/bin/texhash 2>/dev/null ||:
fi
%preun
%uninstall_info auctex.info
%uninstall_info preview-latex.info
%preun -n tetex-latex-preview
if [ $1 = 0 ] ; then
[ -x /usr/bin/texhash ] && /usr/bin/texhash 2>/dev/null ||:
fi
%files
%doc --no-dereference COPYING
%doc ChangeLog
%doc ALT-packaging-info
%_infodir/*
%config(noreplace) %_sysconfdir/emacs/site-start.d/auctex.el
%_aucstatedir
%_emacslispdir/tex-site.el
%_emacslispdir/auctex.el
%_emacslispdir/preview-latex.el
%_emacslispdir/auctex
%exclude %_emacslispdir/auctex/*.el
%exclude %_emacslispdir/auctex/style/*.el
%files el
%_emacslispdir/auctex/*.el
%_emacslispdir/auctex/style/*.el
%files -n tetex-latex-preview
%_datadir/texmf/tex/latex/preview
%_datadir/texmf/doc/latex/styles/*
%changelog
…
Todas as alterações você pod ver aqui