~ubuntu-branches/ubuntu/natty/auctex/natty

« back to all changes in this revision

Viewing changes to auctex.spec

  • Committer: Bazaar Package Importer
  • Author(s): Davide G. M. Salvetti
  • Date: 2007-03-14 00:43:56 UTC
  • mfrom: (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20070314004356-xtqoxu6ousd1ldn6
Tags: 11.83-6
* Rebuild with clean source.
* rules.in (build-package): Added dependency on the "clean" target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
%if %{FOR_SUSE}
4
4
%define distri       .suse
5
5
%define commongroup  Productivity/Editors/Emacs
 
6
%define texgroup     Productivity/Publishing/TeX/Utilities
6
7
%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages
7
 
%define startupfile  %{_datadir}/emacs/site-lisp/suse-start-%{name}.el
8
8
%else
9
9
%define distri       .fedora
10
10
%define commongroup  Applications/Editors
 
11
%define texgroup     Applications/Publishing
11
12
%define xemacspkgdir %{_datadir}/xemacs/site-packages
12
 
%define startupfile  %{_datadir}/emacs/site-lisp/site-start.d/%{name}-init.el
13
13
%endif
14
14
 
15
15
Summary:        Enhanced TeX modes for Emacsen
16
16
Name:           auctex
17
 
Version:        11.55
 
17
Version:        11.83
18
18
Release:        1%{distri}
19
19
License:        GPL
20
20
Group:          %{commongroup}
23
23
BuildArchitectures: noarch
24
24
BuildRoot:      %{_tmppath}/%{name}-root
25
25
 
26
 
%description 
 
26
%description
27
27
AUCTeX is an extensible package that supports writing and formatting TeX files
28
28
for most variants of Emacs.  
29
29
 
33
33
manual is available in Emacs info (C-h i d m AUCTeX RET).  On the AUCTeX home
34
34
page, we provide manuals in various formats.
35
35
 
 
36
This version of AUCTeX comes with preview-latex, an addictive productivity
 
37
tool providing a fine-grained interactive folding WYSIWYG display in the
 
38
source buffer.
 
39
 
36
40
%package emacs
37
41
Summary:        Enhanced TeX modes for GNU Emacs
38
42
Group:          %{commongroup}
39
43
Requires:       emacs >= 21
40
 
Obsoletes:      ge_auc emacs-auctex auctex
 
44
Obsoletes:      ge_auc emacs-auctex auctex preview-latex-emacs
41
45
Conflicts:      emacspeak < 18
42
46
Provides:       auctex
43
47
 
54
58
This package is for GNU Emacs.  XEmacs users should use the package system for
55
59
installation.
56
60
 
57
 
The package enables AUCTeX system-wide.  If you do not want this,
58
 
install/upgrade with 'rpm --nopre ...'  (the activation is done in the
59
 
preinstall script).
 
61
The package enables AUCTeX modes system-wide.  The README file
 
62
contains information how users may override this choice.
 
63
 
 
64
%package -n preview-tetex
 
65
Summary:       LaTeX files for preview.sty
 
66
Group:         %{texgroup}
 
67
Requires:      tetex
 
68
Obsoletes:     preview-latex-common
 
69
Provides:      preview-tetex preview-latex-common
 
70
 
 
71
%description -n preview-tetex
 
72
The LaTeX package preview.sty can be used for extracting selected
 
73
parts of LaTeX documents into graphics of their own.  Various TeX and
 
74
editing applications use this as a subsystem.  AUCTeX by now comes
 
75
with its own integrated version of preview-latex and the style files
 
76
and does not require this package, and newer versions of teTeX might
 
77
already contain preview.sty (in which case the resulting conflict is
 
78
probably best solved by not installing this package).
60
79
 
61
80
%prep
62
81
%setup
65
84
# The below will make the package build from a tar straight from CVS
66
85
# NOT RECOMMENDED, but useful for testing!
67
86
test -f ./configure || ./autogen.sh
68
 
# --with-texmf-dir overrides local docstrip configurations.
69
 
%configure "--with-emacs" '--with-texmf-dir=%{_datadir}/texmf'
 
87
%configure --with-emacs %{extraconfig} INSTALL_INFO=: --without-texmf-dir
70
88
make
71
89
pushd doc
72
 
make auctex.info tex-ref.pdf
 
90
make tex-ref.pdf
73
91
popd
74
92
 
75
93
%install
76
94
rm -rf %{buildroot}
77
95
mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,%{_infodir}}
78
 
%makeinstall install-contrib install-info
79
 
 
80
 
# Remove dir file that has been created by the makeinfo calls because this
81
 
# file will not been included in the rpm distribution (make RPM 4.1+ happy)
82
 
