emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex f72f849 15/71: Delete obsolete files and targets


From: Tassilo Horn
Subject: [elpa] externals/auctex f72f849 15/71: Delete obsolete files and targets
Date: Fri, 17 Dec 2021 15:00:27 -0500 (EST)

branch: externals/auctex
commit f72f849368817f91b33929f96a033ab788ab608e
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Delete obsolete files and targets
    
    * auctex.spec:
    * preview-latex.spec:
    Delete rpm spec files.
    * Makefile.in (): Remove make targets rpm-packages and
    windows-package.
    * doc/preview-readme.texi (Availability): Remove mention about rpm
    package.
    Supplement description about git access.
---
 Makefile.in             | 100 +------------------
 auctex.spec             | 223 -----------------------------------------
 doc/preview-readme.texi |   6 +-
 preview-latex.spec      | 260 ------------------------------------------------
 4 files changed, 9 insertions(+), 580 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 19f84d2..e4f2fa1 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -78,8 +78,6 @@ WWWDIR = $(DIST_PREFIX)/www
 CTANDIR = $(DIST_PREFIX)/ctan
 PREVIEW_BUILD_DIR = preview-build
 COMMITTER="`git config --get user.name`\ \ \<`git config --get user.email`\>"
-RPMROOT = /usr/src/redhat
-RPM_SIGN = --sign
 
 AUCSRC = tex.el tex-buf.el tex-style.el plain-tex.el latex.el tex-info.el \
        texmathp.el multi-prompt.el tex-mik.el font-latex.el tex-font.el \
@@ -216,7 +214,7 @@ all: texmf lisp docs
        install-docs install-auto install-startup                       \
        clean distclean maintainer-clean extraclean                     \
        tar-ball-clean check-tag check release-commit dist snapshot     \
-       patch tar-ball rpm-packages wc windows-package  \
+       patch tar-ball wc \
        release-sign release-upload preview-ball uninstall
 
 texmf: latex/Makefile
@@ -476,22 +474,17 @@ change-history-commit:
 # 3) dist TAG=<tag>
 #    Create the tar ball and other release files and put them into $FTPDIR.
 #
-# 4) windows-package WEMACSVER=<emacs-version> TAG=<tag>
-#    Create the precompiled AUCTeX package for Windows.
-#    This requires a compiled Emacs of the same version at location $WEMACS.
-#    NOTA BENE: you may need to use bash shell for this recipe to work.
-#
-# 5) release-sign TAG=<tag>
+# 4) release-sign TAG=<tag>
 #    Sign the tar ball and create directive files for upload.  NOTA BENE: you
 #    may need to use bash shell for this recipe to work.
 #
-# 6) release-upload
+# 5) release-upload
 #    Upload files to GNU FTP server.
 #
-# 7) www-doc TAG=<tag>
+# 6) www-doc TAG=<tag>
 #    Create documentation for AUCTeX home page.
 #
-# 8) preview-ball TAG=<tag>
+# 7) preview-ball TAG=<tag>
 #    Create preview package.  (Not for GNU FTP server but for CTAN.)
 
 dist: check-tag tar-ball
@@ -547,93 +540,10 @@ tar-ball: doc/Makefile
        $(CP) doc/auctex.ps doc/auctex.pdf doc/tex-ref.ps doc/tex-ref.pdf 
$(FTPDIR)
        $(CP) $(CHANGELOG_N) $(FTPDIR)
 
-rpm-packages:
-       rpmbuild -ta $(RPM_SIGN) $(FTPDIR)/auctex-$(TAG).tar.gz
-       $(CP) 
$(RPMROOT)/{RPMS/noarch/{auctex-emacs,preview-tetex},SRPMS/auctex}-$(TAG)[.-]* 
$(FTPDIR)
-       @echo "If you need to prepare RPM on some other system, you need to add"
-       @echo "them in $(FTPDIR) before 'make release-sign'."
-       sleep 2
-
 patch:
        diff -u auctex-$(OLD) auctex-$(TAG) | gzip --best \
                >$(FTPDIR)/auctex-$(OLD)-to-$(TAG).patch.gz
 
