/[auctex]/auctex/auctex.spec
ViewVC logotype

Diff of /auctex/auctex.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by angeli, Mon Jan 31 21:58:18 2005 UTC revision 1.32 by dak, Tue May 3 07:41:51 2005 UTC
# Line 4  Line 4 
4  %define distri       .suse  %define distri       .suse
5  %define commongroup  Productivity/Editors/Emacs  %define commongroup  Productivity/Editors/Emacs
6  %define xemacspkgdir %{_datadir}/xemacs/xemacs-packages  %define xemacspkgdir %{_datadir}/xemacs/xemacs-packages
7  %define startupfile  %{_datadir}/emacs/site-lisp/suse-start-%{name}.el  %define extraconfig '--with-auctex-startfile=%{_datadir}/emacs/site-lisp/suse-start-auctex.el' '--with-preview-startfile=%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el'
8  %else  %else
9  %define distri       .fedora  %define distri       .fedora
10  %define commongroup  Applications/Editors  %define commongroup  Applications/Editors
11  %define xemacspkgdir %{_datadir}/xemacs/site-packages  %define xemacspkgdir %{_datadir}/xemacs/site-packages
 %define startupfile  %{_datadir}/emacs/site-lisp/site-start.d/%{name}-init.el  
12  %endif  %endif
13    
14  Summary:        Enhanced TeX modes for Emacsen  Summary:        Enhanced TeX modes for Emacsen
15  Name:           auctex  Name:           auctex
16  Version:        11.55  Version:        11.80
17  Release:        1%{distri}  Release:        0%{distri}
18  License:        GPL  License:        GPL
19  Group:          %{commongroup}  Group:          %{commongroup}
20  URL:            http://www.gnu.org/software/auctex/  URL:            http://www.gnu.org/software/auctex/
# Line 23  Source0:        ftp://ftp.gnu.org/pub/gn Line 22  Source0:        ftp://ftp.gnu.org/pub/gn
22  BuildArchitectures: noarch  BuildArchitectures: noarch
23  BuildRoot:      %{_tmppath}/%{name}-root  BuildRoot:      %{_tmppath}/%{name}-root
24    
25  %description  %description
26  AUCTeX is an extensible package that supports writing and formatting TeX files  AUCTeX is an extensible package that supports writing and formatting TeX files
27  for most variants of Emacs.    for most variants of Emacs.  
28    
# Line 37  page, we provide manuals in various form Line 36  page, we provide manuals in various form
36  Summary:        Enhanced TeX modes for GNU Emacs  Summary:        Enhanced TeX modes for GNU Emacs
37  Group:          %{commongroup}  Group:          %{commongroup}
38  Requires:       emacs >= 21  Requires:       emacs >= 21
39  Obsoletes:      ge_auc emacs-auctex auctex  Obsoletes:      ge_auc emacs-auctex auctex preview-latex-common preview-latex-emacs
40  Conflicts:      emacspeak < 18  Conflicts:      emacspeak < 18
41  Provides:       auctex  Provides:       auctex
42    
# Line 54  page, we provide manuals in various form Line 53  page, we provide manuals in various form
53  This package is for GNU Emacs.  XEmacs users should use the package system for  This package is for GNU Emacs.  XEmacs users should use the package system for
54  installation.  installation.
55    
56  The package enables AUCTeX system-wide.  If you do not want this,  The package enables AUCTeX modes system-wide.  The README file
57  install/upgrade with 'rpm --nopre ...'  (the activation is done in the  contains information how users may override this choice.
 preinstall script).  
58    
59  %prep  %prep
60  %setup  %setup
# Line 65  preinstall script). Line 63  preinstall script).
63  # The below will make the package build from a tar straight from CVS  # The below will make the package build from a tar straight from CVS
64  # NOT RECOMMENDED, but useful for testing!  # NOT RECOMMENDED, but useful for testing!
65  test -f ./configure || ./autogen.sh  test -f ./configure || ./autogen.sh
66  # --with-texmf-dir overrides local docstrip configurations.  %configure "--with-emacs" %{extraconfig} INSTALL_INFO=: TEXHASH=: --without-texmf-dir
 %configure "--with-emacs" '--with-texmf-dir=%{_datadir}/texmf'  
67  make  make
68  pushd doc  pushd doc
69  make auctex.info tex-ref.pdf  make tex-ref.pdf
70  popd  popd
71    
72  %install  %install
# Line 77  rm -rf %{buildroot} Line 74  rm -rf %{buildroot}
74  mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,%{_infodir}}  mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,%{_infodir}}
75  %makeinstall install-contrib install-info  %makeinstall install-contrib install-info
76    
 # 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)  
 rm -f '%{buildroot}%{_infodir}/dir'  
   
 %pre emacs  
 echo "; Autoactivation of AUCTeX" > %{startupfile}  
 echo "; Created for %{name}-%{version}-%{release}.noarch.rpm" >> \  
   %{startupfile}  
 echo "(require 'tex-site)" >> %{startupfile}  
   
77  %post emacs  %post emacs
78  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/auctex.info  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/auctex.info
79    /sbin/install-info --info-dir=%{_infodir} %{_infodir}/preview-latex.info
80    
81  %preun emacs  %preun emacs
82  # $1 is the number of versions of this package installed  # $1 is the number of versions of this package installed
83  # after this uninstallation  # after this uninstallation
84  if [ $1 -eq 0 ]; then  if [ $1 -eq 0 ]; then
85    /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/auctex.info    /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/auctex.info
86    rm -f %{startupfile}    /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/preview-latex.info
87  fi  fi
88  %clean  %clean
89  rm -rf %{buildroot}  rm -rf %{buildroot}
# Line 104  rm -rf %{buildroot} Line 92  rm -rf %{buildroot}
92  %defattr(-,root,root)  %defattr(-,root,root)
93  %doc RELEASE COPYING INSTALL README TODO FAQ CHANGES  %doc RELEASE COPYING INSTALL README TODO FAQ CHANGES
94  %doc doc/tex-ref.pdf  %doc doc/tex-ref.pdf
95    %doc preview/RELEASE preview/README preview/INSTALL preview/TODO preview/FAQ
96  %doc %{_infodir}/*  %doc %{_infodir}/*
97  %{_datadir}/emacs/site-lisp/%{name}  %{_datadir}/emacs/site-lisp/%{name}
98  %{_localstatedir}/%{name}  %{_localstatedir}/%{name}
99  %config %{_datadir}/emacs/site-lisp/tex-site.el  %config %{_datadir}/emacs/site-lisp/tex-site.el
100    
101  %changelog  %changelog
102    * Tue May  3 2005 David Kastrup <dak@gnu.org>
103    - include preview-latex, so outdate other stuff.
104    
105  * Fri Jan 21 2005 David Kastrup <dak@gnu.org>  * Fri Jan 21 2005 David Kastrup <dak@gnu.org>
106  - Conflict with outdated Emacspeak versions  - Conflict with outdated Emacspeak versions
107    

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26