diff --git a/auctex-12.1.tar.gz b/auctex-12.1.tar.gz new file mode 100644 index 0000000..117f4c2 Binary files /dev/null and b/auctex-12.1.tar.gz differ diff --git a/emacs-auctex.spec b/emacs-auctex.spec new file mode 100644 index 0000000..168d637 --- /dev/null +++ b/emacs-auctex.spec @@ -0,0 +1,97 @@ +Name: emacs-auctex +Version: 12.1 +Release: 7 +Summary: AUC TeX: An Emacs Extension +License: GPLv3+ and GFDL +URL: http://www.gnu.org/software/auctex/ +Source0: http://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: emacs tex(latex) texinfo-tex ghostscript + +Requires: emacs(bin) >= %{_emacs_version} ghostscript dvipng tex(latex) tex(dvips) +Requires(pre): info +Requires(post): info + +Provides: emacs-auctex-el = %{version}-%{release} tex-preview = %{version}-%{release} +Provides: tex(preview.sty) tetex-preview texlive-preview +Obsoletes: emacs-auctex-el <= 11.86-9 tex-preview < %{version}-%{release} +Obsoletes: tetex-preview texlive-preview <= 7:svn44883 + +%description +These macros make it easier for you to write TeX documents with GNU +Emacs.Documentation can be found under: + +/usr/share/doc/packages/emacs-auctex/ + +and in the dvi files math-ref.dvi and tex-ref.dvi (reference cards) and +in the info file auctex in emacs info-mode. + +AuC TeX is integrated in XEmacs 19.15 and higher, so these packages may +not be installed concurrently.Note that the binary formats of the +byte-compiled lisp files of the two emacs editors are incompatible, so +you cannot use this package for XEmacs. + +%package help +Summary: Help document file of the emacs-auctex package +License: GFDL +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc < %{version}-%{release} + +%description help +Help document file of the emacs-auctex package. + +%prep +%autosetup -n auctex-%{version} -p1 + +%build +%configure --with-emacs --with-texmf-dir=%{_datadir}/texlive/texmf-dist + +%make_build + +cd doc +make extradist +cd - + +%install +install -d %{buildroot}%{_emacs_sitestartdir} +%make_install + + +touch %{buildroot}%{_emacs_sitelispdir}/auctex/{.nosearch,style/.nosearch} + +%post +/sbin/install-info %{_infodir}/auctex.info %{_infodir}/dir 2>/dev/null || : +/sbin/install-info %{_infodir}/preview-latex.info %{_infodir}/dir 2>/dev/null || : +/usr/bin/texhash > /dev/null 2>&1 || : + +%preun +if [ $1 -eq 0 ]; then + /sbin/install-info --delete %{_infodir}/auctex.info %{_infodir}/dir 2>/dev/null || : + /sbin/install-info --delete %{_infodir}/preview-latex.info %{_infodir}/dir 2>/dev/null || : +fi +/usr/bin/texhash > /dev/null 2>&1 || : + +%files +%doc COPYING README TODO FAQ CHANGES RELEASE +%doc %{_infodir}/*.info* +%dir %{_emacs_sitelispdir}/auctex +%dir %{_emacs_sitelispdir}/auctex/style +%{_emacs_sitestartdir}/* +%{_emacs_sitelispdir}/auctex/{*.el,*.elc} +%{_emacs_sitelispdir}/auctex/style/{*.el,*.elc} +%{_emacs_sitelispdir}/auctex/{.nosearch,style/.nosearch,images} +%{_emacs_sitelispdir}/tex-site.el +%{_datadir}/texlive/texmf-dist/tex/latex/preview +%{_datadir}/texlive/texmf-dist/doc/latex/styles +%exclude %{_infodir}/dir +%exclude %{_var}/* +%exclude %{_docdir}/auctex + +%files help +%doc doc/*.{dvi,ps,pdf} +%doc doc/html + +%changelog +* Mon Dec 02 2019 dingyiming - 12.1-7 +- Package init