-# Pre-compiled AUCTeX package for Emacs on Windows
-WBUILDDIR=$(PWD)/windows-package
-WEMACS=/usr/src/emacs-$(WEMACSVER)/src/emacs
-WPACKAGE=auctex-$(TAG)-e$(WEMACSVER)-msw.zip
-# Starting from Emacs 24.4, the name of the Windows package and the tree
-# structure of the package have been changed.  The following variables cater 
for
-# these differences.
-ifeq ($(shell echo "$(WEMACSVER)" | grep '\(2[2-3].[1-4]\|24.[1-3]\)' 
-),$(WEMACSVER))
-       WEMACSDATAROOTDIR=""
-       WEMACSEXTRACTDIR=""
-       WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i386.zip"
-       WEMACSSITELISP="site-lisp"
-else
-       WEMACSDATAROOTDIR="share/"
-       WEMACSEXTRACTDIR="emacs-$(WEMACSVER)"
-# And just to add more complexity, the package name changed again with Emacs
-# 24.5.  Actually, we don't really need to keep track of all these changes as 
we
-# should support only the latest Emacs version, but unless something else
-# changes again again in the near future we can keep them (and it's useful to
-# reproduce old AUCTeX packages!).
-       ifeq (24.4,$(WEMACSVER))
-               WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i686-pc-mingw32.zip"
-       else
-               WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i686-mingw32.zip"
-       endif
-       WEMACSSITELISP="$(WEMACSDATAROOTDIR)/emacs/site-lisp"
-endif
-WPACKAGEFILES=$(WEMACSSITELISP)/auctex $(WEMACSSITELISP)/site-start.d \
-       $(WEMACSSITELISP)/site-start.el $(WEMACSSITELISP)/tex-site.el \
-       var/auctex $(WEMACSDOC) $(WEMACSDATAROOTDIR)doc 
$(WEMACSDATAROOTDIR)info/dir \
-       $(WEMACSDATAROOTDIR)info/auctex.info* 
$(WEMACSDATAROOTDIR)info/preview-latex.info*
-windows-package: check-tag
-       @if [ "X$(WEMACSVER)" = "X" ]; then \
-         echo "*** Error: No Emacs version (WEMACSVER) ***"; \
-         exit 1; \
-       fi
-# Make sure the prerequisites are available
-       test -d $(WBUILDDIR) || mkdir $(WBUILDDIR)
-       test -f $(WBUILDDIR)/$(WEMACSPACKAGE) \
-       || { cd $(WBUILDDIR) \
-       && wget https://ftp.gnu.org/gnu/emacs/windows/$(WEMACSPACKAGE); }
-       test -f $(WBUILDDIR)/auctex-$(TAG).zip \
-       || { test -f $(FTPDIR)/auctex-$(TAG).zip \
-         && $(CP) $(FTPDIR)/auctex-$(TAG).zip $(WBUILDDIR); } \
-       || { cd $(WBUILDDIR) \
-         && wget https://ftp.gnu.org/gnu/auctex/auctex-$(TAG).zip; }
-# Reset to clean state
-       cd $(WBUILDDIR) \
-       && rm -rf emacs-$(WEMACSVER) \
-       && rm -rf auctex-$(TAG) \
-       && unzip -d "$(WEMACSEXTRACTDIR)" $(WEMACSPACKAGE) \
-       && unzip auctex-$(TAG).zip
-       rm -f $(WPACKAGE)
-# Create site-start.el and site-start.d
-       cd $(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSSITELISP) \
-       && echo -e ";; Load files in \`site-start.d' directory.\
-\n(dolist (file (directory-files\
-\n            (concat (file-name-directory load-file-name) \"site-start.d\")\
-\n            t \"\\\\\\\\.el\\\\\\\\'\"))\
-\n  (load file nil t t))" > site-start.el \
-       && mkdir site-start.d
-# Build and install AUCTeX
-       cd $(WBUILDDIR)/auctex-$(TAG) \
-       && ./configure --prefix=$(WBUILDDIR)/emacs-$(WEMACSVER) \
-         --without-texmf-dir --with-emacs=$(WEMACS) \
-         --with-lispdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSSITELISP) \
-         --datarootdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSDATAROOTDIR) \
-       && $(MAKE) \
-       && sed -i -e 's/"\/[^\n]\+/(expand-file-name "..\/var\/auctex" 
(file-name-directory load-file-name))/' tex-site.el \
-       && $(MAKE) install
-# Create the package
-       test -d $(FTPDIR) || mkdir -p $(FTPDIR)
-       rm -f $(FTPDIR)/$(WPACKAGE)
-       cd $(WBUILDDIR)/emacs-$(WEMACSVER) \
-       && zip -r $(FTPDIR)/$(WPACKAGE) $(WPACKAGEFILES)
-
 release-sign: check-tag
        rm -f $(FTPDIR)/*.{directive,asc,sig}
        if [ "x$$GPG_AGENT_INFO" = "x" ]; then \
diff --git a/auctex.spec b/auctex.spec
deleted file mode 100644
index 286dd4b..0000000
--- a/auctex.spec
+++ /dev/null
@@ -1,223 +0,0 @@
-# Spec file for AUCTeX
-
-# Maintainer: auctex-devel@gnu.org
-
-# Copyright (C) 2002, 2004-2006, 2018 Free Software Foundation, Inc.
-
-# This file is part of AUCTeX.
-
-# AUCTeX is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-
-# AUCTeX is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with AUCTeX; see the file COPYING.  If not, write to the Free
-# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-# MA 02110-1301, USA.
-
-%define FOR_SUSE    %{?suse_version:1}%{!?suse_version:0}
-
-%if %{FOR_SUSE}
-%define distri       .suse
-%define commongroup  Productivity/Editors/Emacs
-%define texgroup     Productivity/Publishing/TeX/Utilities
-%else
-%define distri       .fedora
-%define commongroup  Applications/Editors
-%define texgroup     Applications/Publishing
-%endif
-
-Summary:       Enhanced TeX modes for Emacsen
-Name:          auctex
-Version:       12.1
-Release:       1%{distri}
-License:       GPL
-Group:                 %{commongroup}
-URL:           https://www.gnu.org/software/auctex/
-Source0:        https://ftp.gnu.org/pub/gnu/auctex/%{name}-%{version}.tar.gz
-BuildArchitectures: noarch
-BuildRoot:     %{_tmppath}/%{name}-root
-
-%description
-AUCTeX is an extensible package that supports writing and formatting TeX files
-for most variants of Emacs.  
-
-AUCTeX supports many different TeX macro packages, including AMS-TeX, LaTeX,
-Texinfo and basic support for ConTeXt.  Documentation can be found under
-/usr/share/doc, e.g. the reference card (tex-ref.pdf) and the FAQ.  The AUCTeX
-manual is available in Emacs info (C-h i d m AUCTeX RET).  On the AUCTeX home
-page, we provide manuals in various formats.
-
-This version of AUCTeX comes with preview-latex, an addictive productivity
-tool providing a fine-grained interactive folding WYSIWYG display in the
-source buffer.
-
-%package emacs
-Summary:       Enhanced TeX modes for GNU Emacs
-Group:          %{commongroup}
-Requires:      emacs >= 24
-Obsoletes:      ge_auc emacs-auctex auctex preview-latex-emacs
-Conflicts:      emacspeak < 18
-Provides:       auctex
-
-%description emacs
-AUCTeX is an extensible package that supports writing and formatting TeX files
-for most variants of Emacs.  
-
-AUCTeX supports many different TeX macro packages, including AMS-TeX, LaTeX,
-Texinfo and basic support for ConTeXt.  Documentation can be found under
-/usr/share/doc, e.g. the reference card (tex-ref.pdf) and the FAQ.  The AUCTeX
-manual is available in Emacs info (C-h i d m AUCTeX RET).  On the AUCTeX home
-page, we provide manuals in various formats.
-
-This package is for GNU Emacs.  XEmacs is no longer supported.
-
-The package enables AUCTeX modes system-wide.  The README file
-contains information how users may override this choice.
-
-%package -n preview-tetex
-Summary:       LaTeX files for preview.sty
-Group:         %{texgroup}
-Requires:      tetex
-Obsoletes:     preview-latex-common
-Provides:      preview-tetex preview-latex-common
-
-%description -n preview-tetex
-The LaTeX package preview.sty can be used for extracting selected
-parts of LaTeX documents into graphics of their own.  Various TeX and
-editing applications use this as a subsystem.  AUCTeX by now comes
-with its own integrated version of preview-latex and the style files
-and does not require this package, and newer versions of teTeX might
-already contain preview.sty (in which case the resulting conflict is
-probably best solved by not installing this package).
-
-%prep
-%setup
-
-%build
-# The below will make the package build from a tar straight from Git
-# NOT RECOMMENDED, but useful for testing!
-test -f ./configure || ./autogen.sh
-%configure --with-emacs INSTALL_INFO=: --without-texmf-dir
-make
-pushd doc
-make tex-ref.pdf
-popd
-
-%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,%{_infodir}}
-%if %{FOR_SUSE}
-cat <<EOFA > %{buildroot}%{_datadir}/emacs/site-lisp/suse-start-auctex.el
-;; suse-start-auctex.el
-;; This file enables AUCTeX globally:
-(load "auctex.el" nil t t)
-;; See (info "(auctex)Introduction") on how to disable AUCTeX.
-EOFA
-cat <<EOFP > 
%{buildroot}%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el
-;; suse-start-preview-latex.el
-;; This file enables preview-latex globally:
-(load "preview-latex.el" nil t t)
-EOFP
-%else
-mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d
-%endif
-%makeinstall install-docs
-mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/preview
-cp -p preview/latex/*.{sty,def,cfg} 
%{buildroot}%{_datadir}/texmf/tex/latex/preview
-mkdir -p %{buildroot}%{_datadir}/texmf/doc/latex/styles
-cp -p preview/latex/preview.dvi %{buildroot}%{_datadir}/texmf/doc/latex/styles
-
-%post emacs
-/sbin/install-info --info-dir=%{_infodir} %{_infodir}/auctex.info
-/sbin/install-info --info-dir=%{_infodir} %{_infodir}/preview-latex.info
-
-%preun emacs
-# $1 is the number of versions of this package installed
-# after this uninstallation
-if [ $1 -eq 0 ]; then
-  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/auctex.info
-  /sbin/install-info --delete --info-dir=%{_infodir} 
%{_infodir}/preview-latex.info
-fi
-%clean
-rm -rf %{buildroot}
-
-%post -n preview-tetex
-/usr/bin/mktexlsr %{_datadir}/texmf
-
-%postun -n preview-tetex
-/usr/bin/mktexlsr %{_datadir}/texmf
-
-%files -n preview-tetex
-%defattr(-,root,root)
-%{_datadir}/texmf/tex/latex/preview
-%config %{_datadir}/texmf/tex/latex/preview/prauctex.cfg
-%{_datadir}/texmf/doc/latex/styles/preview.dvi
-
-%files emacs
-%defattr(-,root,root)
-%doc RELEASE COPYING INSTALL README TODO FAQ CHANGES
-%doc doc/tex-ref.pdf
-# %doc --parents preview/RELEASE preview/README preview/INSTALL preview/TODO 
preview/FAQ
-%doc %{_infodir}/*
-# %exclude %{_infodir}/dir
-%{_datadir}/emacs/site-lisp/%{name}
-%{_localstatedir}/%{name}
-%config %{_datadir}/emacs/site-lisp/tex-site.el
-%if %{FOR_SUSE}
-%{_datadir}/emacs/site-lisp/auctex.el
-%{_datadir}/emacs/site-lisp/preview-latex.el
-%{_datadir}/emacs/site-lisp/suse-start-auctex.el
-%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el
-%else
-%{_datadir}/emacs/site-lisp/site-start.d/auctex.el
-%{_datadir}/emacs/site-lisp/site-start.d/preview-latex.el
-%endif
-
-
-%changelog
-# Shouldn't changelog include changes in the package instead of changes in the
-# spec file?
-
-* Tue Jun  6 2006 Reiner Steib  <Reiner.Steib@gmx.de>
-- Update to AUCTeX 11.83
-
-* Wed Dec 28 2005 Reiner Steib  <Reiner.Steib@gmx.de>
-- Remove bogus preview directory.  Add preview-latex in description.
-
-* Sat Dec 17 2005 Reiner Steib  <Reiner.Steib@gmx.de>
-- Update for AUCTeX 11.82.
-
-* Tue May  3 2005 David Kastrup <dak@gnu.org>
-- include preview-latex, so outdate other stuff.
-
-* Fri Jan 21 2005 David Kastrup <dak@gnu.org>
-- Conflict with outdated Emacspeak versions
-
-* Fri Jan 14 2005 David Kastrup <dak@gnu.org>
-- Install and remove auctex.info, not auctex
-
-* Thu Aug 19 2004 David Kastrup <dak@gnu.org>
-- Change tex-site.el to overwriting config file mode.  New naming scheme.
-
-* Mon Aug 16 2004 David Kastrup <dak@gnu.org>
-- Attempt a bit of SuSEism.  Might work if we are lucky.
-
-* Sat Dec  7 2002 David Kastrup <David.Kastrup@t-online.de>
-- Change addresses to fit move to Savannah.
-
-* Mon Apr 15 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Adjusted TeX-macro-global and put autoactivation in preinstall
-  script so that it can be chosen at install time.
-
-* Tue Feb 19 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Added site-start.el support
-
-* Sat Feb 16 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Prerelease 11.11
diff --git a/doc/preview-readme.texi b/doc/preview-readme.texi
index 70fd0c2..8d4c565 100644
--- a/doc/preview-readme.texi
+++ b/doc/preview-readme.texi
@@ -196,8 +196,10 @@ project page}.  You can get its files from the
 @w{@AUCTeX{} 11.81}, @previewlatex{} should already be integrated into
 @AUCTeX{}, so no separate download will be necessary.
 
-You will also find @file{.rpm} files there for Fedora and possibly
-SuSE.  Anonymous Git is available as well.
+Anonymous Git is available at @uref{git://git.savannah.gnu.org/auctex.git}
+or @uref{https://git.savannah.gnu.org/git/auctex.git}.  You can also
+@uref{https://git.savannah.gnu.org/cgit/auctex.git,browse the repository}
+via web interface.
 
 @node  Contacts,  , Availability, Introduction
 @section Contacts
diff --git a/preview-latex.spec b/preview-latex.spec
deleted file mode 100644
index 0d1caae..0000000
--- a/preview-latex.spec
+++ /dev/null
@@ -1,260 +0,0 @@
-# Spec file for preview-latex
-
-# Maintainer: auctex-devel@gnu.org
-
-# Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
-
-# This file is part of AUCTeX.
-
-# AUCTeX is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-
-# AUCTeX is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with AUCTeX; see the file COPYING.  If not, write to the Free
-# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-# MA 02110-1301, USA.
-
-%define HAVE_EMACS  %(which emacs  >/dev/null 2>/dev/null && echo 1 || echo 0)
-%define HAVE_XEMACS %(which xemacs >/dev/null 2>/dev/null && echo 1 || echo 0)
-
-%define FOR_SUSE    %{?suse_version:1}%{!?suse_version:0}
-
-%if %{FOR_SUSE}
-%define distri      .suse
-%define commongroup Productivity/Editors/Emacs
-# This is awful, but I don't have the clue to avoid it:
-%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages
-%define xemacspkgconfdir ${datadir}/xemacs/xemacs-packages
-%else
-%define distri      .fedora
-%define commongroup Applications/Editors
-# This is awful, but I don't have the clue to avoid it:
-%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages
-%define xemacspkgconfdir ${datadir}/xemacs/xemacs-packages
-%endif
-
-# we use xemacs-packages because the system packages can be found
-# here, and preview-latex is not yet a part of any sumo tarball or
-# similar.  The choice for AUCTeX would probably be site-packages
-# instead.
-
-Summary:       Emacs/LaTeX inline preview 
-Name:          preview-latex
-Version:       0.9.1
-Release:       1%{distri}
-License:        GPL
-BuildArchitectures: noarch
-URL:           http://www.gnu.org/software/auctex
-Source0:       ftp://ftp.gnu.org/pub/auctex/%{name}-%{version}.tar.gz
-Group:                 %{commongroup}
-BuildRoot:     %{_tmppath}/%{name}-root
-Prereq:                info
-Requires:      ghostscript >= 6.51
-Requires:      tetex tetex-dvips
-BuildRequires: texinfo >= 4.0
-
-%description
-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. 
-
-%package common
-Summary:       Emacs/LaTeX inline preview (LaTeX style and docs)
-Group:                 %{commongroup}
-
-%description common
-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.
-
-%package emacs
-Summary:       Emacs/LaTeX inline preview (GNU Emacs lisp files)
-Group:                 %{commongroup}
-Requires:      %{name}-common = %{version}-%{release}
-Requires:      emacs >= 21.1
-Requires:      auctex >= 11.0
-Obsoletes:     preview-latex
-
-%description emacs
-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 lisp modules for GNU Emacs 21.1 or higher.
-
-%package xemacs
-Summary:       Emacs/LaTeX inline preview (XEmacs lisp files)
-Group:                 %{commongroup}
-Requires:      %{name}-common = %{version}-%{release}
-Requires:      xemacs >= 21.4.9
-Conflicts:      xemacs = 21.4.16
-
-%description xemacs
-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 lisp modules for XEmacs 21.4.9 or higher.  
-
-%prep
-%setup -c -q
-
-%if %{HAVE_EMACS}
-  mkdir emacs
-  pushd emacs
-  ln -sf ../%{name}-%{version}/* .
-  popd
-%endif
-
-%if %{HAVE_XEMACS}
-  mkdir xemacs
-  pushd xemacs
-  ln -sf ../%{name}-%{version}/* .
-  popd
-%endif
-
-%build
-
-for i in *emacs; do
-  pushd $i
-  # The below will make the package build from a tar straight from CVS
-  # NOT RECOMMENDED, but useful for testing!
-  test -f ./configure || ./autogen.sh
-  # --with-packagedir repairs RedHat XEmacs braindamage texmf-dir
-  # moves the installation to a location searched before the (possibly
-  # conflicting) system tree.  Unfortunately, this is the site-wide
-  # tree that we should not really be touching.  Sigh.
-  if [ $i = "emacs" ]; then
-    %configure '--with-lispdir=${datadir}/emacs/site-lisp/site-start.d' \
-      --with-packagelispdir=../preview 
'--with-texmf-dir=${prefix}/local/share/texmf'
-  else
-    %configure --with-xemacs '--with-packagedir=%{xemacspkgconfdir}' 
'--with-texmf-dir=${prefix}/local/share/texmf'
-  fi
-  make 'infodir=%{_infodir}'
-  cd doc
-  make preview-latex.pdf
-  popd
-done
-
-%install 
-
-rm -rf '%{buildroot}'
-for i in *emacs; do
-  pushd $i
-  if [ $i == "emacs" ]; then 
-    # Make directory non-searchable.
-    mkdir -p '%{buildroot}%{_datadir}/emacs/site-lisp/preview'
-    touch .nosearch
-    install -c -m 644 .nosearch \
-      '%{buildroot}%{_datadir}/emacs/site-lisp/preview'
-    %makeinstall TEXHASH=:
-  else
-    # XEmacs MANIFEST doesn't get created unless the target dir exists
-    mkdir -p %{buildroot}%{xemacspkgdir}/pkginfo
-    %makeinstall TEXHASH=:
-  fi
-  popd
-done
-
-# Package documentation in /usr/share/doc/preview-latex-n.n
-# rather than /usr/share/doc/preview-latex-common-n.n
-%define docs       %{_defaultdocdir}/%{name}-%{version}
-mkdir -p '%{buildroot}%{docs}'
-pushd %{name}-%{version}
-for i in ChangeLog circ.tex COPYING FAQ INSTALL PROBLEMS README \
-    RELEASE TODO doc/preview-latex.pdf; do
-  cp -R "$i" '%{buildroot}%{docs}'
-done
-cp latex/README '%{buildroot}%{docs}/README-preview'
-
-# Remove dir file that has been created by the makeinfo calls because this
-# file will not been included in the rpm distribution (make RPM 4.1+ happy)
-# Apparently RPM 4.2 removes the file itself?
-rm -f '%{buildroot}%{_infodir}/dir'
-
-%clean
-rm -rf '%{buildroot}'
-
-%post common
-/sbin/install-info '--info-dir=%{_infodir}' '%{_infodir}/preview-latex.info'
-texhash /usr/local/share/texmf
-
-%preun common
-# $1 is the number of versions of this package installed
-# after this uninstallation
-if [ $1 -eq 0 ]; then
-  /sbin/install-info '--info-dir=%{_infodir}' --delete \
-    '%{_infodir}/preview-latex.info'
-fi
-
-%files common
-%defattr(-,root,root)
-%dir %{_prefix}/local/share/texmf/tex/latex/preview
-%{_prefix}/local/share/texmf/tex/latex/preview/*.sty
-%{_prefix}/local/share/texmf/tex/latex/preview/*.def
-%config %{_prefix}/local/share/texmf/tex/latex/preview/*.cfg
-%doc %{_prefix}/local/share/texmf/doc/latex/styles/preview.dvi
-%doc %{_infodir}/preview-latex.info*
-%doc %{docs}
-
-%if %{HAVE_EMACS}
-%files emacs
-%defattr(-,root,root)
-%{_datadir}/emacs/site-lisp/preview
-%{_datadir}/emacs/site-lisp/site-start.d/preview-latex.el 
-%endif
-
-%if %{HAVE_XEMACS}
-%files xemacs
-%defattr(-,root,root)
-%{xemacspkgdir}/lisp/preview
-%{xemacspkgdir}/etc/preview
-%verify() %{xemacspkgdir}/pkginfo/MANIFEST.preview
-%endif
-
-%changelog
-* Wed Jul 28 2004 David Kastrup <dak@gnu.org>
-- Remove 8bit-test stuff, some changes to directories.
-
-* Mon Apr 12 2004 David Kastrup <dak@gnu.org>
-- bump XEmacs requirements to 21.4.9
-
-* Thu Jan 29 2004 Jan-�ke Larsson <jalar@mai.liu.se>
-- add support for SuSE 
-   (kudos to Martin V�th <vaeth@mathematik.uni-wuerzburg.de>)
-
-* Wed Aug  7 2002 David Kastrup <David.Kastrup@t-online.de>
-- add FAQ
-
-* Tue Apr 16 2002 David Kastrup <David.Kastrup@t-online.de>
-- allow split info file, docs now go in preview-latex-n.n
-
-* Mon Apr 15 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Docs now goes in preview-latex-n.n-n directory
-
-* Wed Apr 10 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Triple-rpm simplifications
-
-* Sun Mar 31 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Prepare for 0.7, initial triple rpm attempt
-
-* Sun Mar 10 2002 David Kastrup <David.Kastrup@t-online.de>
-- Prepare for 0.6.1
-
-* Tue Feb 19 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Added site-start.d support and prauctex.cfg config file
-
-* Thu Feb 14 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Adjusted for 0.6
-
-* Wed Jan 23 2002 Jan-Ake Larsson <jalar@imf.au.dk>
-- Initial build.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]