Accepting request 1225125 from editors
- Update to AUCTeX ELPA version 14.0.7 (2024-10-05) ** Added - Respect the value of ~TeX-output-dir~ when processing files with latexmk. This means that the default value of ~TeX-command-list~ is changed. - Add new support files =style/authblk.el=, =style/langscibook.cls=, =style/lstautogobble.el=, =style/lstlinebgrd.el=, =style/ninecolors.el=, =style/supertabular.el=, =style/tabularray.el= and =style/xtab.el=. ** Fixed - Fold argument of verbatim macros more accurately. ** Removed - Remove the possibility to disable the side-wide installation with: #+begin_src emacs-lisp (unload-feature 'tex-site) #+end_src Using this form when installed from [[ELPA:auctex.html][ELPA]] will throw an error. - Update to AUCTeX ELPA version 14.0.6 * This work only with GNU Emacs 27.1 and above - Remove patches upstream now * dinbrief.patch * initial-reset.patch * auctex-13.1-expand.patch - Port patch dvips.patch - Port spec file to ELPA installation with the help of triggerin scriptlets - REcommend texlive-preview as this also from AUCTeX OBS-URL: https://build.opensuse.org/request/show/1225125 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/emacs-auctex?expand=0&rev=49
This commit is contained in:
commit
a8d7274d3b
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -21,3 +21,5 @@
|
|||||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
## Specific LFS patterns
|
||||||
|
auctex-14.0.7.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
Make it work again with latest texinfo and TeXLive
|
|
||||||
|
|
||||||
---
|
|
||||||
doc/Makefile.in | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
--- doc/Makefile.in
|
|
||||||
+++ doc/Makefile.in 2023-04-13 09:20:23.005315974 +0000
|
|
||||||
@@ -49,8 +49,8 @@ else
|
|
||||||
TEXI2HTML_TOC=auctex_toc.html
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
-TEXI2DVI=@TEXI2DVI@
|
|
||||||
-TEXI2PDF=@TEXI2PDF@
|
|
||||||
+TEXI2DVI=@TEXI2DVI@ -E
|
|
||||||
+TEXI2PDF=@TEXI2PDF@ -E
|
|
||||||
MKINSTALLDIRS = ../mkinstalldirs
|
|
||||||
DVIPS=@DVIPS@
|
|
||||||
PERL=@PERL@
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ebbe400f0e3463ed5c7a0446b9baabc4fe86b4f873a6446abbf48a7491b89552
|
|
||||||
size 4928620
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4f7e57e1241a499f34861d59f3c4652fb47e3896c7a2768edbbbec1e54c91252
|
|
||||||
size 1695608
|
|
Binary file not shown.
3
auctex-14.0.7-auto-TL-2024.tar.xz
Normal file
3
auctex-14.0.7-auto-TL-2024.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9a0d1a1991fc31ed0c180d58b162e9540de21fed263eb28c5baa0e40cdae943b
|
||||||
|
size 1359952
|
3
auctex-14.0.7.tar
Normal file
3
auctex-14.0.7.tar
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2832626f7d5f65613a7cd1a20d4739442dc4c69192ccf047388dac515096e1d4
|
||||||
|
size 6287360
|
BIN
auctex-14.0.7.tar.sig
Normal file
BIN
auctex-14.0.7.tar.sig
Normal file
Binary file not shown.
@ -48,3 +48,19 @@ ysPpcpoYf2wmKgxyhy5ap62fGTsY/jVBdZiQIE3ZCwuJW3pF8rJNNWlr+SJ4FrZQ
|
|||||||
v/QQhWK2PSxxqDJfwtQEVS5d2IieEhNrDfdxLhdNmCJBaDMl06RCU845XOE=
|
v/QQhWK2PSxxqDJfwtQEVS5d2IieEhNrDfdxLhdNmCJBaDMl06RCU845XOE=
|
||||||
=Eqv/
|
=Eqv/
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mDMEY6utGBYJKwYBBAHaRw8BAQdAxP4xIrWvQZyBULEc8jk1cczkxkN9uGQYWKTt
|
||||||
|
UWFUJoC0NUdOVSBFTFBBIFNpZ25pbmcgQWdlbnQgKDIwMjMpIDxlbHBhc2lnbkBl
|
||||||
|
bHBhLmdudS5vcmc+iJYEExYIAD4WIQSsSbil/e1pMfQO54v5k8A3ht5+ygUCY6ut
|
||||||
|
GAIbAQUJEswDAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRD5k8A3ht5+ynQq
|
||||||
|
AQClwEcDFC9yo90EB822USLhSokaZcrarA0bV7M1Hzb4AgD/eWzVWzF+eyq9L9cL
|
||||||
|
7HeAPpeGr1bvrc0qpKuoOrpqKQS4MwRjq61qFgkrBgEEAdpHDwEBB0ABNlit3Mf9
|
||||||
|
C6x7Q3b03ZROMfaJNbHIe2Xc0AVJbvWhI4j1BBgWCAAmFiEErEm4pf3taTH0DueL
|
||||||
|
+ZPAN4befsoFAmOrrWoCGwIFCQlmAYAAgQkQ+ZPAN4befsp2IAQZFggAHRYhBAMn
|
||||||
|
vmjWTZoaZoWfFWRTV9KIOglmBQJjq61qAAoJEGRTV9KIOglmhysA+wYoVM81Tus9
|
||||||
|
dw9nusBvLSWNagkqPqVqgkfliz+rIkWzAP0U+Blp4c5pcniqxliZNmHshkMJUvTj
|
||||||
|
tDEjfXW90NFaApNyAQDJ3HDHS5smFZGWQB3eeZV+YYPSSdxLs1gwlsW/DfkgDQD/
|
||||||
|
XW8uNCCGvVeskKu3snnX4P74kyXxF1gOndnK4EZMrg4=
|
||||||
|
=pXHO
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
145
dinbrief.patch
145
dinbrief.patch
@ -1,145 +0,0 @@
|
|||||||
Nowadays UTF-8 is standard, also port the features of the letter class
|
|
||||||
to dinbrief class.
|
|
||||||
|
|
||||||
Signed-off-by: Werner Fink <werner@suse.de>
|
|
||||||
---
|
|
||||||
style/dinbrief.el | 67 +++++++++++++++++++++++++++++++++++++++---------------
|
|
||||||
1 file changed, 49 insertions(+), 18 deletions(-)
|
|
||||||
|
|
||||||
--- style/dinbrief.el
|
|
||||||
+++ style/dinbrief.el
|
|
||||||
@@ -32,14 +32,26 @@
|
|
||||||
(require 'tex)
|
|
||||||
(require 'latex)
|
|
||||||
|
|
||||||
+;; Silence the compiler:
|
|
||||||
+(declare-function font-latex-add-keywords
|
|
||||||
+ "font-latex"
|
|
||||||
+ (keywords class))
|
|
||||||
+
|
|
||||||
+(defvar LaTeX-dinbrief-class-options
|
|
||||||
+ '("10pt" "11pt" "12pt" "norm" "a4paper" "a5paper" "b5paper"
|
|
||||||
+ "letterpaper" "legalpaper" "executivepaper" "twoside"
|
|
||||||
+ "addresshigh" "addressstd" "onecolumn" "twocolumn")
|
|
||||||
+ "Class options for the dinbrief class.")
|
|
||||||
+
|
|
||||||
(TeX-add-style-hook
|
|
||||||
"dinbrief"
|
|
||||||
(lambda ()
|
|
||||||
- (add-hook 'LaTeX-document-style-hook
|
|
||||||
- #'LaTeX-dinbrief-style)
|
|
||||||
(LaTeX-add-environments
|
|
||||||
'("letter" LaTeX-dinbrief-env-recipient)
|
|
||||||
"dinquote")
|
|
||||||
+ (add-hook 'LaTeX-document-style-hook
|
|
||||||
+ #'LaTeX-dinbrief-style)
|
|
||||||
+ (setq LaTeX-default-document-environment "letter")
|
|
||||||
(TeX-add-symbols
|
|
||||||
'("address" "Absender")
|
|
||||||
'("postremark" "Postvermerk")
|
|
||||||
@@ -61,12 +73,28 @@
|
|
||||||
'("backaddress" "Retouradresse")
|
|
||||||
'("signature" "Unterschrift")
|
|
||||||
'("opening" "Anrede")
|
|
||||||
- '("closing" "Schluss")))
|
|
||||||
+ '("closing" "Schluss"))
|
|
||||||
+
|
|
||||||
+ ;; Fontification
|
|
||||||
+ (when (and (featurep 'font-latex)
|
|
||||||
+ (eq TeX-install-font-lock 'font-latex-setup))
|
|
||||||
+ (font-latex-add-keywords '(("subject" "{")
|
|
||||||
+ ("address" "{")
|
|
||||||
+ ("signature" "{")
|
|
||||||
+ ("opening" "{")
|
|
||||||
+ ("closing" "{")
|
|
||||||
+ ("location" "{")
|
|
||||||
+ ("handling" "{")
|
|
||||||
+ ("cc" "{")
|
|
||||||
+ ("encl" "{")
|
|
||||||
+ ("ps" "{"))
|
|
||||||
+ 'function)))
|
|
||||||
TeX-dialect)
|
|
||||||
|
|
||||||
(defmacro LaTeX-dinbrief-insert (&rest args)
|
|
||||||
"Insert text ignoring active markers."
|
|
||||||
- `(progn (if mark-active (deactivate-mark))
|
|
||||||
+ `(progn
|
|
||||||
+ (if (TeX-active-mark) (deactivate-mark))
|
|
||||||
(insert ,@args)))
|
|
||||||
|
|
||||||
(defun LaTeX-dinbrief-style ()
|
|
||||||
@@ -77,17 +105,14 @@
|
|
||||||
(beginning-of-line 1))
|
|
||||||
(open-line 2)
|
|
||||||
(indent-relative-first-indent-point)
|
|
||||||
- (LaTeX-dinbrief-insert TeX-esc "usepackage"
|
|
||||||
- LaTeX-optop "latin1,utf8" LaTeX-optcl
|
|
||||||
- TeX-grop "inputenc" TeX-grcl)
|
|
||||||
- (newline-and-indent)
|
|
||||||
(LaTeX-dinbrief-insert TeX-esc "usepackage"
|
|
||||||
LaTeX-optop "T1" LaTeX-optcl
|
|
||||||
TeX-grop "fontenc" TeX-grcl)
|
|
||||||
- (indent-relative-first-indent-point)
|
|
||||||
+ (newline-and-indent)
|
|
||||||
(LaTeX-dinbrief-insert TeX-esc "usepackage"
|
|
||||||
- TeX-grop "ngerman" TeX-grcl))
|
|
||||||
- (TeX-run-style-hooks "inputenc" "fontenc" "ngerman"))
|
|
||||||
+ LaTeX-optop "ngerman" LaTeX-optcl
|
|
||||||
+ TeX-grop "babel" TeX-grcl))
|
|
||||||
+ (TeX-run-style-hooks "fontenc" "babel"))
|
|
||||||
|
|
||||||
(defun LaTeX-dinbrief-env-recipient (environment)
|
|
||||||
"Insert ENVIRONMENT and prompt for recipient and address."
|
|
||||||
@@ -118,8 +143,10 @@
|
|
||||||
(newline-and-indent)
|
|
||||||
(if (not (zerop (length retouradr)))
|
|
||||||
(progn
|
|
||||||
- (if mark-active (deactivate-mark))
|
|
||||||
- (LaTeX-dinbrief-insert TeX-esc "backaddress" TeX-grop retouradr TeX-grcl)
|
|
||||||
+ (if (TeX-active-mark) (deactivate-mark))
|
|
||||||
+ (LaTeX-dinbrief-insert TeX-esc
|
|
||||||
+ "backaddress"
|
|
||||||
+ TeX-grop retouradr TeX-grcl)
|
|
||||||
(newline-and-indent)))))
|
|
||||||
(LaTeX-dinbrief-insert TeX-esc "enabledraftstandard")
|
|
||||||
(newline-and-indent)
|
|
||||||
@@ -205,8 +232,8 @@
|
|
||||||
"Read and write the senders address."
|
|
||||||
(interactive)
|
|
||||||
(let ((name (TeX-read-string "Absender: " (user-full-name)))
|
|
||||||
- (str (TeX-read-string "Meine Strasse: "))
|
|
||||||
- (ort (TeX-read-string "Mein Wohnort: ")))
|
|
||||||
+ (str (TeX-read-string "Meine Strasse: "))
|
|
||||||
+ (ort (TeX-read-string "Mein Wohnort: ")))
|
|
||||||
(if (not (zerop (length name)))
|
|
||||||
(progn
|
|
||||||
(goto-char (point-min)) ; insert before \end{document}
|
|
||||||
@@ -231,8 +258,8 @@
|
|
||||||
(defun LaTeX-dinbrief-recipient ()
|
|
||||||
"Read and return the recipient address."
|
|
||||||
(interactive)
|
|
||||||
- (let ((str (TeX-read-string "Wohnhaft in Strasse: "))
|
|
||||||
- (ort (TeX-read-string "Aus der Ortschaft: ")))
|
|
||||||
+ (let ((str (TeX-read-string "Wohnhaft in Strasse: "))
|
|
||||||
+ (ort (TeX-read-string "Aus der Ortschaft: ")))
|
|
||||||
(if (not (zerop (length str)))
|
|
||||||
(if (not (zerop (length ort)))
|
|
||||||
(concat str " " TeX-esc TeX-esc " " ort)
|
|
||||||
@@ -246,7 +273,7 @@
|
|
||||||
(let ((ctime-string (current-time-string))
|
|
||||||
(month-alist '(("Jan" . "Januar")
|
|
||||||
("Feb" . "Februar")
|
|
||||||
- ("Mar" . "M\\\"arz")
|
|
||||||
+ ("Mar" . "März")
|
|
||||||
("Apr" . "April")
|
|
||||||
("May" . "Mai")
|
|
||||||
("Jun" . "Juni")
|
|
||||||
@@ -270,4 +297,8 @@
|
|
||||||
(setq day (concat "0" day)))))
|
|
||||||
(format "%s, den %s. %s %s" place day month year))))
|
|
||||||
|
|
||||||
+;; Local Variables:
|
|
||||||
+;; coding: utf-8-unix
|
|
||||||
+;; End:
|
|
||||||
+
|
|
||||||
;;; dinbrief.el ends here
|
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
--- tex.el
|
--- tex.el
|
||||||
+++ tex.el 2022-09-10 15:13:15.964170324 +0000
|
+++ tex.el 2022-09-10 15:13:15.964170324 +0000
|
||||||
@@ -429,7 +429,7 @@ string."
|
@@ -450,7 +450,7 @@ string."
|
||||||
;; TeX-print-command.
|
;; TeX-print-command.
|
||||||
|
|
||||||
(defcustom TeX-print-command
|
(defcustom TeX-print-command
|
||||||
|
4
emacs-auctex-rpmlintrc
Normal file
4
emacs-auctex-rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
addFilter(".*hidden-file-or-dir.*/.nosearch.*")
|
||||||
|
addFilter(".*files-duplicate.*/.nosearch.*")
|
||||||
|
addFilter(".*no-%check-section.*")
|
||||||
|
addFilter(".*source-not-compressed.*")
|
@ -1,3 +1,39 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 19 14:49:44 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- Update to AUCTeX ELPA version 14.0.7 (2024-10-05)
|
||||||
|
** Added
|
||||||
|
- Respect the value of ~TeX-output-dir~ when processing files with
|
||||||
|
latexmk. This means that the default value of ~TeX-command-list~ is
|
||||||
|
changed.
|
||||||
|
- Add new support files =style/authblk.el=, =style/langscibook.cls=,
|
||||||
|
=style/lstautogobble.el=, =style/lstlinebgrd.el=,
|
||||||
|
=style/ninecolors.el=, =style/supertabular.el=, =style/tabularray.el=
|
||||||
|
and =style/xtab.el=.
|
||||||
|
** Fixed
|
||||||
|
- Fold argument of verbatim macros more accurately.
|
||||||
|
** Removed
|
||||||
|
- Remove the possibility to disable the side-wide installation with:
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(unload-feature 'tex-site)
|
||||||
|
#+end_src
|
||||||
|
Using this form when installed from [[ELPA:auctex.html][ELPA]] will
|
||||||
|
throw an error.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 10 12:54:27 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- Update to AUCTeX ELPA version 14.0.6
|
||||||
|
* This work only with GNU Emacs 27.1 and above
|
||||||
|
- Remove patches upstream now
|
||||||
|
* dinbrief.patch
|
||||||
|
* initial-reset.patch
|
||||||
|
* auctex-13.1-expand.patch
|
||||||
|
- Port patch dvips.patch
|
||||||
|
- Port spec file to ELPA installation with the
|
||||||
|
help of triggerin scriptlets
|
||||||
|
- REcommend texlive-preview as this also from AUCTeX
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 16 13:27:12 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
Thu May 16 13:27:12 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ Provides: ge_auc
|
|||||||
Requires: emacs
|
Requires: emacs
|
||||||
Requires: texlive-latex
|
Requires: texlive-latex
|
||||||
Requires: texlive-tools
|
Requires: texlive-tools
|
||||||
|
Requires: emacs(ELPA)
|
||||||
|
Recommends: texlive-preview
|
||||||
Supplements: (texlive and emacs)
|
Supplements: (texlive and emacs)
|
||||||
BuildRequires: emacs-x11
|
BuildRequires: emacs-x11
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
@ -42,22 +44,20 @@ BuildRequires: texlive-latex >= %tlversion
|
|||||||
BuildRequires: texlive-tex >= %tlversion
|
BuildRequires: texlive-tex >= %tlversion
|
||||||
BuildRequires: texlive-texinfo >= %tlversion
|
BuildRequires: texlive-texinfo >= %tlversion
|
||||||
%endif
|
%endif
|
||||||
Version: 13.3
|
Version: 14.0.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: AUC TeX: An Emacs Extension
|
Summary: AUC TeX: An Emacs Extension
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Editors/Emacs
|
Group: Productivity/Editors/Emacs
|
||||||
Source0: https://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz
|
Source0: https://elpa.gnu.org/packages/auctex-%{version}.tar
|
||||||
Source1: https://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz.sig
|
Source1: https://elpa.gnu.org/packages/auctex-%{version}.tar.sig
|
||||||
Source2: auctex.keyring
|
Source2: auctex.keyring
|
||||||
Source3: auctex-%{version}-auto-TL-%{tlversion}.tar.xz
|
Source3: auctex-%{version}-auto-TL-%{tlversion}.tar.xz
|
||||||
|
Source4: emacs-auctex-rpmlintrc
|
||||||
URL: https://www.gnu.org/software/auctex
|
URL: https://www.gnu.org/software/auctex
|
||||||
# Allows to select printer instance
|
# Allows to select printer instance
|
||||||
# PATCH-FEATURE-UPSTREAM dvips.patch
|
# PATCH-FEATURE-UPSTREAM dvips.patch
|
||||||
Patch0: dvips.patch
|
Patch0: dvips.patch
|
||||||
Patch1: auctex-13.1-expand.patch
|
|
||||||
Patch3: initial-reset.patch
|
|
||||||
Patch4: dinbrief.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -69,100 +69,141 @@ Emacs. Documentation can be found under:
|
|||||||
and in the dvi files math-ref.dvi and tex-ref.dvi (reference cards) and
|
and in the dvi files math-ref.dvi and tex-ref.dvi (reference cards) and
|
||||||
in the info file auctex in emacs info-mode.
|
in the info file auctex in emacs info-mode.
|
||||||
|
|
||||||
AuC TeX is integrated in XEmacs 19.15 and higher, so these packages may
|
%define _sitedir %{_datadir}/emacs/site-lisp/elpa
|
||||||
not be installed concurrently. Note that the binary formats of the
|
%define _aucdir %{_sitedir}/auctex-%{version}
|
||||||
byte-compiled lisp files of the two emacs editors are incompatible, so
|
|
||||||
you cannot use this package for XEmacs.
|
|
||||||
|
|
||||||
%define _sitedir %{_datadir}/emacs/site-lisp
|
|
||||||
%define _aucdir %{_sitedir}/auctex
|
|
||||||
%define _smp_mflags -j1
|
%define _smp_mflags -j1
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n auctex-%{version}
|
%setup -n auctex-%{version}
|
||||||
%patch -P0
|
%patch -P0
|
||||||
%patch -P1
|
|
||||||
%patch -P3
|
|
||||||
%patch -P4
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
unset ${!LC_*}
|
unset ${!LC_*}
|
||||||
LANG=en_US.UTF-8
|
LANG=en_US.UTF-8
|
||||||
export LANG
|
export LANG
|
||||||
rm -rf /tmp/auctex
|
EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t
|
||||||
mkdir /tmp/auctex
|
export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
|
||||||
mkdir -p /tmp/auctex/doc/preview
|
emacs -batch -Q -l package -L ${PWD} \
|
||||||
mkdir -p /tmp/auctex/latex/preview
|
--eval "(setq package-user-dir \"/nonexistent\")" \
|
||||||
%configure \
|
--eval "(add-to-list 'package-directory-list \"${PWD}\")" \
|
||||||
--docdir=%{_defaultdocdir}/%name \
|
-f package-initialize -f batch-byte-compile *.el style/*.el
|
||||||
--with-emacs \
|
mkdir ${PWD}/auto
|
||||||
--with-lispdir=%{_sitedir} \
|
|
||||||
--with-auto-dir=%{_aucdir}/auto \
|
|
||||||
--with-texmf-dir=%{_datadir}/texmf \
|
|
||||||
--with-doc-dir=/tmp/auctex/doc/preview \
|
|
||||||
--with-tex-dir=/tmp/auctex/latex/preview
|
|
||||||
find . -name '*.elc' | xargs -r rm -f
|
|
||||||
%make_build
|
|
||||||
%{__make} %{_make_output_sync} -C doc clean
|
|
||||||
%{__make} %{_make_output_sync} -C doc %{?_smp_mflags}
|
|
||||||
%{__make} %{_make_output_sync} -C doc extradist
|
|
||||||
rm -rf /tmp/auctex
|
|
||||||
|
|
||||||
%install
|
|
||||||
export LC_CTYPE=ISO-8859-1
|
|
||||||
mkdir -p %{buildroot}%{_sitedir}/site-start.d
|
|
||||||
%make_install DESTDIR=%{buildroot}
|
|
||||||
pushd %{buildroot}%{_aucdir}/auto/
|
|
||||||
%if %{with tex4auto}
|
%if %{with tex4auto}
|
||||||
pwd
|
ignore="$(sed -rn '/^\(defcustom TeX-ignore-file/,+1{ s@^\s+@@;s@(\\\\)(\)\$)@\1|lwarp\\.sty\\\\\2@p }' < tex.el)"
|
||||||
echo "Run the command TeX-auto-generate-global in mini buffer"
|
emacs -batch -Q -L ${PWD} \
|
||||||
ignore="$(sed -rn '/^\(defcustom TeX-ignore-file/,+1{ s@^\s+@@;s@(\\\\)(\)\$)@\1|lwarp\\.sty\\\\\2@p }' < ../tex.el)"
|
--eval "(setq TeX-lisp-directory \"${PWD}\")" \
|
||||||
emacs-gtk -batch -Q -L %{buildroot}%{_sitedir}/auctex \
|
|
||||||
--eval '(setq TeX-lisp-directory "%{buildroot}%{_aucdir}")' \
|
|
||||||
--eval "(setq TeX-install-font-lock #'ignore)" \
|
--eval "(setq TeX-install-font-lock #'ignore)" \
|
||||||
--eval "(setq TeX-ignore-file ${ignore})" \
|
--eval "(setq TeX-ignore-file ${ignore})" \
|
||||||
--eval '(setq TeX-auto-global "%{buildroot}%{_aucdir}/auto")' \
|
--eval "(setq TeX-auto-global \"${PWD}/auto\")" \
|
||||||
-l %{buildroot}%{_sitedir}/tex-site.el -f TeX-auto-generate-global
|
-l tex-site -l tex -l latex -l plain-tex -f TeX-auto-generate-global
|
||||||
exit 1
|
|
||||||
%else
|
%else
|
||||||
TLVERSION=$(rpm -q --qf '%%{VERSION}' -f /etc/texmf)
|
TLVERSION=$(rpm -q --qf '%%{VERSION}' -f /etc/texmf)
|
||||||
if test %{tlversion} -eq ${TLVERSION%%%%.*}
|
if test %{tlversion} -eq ${TLVERSION%%%%.*}
|
||||||
then
|
then
|
||||||
tar --use-compress-program=xz -xf %{S:3}
|
tar --use-compress-program=xz -xf %{S:3} -C ${PWD}/auto/
|
||||||
touch %{buildroot}%{_aucdir}/auto/.nosearch
|
|
||||||
else
|
else
|
||||||
echo Rerun with %%bcond_without tex4auto to generate new
|
echo Rerun with %%bcond_without tex4auto to generate new
|
||||||
echo auctex-%{version}-auto-TL-${TLVERSION%%%%.*}.tar.xz
|
echo auctex-%{version}-auto-TL-${TLVERSION%%%%.*}.tar.xz
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
popd
|
# Otherwise, e.g. the auto/url.el masks out the url/url.el from emacs lisp collections
|
||||||
cat <<-EOF > %{buildroot}%{_sitedir}/suse-start-auctex.el
|
for dir in style auto
|
||||||
;;; suse-start-auctex.el
|
|
||||||
;;
|
|
||||||
;; This is used for starting up AUCTeX
|
|
||||||
;; See (info "(auctex)Introduction") on how to disable AUCTeX.
|
|
||||||
;;
|
|
||||||
(load "auctex.el" nil t t)
|
|
||||||
EOF
|
|
||||||
cat <<-EOF > %{buildroot}%{_sitedir}/suse-start-preview-latex.el
|
|
||||||
;;; suse-start-preview-latex.el
|
|
||||||
;;
|
|
||||||
;; This is used for starting up preview-latex of AUCTeX
|
|
||||||
;; See (info "(auctex)Introduction") on how to disable AUCTeX.
|
|
||||||
;;
|
|
||||||
(load "preview-latex.el" nil t t)
|
|
||||||
EOF
|
|
||||||
for el in auctex.el preview-latex.el
|
|
||||||
do
|
do
|
||||||
test -e %{buildroot}%{_sitedir}/$el || continue
|
test -e ${dir}/.nosearch && continue
|
||||||
mv %{buildroot}%{_sitedir}/$el %{buildroot}%{_sitedir}/site-start.d/
|
echo ';; AUCTeX style/ and auto/ directories should not appear in load path.' > ${dir}/.nosearch
|
||||||
done
|
done
|
||||||
#
|
|
||||||
# Preview is part of te_latex
|
# This is part of the (recommended) texlive-preview
|
||||||
#
|
rm -rvf latex/
|
||||||
rm -rf %{buildroot}/tmp/auctex
|
|
||||||
%define info_files auctex.info preview-latex.info
|
unset HOME
|
||||||
|
emacs -batch -Q -l package \
|
||||||
|
--eval '(setq package-user-dir "/nonexistent")' \
|
||||||
|
--eval "(package-generate-autoloads \"auctex\" \"$(cwd)\")"
|
||||||
|
|
||||||
|
pushd doc
|
||||||
|
%global info_files auctex.info preview-latex.info
|
||||||
|
rm -vf *.info *.pdf
|
||||||
|
texi2pdf -E auctex.texi
|
||||||
|
pdftex tex-ref.tex
|
||||||
|
makeinfo -I . auctex.texi
|
||||||
|
makeinfo -I . preview-latex.texi
|
||||||
|
popd
|
||||||
|
|
||||||
|
%install
|
||||||
|
unset ${!LC_*}
|
||||||
|
LANG=en_US.UTF-8
|
||||||
|
export LANG
|
||||||
|
EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t
|
||||||
|
export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
|
||||||
|
|
||||||
|
unelc ()
|
||||||
|
{
|
||||||
|
local elc=$1
|
||||||
|
local elz=${elc%%.elc}.el.gz
|
||||||
|
rm -vf $elc
|
||||||
|
if test -n "$elz" -a -e "$elz" ; then
|
||||||
|
gunzip "$elz"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sitedir}/auctex-%{version}
|
||||||
|
tar cpf - *.el *.elc auto/ style/ images/ | \
|
||||||
|
tar xpf - -C %{buildroot}%{_sitedir}/auctex-%{version}/
|
||||||
|
|
||||||
|
pushd doc
|
||||||
|
install -m 644 -D -t %{buildroot}%{_infodir} preview-latex.info
|
||||||
|
install -m 644 -D -t %{buildroot}%{_infodir} auctex.info*
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd %{buildroot}%{_sitedir}/auctex-%{version}
|
||||||
|
find -name '*.el' -exec gzip -f9 '{}' \+
|
||||||
|
unelc auctex-autoloads.elc
|
||||||
|
unelc auctex-pkg.elc
|
||||||
|
unelc auctex.elc
|
||||||
|
unelc tex-site.elc
|
||||||
|
unelc font-latex.elc
|
||||||
|
# Workaround for old stuff in ~/.gnu-emacs which is about loading "auctex/font-latex"
|
||||||
|
# in after-init-hook for existing AUCTeX version
|
||||||
|
mkdir auctex
|
||||||
|
pushd auctex
|
||||||
|
ln -sf ../font-latex.el .
|
||||||
|
echo ';; AUCTeX style/ and auto/ directories should not appear in load path.' > .nosearch
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
%triggerin -- emacs-nox
|
||||||
|
EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t
|
||||||
|
export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
|
||||||
|
if test -e %{_aucdir}/font-latex.el
|
||||||
|
then
|
||||||
|
owd=$(pwd)
|
||||||
|
cd %{_aucdir} || exit 0
|
||||||
|
emacs -batch -Q --eval '(setq load-path (cons "." load-path)
|
||||||
|
byte-compile-warnings nil
|
||||||
|
TeX-lisp-directory "%{_aucdir}"
|
||||||
|
TeX-auto-global "%{_aucdir}/auto")' -f batch-byte-compile font-latex.el > /dev/null 2>&1
|
||||||
|
cd auctex
|
||||||
|
ln -sf ../font-latex.elc .
|
||||||
|
cd $owd
|
||||||
|
fi
|
||||||
|
|
||||||
|
%triggerin -- emacs-x11
|
||||||
|
EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t
|
||||||
|
export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
|
||||||
|
if test -e %{_aucdir}/font-latex.el
|
||||||
|
then
|
||||||
|
owd=$(pwd)
|
||||||
|
cd %{_aucdir} || exit 0
|
||||||
|
emacs -batch -Q --eval '(setq load-path (cons "." load-path)
|
||||||
|
byte-compile-warnings nil
|
||||||
|
TeX-lisp-directory "%{_aucdir}"
|
||||||
|
TeX-auto-global "%{_aucdir}/auto")' -f batch-byte-compile font-latex.el > /dev/null 2>&1
|
||||||
|
cd auctex
|
||||||
|
ln -sf ../font-latex.elc .
|
||||||
|
cd $owd
|
||||||
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
for f in %info_files; do
|
for f in %info_files; do
|
||||||
@ -176,26 +217,29 @@ done
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc README COPYING doc/*.pdf CHANGES
|
%license COPYING
|
||||||
|
%doc README doc/*.pdf ChangeLog
|
||||||
%dir %{_sitedir}/
|
%dir %{_sitedir}/
|
||||||
%dir %{_aucdir}/
|
%dir %{_aucdir}/
|
||||||
|
%dir %{_aucdir}/auctex/
|
||||||
%dir %{_aucdir}/auto/
|
%dir %{_aucdir}/auto/
|
||||||
%dir %{_aucdir}/images/
|
%dir %{_aucdir}/images/
|
||||||
%dir %{_aucdir}/style/
|
%dir %{_aucdir}/style/
|
||||||
%doc %{_infodir}/*.info*.gz
|
%doc %{_infodir}/*.info*.gz
|
||||||
%{_aucdir}/*.el
|
%{_aucdir}/*.el
|
||||||
|
%{_aucdir}/*.el%{ext_el}
|
||||||
|
%ghost %verify(not mode) %{_aucdir}/font-latex.elc
|
||||||
%{_aucdir}/*.elc
|
%{_aucdir}/*.elc
|
||||||
|
%{_aucdir}/auctex/font-latex.el
|
||||||
|
%ghost %verify(not mode) %{_aucdir}/auctex/font-latex.elc
|
||||||
|
%{_aucdir}/auctex/.nosearch
|
||||||
%{_aucdir}/auto/*.el%{ext_el}
|
%{_aucdir}/auto/*.el%{ext_el}
|
||||||
%{_aucdir}/auto/*.elc
|
%{_aucdir}/auto/*.elc
|
||||||
%{_aucdir}/auto/.nosearch
|
%{_aucdir}/auto/.nosearch
|
||||||
|
%{_aucdir}/images/*.xbm
|
||||||
%{_aucdir}/images/*.xpm
|
%{_aucdir}/images/*.xpm
|
||||||
%{_aucdir}/style/*.el
|
%{_aucdir}/style/*.el%{ext_el}
|
||||||
%{_aucdir}/style/*.elc
|
%{_aucdir}/style/*.elc
|
||||||
%{_aucdir}/auto/.nosearch
|
|
||||||
%{_aucdir}/style/.nosearch
|
%{_aucdir}/style/.nosearch
|
||||||
%config %{_sitedir}/suse-start*.el
|
|
||||||
%config %{_sitedir}/tex-site.el
|
|
||||||
%config %{_sitedir}/site-start.d/auctex.el
|
|
||||||
%config %{_sitedir}/site-start.d/preview-latex.el
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
Enable initial reset for LaTeX classes to load the class mode
|
|
||||||
at creation of the document. The declared variable is called
|
|
||||||
LaTeX-global-class-files and not TeX-global-class-files.
|
|
||||||
|
|
||||||
---
|
|
||||||
latex.el | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
--- latex.el
|
|
||||||
+++ latex.el 2024-05-07 06:47:32.754527641 +0000
|
|
||||||
@@ -2706,7 +2706,7 @@ Initialized once at the first time you p
|
|
||||||
May be reset with `\\[universal-argument] \\[TeX-normal-mode]'.")
|
|
||||||
|
|
||||||
;; Add the variable to `TeX-normal-mode-reset-list':
|
|
||||||
-(add-to-list 'TeX-normal-mode-reset-list 'TeX-global-class-files)
|
|
||||||
+(add-to-list 'TeX-normal-mode-reset-list 'LaTeX-global-class-files)
|
|
||||||
|
|
||||||
(defcustom TeX-arg-input-file-search t
|
|
||||||
"If `TeX-arg-input-file' should search for files.
|
|
Loading…
x
Reference in New Issue
Block a user