SHA256
1
0
forked from pool/emacs-auctex

Accepting request 83418 from home:jengelh:bl-e

- Remove redundant/obsolete tags/sections from specfile
  (cf. packaging guidelines)
- Use %_smp_mflags for parallel build

OBS-URL: https://build.opensuse.org/request/show/83418
OBS-URL: https://build.opensuse.org/package/show/editors/emacs-auctex?expand=0&rev=13
This commit is contained in:
Stephan Kulow 2011-09-21 13:56:03 +00:00 committed by Git OBS Bridge
parent 994a754581
commit 6c288dc724
3 changed files with 44 additions and 23 deletions

View File

@ -1,6 +1,17 @@
--- preview/preview.el
+++ preview/preview.el 2010-08-12 09:13:54.697159903 +0000
@@ -704,7 +704,7 @@ Gets the usual PROCESS and STRING parame
+++ preview/preview.el 2010-10-13 10:01:38.999927331 +0000
@@ -369,6 +369,10 @@ See also `preview-gs-command'."
Buffer-local to the appropriate TeX process buffer.")
(make-variable-buffer-local 'preview-gs-queue)
+(defvar preview-pdf-filename ""
+ "Name of the PDF file used for preview.")
+(make-variable-buffer-local 'preview-pdf-filename)
+
(defvar preview-gs-outstanding nil
"Overlays currently processed.")
(make-variable-buffer-local 'preview-gs-outstanding)
@@ -704,7 +708,7 @@ Gets the usual PROCESS and STRING parame
preview-gs-command-line)
" ") "''\n")
(setq preview-gs-answer "")
@ -9,7 +20,7 @@
(set-process-sentinel process #'preview-gs-sentinel)
(set-process-filter process #'preview-gs-filter)
(process-send-string process preview-gs-init-string)
@@ -1072,6 +1072,12 @@ NONREL is not NIL."
@@ -1072,6 +1076,13 @@ NONREL is not NIL."
(caar preview-ps-file))
(car preview-ps-file))))
(setq preview-gs-dsc (preview-dsc-parse file))
@ -17,8 +28,17 @@
+ (append (list "-dDELAYSAFER")
+ (remove "-dSAFER" preview-gs-command-line)
+ (list "-c"
+ (format "<</PermitFileReading[%s]>> setuserparams .locksafe"
+ (preview-ps-quote-filename file)))))
+ (format "<</PermitFileReading[%s %s]>> setuserparams .locksafe"
+ (preview-ps-quote-filename file)
+ (preview-ps-quote-filename preview-pdf-filename)))))
(setq preview-gs-init-string
(concat preview-gs-init-string
(format "[%s(r)file]aload exch %s .runandhide aload pop "
@@ -3100,6 +3111,7 @@ If FAST is set, do a fast conversion."
(setq tempdir TeX-active-tempdir
pdfsource (funcall `,(car file) "pdf")))))
(name "Preview-PDF2DSC"))
+ (setq preview-pdf-filename pdfsource)
(setq TeX-active-tempdir tempdir)
(setq preview-ps-file (preview-attach-filename
pdfsource

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
- Remove redundant/obsolete tags/sections from specfile
(cf. packaging guidelines)
- Use %_smp_mflags for parallel build
-------------------------------------------------------------------
Wed Oct 13 12:09:48 CEST 2010 - werner@suse.de
- Allow also to read PDF file its self to be able to generate the
descriptions of those file (based on patch of Dieter Jurzitza)
-------------------------------------------------------------------
Wed Aug 11 18:58:43 CEST 2010 - werner@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package emacs-auctex (Version 11.86)
# spec file for package emacs-auctex
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: emacs-auctex
@ -25,9 +24,8 @@ Group: Productivity/Editors/Emacs
Obsoletes: ge_auc
Provides: auc-tex auctex ge_auc
Requires: emacs texlive-tools texlive-latex
AutoReqProv: on
Version: 11.86
Release: 3
Release: 4
Summary: AUC TeX: An Emacs Extension
Source: ftp://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.bz2
Url: http://www.gnu.org/software/auctex
@ -50,13 +48,6 @@ 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.
Authors:
--------
Kresten Krab Thorup <auc-tex_mgr@iesd.auc.dk>
Per Abrahamsen <abraham@dina.kvl.dk>
%define _sitedir %{_datadir}/emacs/site-lisp
%define _aucdir %{_sitedir}/auctex
@ -73,10 +64,7 @@ Authors:
mkdir /tmp/auctex
mkdir -p /tmp/auctex/doc/preview
mkdir -p /tmp/auctex/latex/preview
./configure --prefix=%{_prefix} \
--exec-prefix=%{_prefix} \
--infodir=%{_infodir} \
--mandir=%{_mandir} \
%configure \
--docdir=%{_defaultdocdir}/%name \
--with-emacs \
--with-lispdir=%{_sitedir} \
@ -85,9 +73,9 @@ Authors:
--with-doc-dir=/tmp/auctex/doc/preview \
--with-tex-dir=/tmp/auctex/latex/preview
find , -name '*.elc' | xargs -r rm -f
make
make %{?_smp_mflags}
make -C doc clean
make -C doc
make -C doc %{?_smp_mflags}
make -C doc extradist
rm -rf /tmp/auctex