rm -f '%{buildroot}%{_infodir}/dir'
83
 
 
84
 
%pre emacs
85
 
echo "; Autoactivation of AUCTeX" > %{startupfile}
86
 
echo "; Created for %{name}-%{version}-%{release}.noarch.rpm" >> \
87
 
  %{startupfile}
88
 
echo "(require 'tex-site)" >> %{startupfile}
 
96
%if %{FOR_SUSE}
 
97
cat <<EOFA > %{buildroot}%{_datadir}/emacs/site-lisp/suse-start-auctex.el
 
98
;; suse-start-auctex.el
 
99
;; This file enables AUCTeX globally:
 
100
(load "auctex.el" nil t t)
 
101
;; See (info "(auctex)Introduction") on how to disable AUCTeX.
 
102
EOFA
 
103
cat <<EOFP > %{buildroot}%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el
 
104
;; suse-start-preview-latex.el
 
105
;; This file enables preview-latex globally:
 
106
(load "preview-latex.el" nil t t)
 
107
EOFP
 
108
%else
 
109
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d
 
110
%endif
 
111
%makeinstall install-docs
 
112
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/preview
 
113
cp -p preview/latex/*.{sty,def,cfg} %{buildroot}%{_datadir}/texmf/tex/latex/preview
 
114
touch -a %{buildroot}%{_datadir}/texmf/tex/latex/preview/preview.cfg
 
115
mkdir -p %{buildroot}%{_datadir}/texmf/doc/latex/styles
 
116
cp -p preview/latex/preview.dvi %{buildroot}%{_datadir}/texmf/doc/latex/styles
89
117
 
90
118
%post emacs
91
119
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/auctex.info
 
120
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/preview-latex.info
92
121
 
93
122
%preun emacs
94
123
# $1 is the number of versions of this package installed
95
124
# after this uninstallation
96
125
if [ $1 -eq 0 ]; then
97
126
  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/auctex.info
98
 
  rm -f %{startupfile}
 
127
  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/preview-latex.info
99
128
fi
100
129
%clean
101
130
rm -rf %{buildroot}
102
131
 
 
132
%post -n preview-tetex
 
133
/usr/bin/texhash
 
134
 
 
135
%postun -n preview-tetex
 
136
/usr/bin/texhash
 
137
 
 
138
%files -n preview-tetex
 
139
%defattr(-,root,root)
 
140
%{_datadir}/texmf/tex/latex/preview
 
141
%config %{_datadir}/texmf/tex/latex/preview/preview.cfg
 
142
%{_datadir}/texmf/doc/latex/styles/preview.dvi
 
143
 
103
144
%files emacs
104
145
%defattr(-,root,root)
105
146
%doc RELEASE COPYING INSTALL README TODO FAQ CHANGES
106
147
%doc doc/tex-ref.pdf
 
148
# %doc --parents preview/RELEASE preview/README preview/INSTALL preview/TODO preview/FAQ
107
149
%doc %{_infodir}/*
 
150
# %exclude %{_infodir}/dir
108
151
%{_datadir}/emacs/site-lisp/%{name}
109
152
%{_localstatedir}/%{name}
110
153
%config %{_datadir}/emacs/site-lisp/tex-site.el
 
154
%if %{FOR_SUSE}
 
155
%{_datadir}/emacs/site-lisp/auctex.el
 
156
%{_datadir}/emacs/site-lisp/preview-latex.el
 
157
%{_datadir}/emacs/site-lisp/suse-start-auctex.el
 
158
%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el
 
159
%else
 
160
%{_datadir}/emacs/site-lisp/site-start.d/auctex.el
 
161
%{_datadir}/emacs/site-lisp/site-start.d/preview-latex.el
 
162
%endif
 
163
 
111
164
 
112
165
%changelog
 
166
# Shouldn't changelog include changes in the package instead of changes in the
 
167
# spec file?
 
168
 
 
169
* Tue Jun  6 2006 Reiner Steib  <Reiner.Steib@gmx.de>
 
170
- Update to AUCTeX 11.83
 
171
 
 
172
* Wed Dec 28 2005 Reiner Steib  <Reiner.Steib@gmx.de>
 
173
- Remove bogus preview directory.  Add preview-latex in description.
 
174
 
 
175
* Sat Dec 17 2005 Reiner Steib  <Reiner.Steib@gmx.de>
 
176
- Update for AUCTeX 11.82.
 
177
 
 
178
* Tue May  3 2005 David Kastrup <dak@gnu.org>
 
179
- include preview-latex, so outdate other stuff.
 
180
 
113
181
* Fri Jan 21 2005 David Kastrup <dak@gnu.org>
114
182
- Conflict with outdated Emacspeak versions
115
183