auto-import latexmk-3.08n-4 on branch devel from latexmk-3.08n-4.src.rpm
This commit is contained in:
parent
bd3776f2b2
commit
01b6260553
@ -0,0 +1 @@
|
||||
latexmk-308n.zip
|
103
latexmk-README.fedora
Normal file
103
latexmk-README.fedora
Normal file
@ -0,0 +1,103 @@
|
||||
I. CHANGES FROM UPSTREAM
|
||||
|
||||
Latexmk almost works out of the box. Three changes have been made to
|
||||
conform to Fedora Core conventions. First, the default DVI, PostScript,
|
||||
and PDF previewers have been changed to 'xdg-open'; see below for more
|
||||
information. Second, the script has been altered so that it does not
|
||||
search for the perl binary; perl is in a known location on Fedora Core
|
||||
systems. Finally, the site-wide configuration file is /etc/latexmk.conf
|
||||
only, as opposed to the list of names searched by the original latexmk.
|
||||
|
||||
II. PREVIEWERS
|
||||
|
||||
The command xdg-open views a file using the viewer selected by the user
|
||||
for that type of file. See the xdg-mime(1) command for more
|
||||
information. Unfortunately, the use of xdg-open precludes the updating
|
||||
of the previewing application, as latexmk cannot know which application
|
||||
is doing the previewing. It also breaks viewing of landscape documents
|
||||
for some previewers. For best results, you should customize latexmk for
|
||||
the particular previewers you intend to use. Following are the settings
|
||||
for some commonly used previewers, to be placed in the site, user, or
|
||||
project configuration file. Note that an update method of 1 means that
|
||||
there is no way for latexmk to cause the program to refresh; you have to
|
||||
take some action of your own to see changes to the document.
|
||||
|
||||
A. DVI PREVIEWERS
|
||||
|
||||
1. xdvi
|
||||
|
||||
$dvi_previewer = 'start xdvi';
|
||||
$dvi_previewer_landscape = 'start xdvi -paper usr';
|
||||
$dvi_update_method = 2;
|
||||
|
||||
2. pxdvi
|
||||
|
||||
$dvi_previewer = 'start pxdvi';
|
||||
$dvi_previewer_landscape = 'start pxdvi -paper usr';
|
||||
$dvi_update_method = 2;
|
||||
|
||||
3. kdvi
|
||||
|
||||
$dvi_previewer = 'start kdvi';
|
||||
$dvi_previewer_landscape = 'start kdvi';
|
||||
$dvi_update_method = 0;
|
||||
|
||||
B. POSTSCRIPT PREVIEWERS
|
||||
|
||||
1. gv
|
||||
|
||||
$ps_previewer = 'start gv -watch';
|
||||
$ps_previewer_landscape = 'start gv -swap -watch';
|
||||
$ps_update_method = 0;
|
||||
|
||||
2. evince
|
||||
|
||||
$ps_previewer = 'start evince';
|
||||
$ps_previewer_landscape = 'start evince';
|
||||
$ps_update_method = 1;
|
||||
|
||||
3. kghostview
|
||||
|
||||
$ps_previewer = 'start kghostview';
|
||||
$ps_previewer_landscape = 'start kghostview --orientation=landscape';
|
||||
$ps_update_method = 1;
|
||||
|
||||
If you can remember to set the "Watch File" option in
|
||||
kghostview, then instead set:
|
||||
|
||||
$ps_update_method = 0;
|
||||
|
||||
Unfortunately, there appears to be no command line argument to
|
||||
set the "Watch File" option.
|
||||
|
||||
C. PDF PREVIEWERS
|
||||
|
||||
1. gv
|
||||
|
||||
$pdf_previewer = 'start gv -watch';
|
||||
$pdf_update_method = 0;
|
||||
|
||||
2. evince
|
||||
|
||||
$pdf_previewer = 'start evince';
|
||||
$pdf_update_method = 1;
|
||||
|
||||
3. kghostview
|
||||
|
||||
$pdf_previewer = 'start kghostview';
|
||||
$pdf_update_method = 1;
|
||||
|
||||
See the remark on the "Watch File" option above.
|
||||
|
||||
4. kpdf
|
||||
|
||||
$pdf_previewer = 'start kpdf;
|
||||
$pdf_update_method = 1;
|
||||
|
||||
The "Watch File" remark above for kghostview applies to kpdf also.
|
||||
|
||||
5. acroread
|
||||
|
||||
$pdf_previewer = 'start acroread';
|
||||
$pdf_update_method = 1;
|
||||
|
1456
latexmk-conf.patch
Normal file
1456
latexmk-conf.patch
Normal file
File diff suppressed because it is too large
Load Diff
26
latexmk-perl.patch
Normal file
26
latexmk-perl.patch
Normal file
@ -0,0 +1,26 @@
|
||||
--- latexmk.pl.ORIG 2007-02-20 10:19:23.000000000 -0700
|
||||
+++ latexmk.pl 2007-02-20 10:22:18.000000000 -0700
|
||||
@@ -1,23 +1,4 @@
|
||||
-eval '(exit $?0)' && eval 'exec perl -x -S "$0" ${1+"$@"}' &&
|
||||
-eval 'exec perl -x -S "$0" $argv:q'
|
||||
-if 0;
|
||||
#!/usr/bin/perl -w
|
||||
-#!/opt/local/bin/perl -w
|
||||
-#!/usr/local/bin/perl -w
|
||||
-# The above code allows this script to be run under UNIX/LINUX without
|
||||
-# the need to adjust the path to the perl program in a "shebang" line.
|
||||
-# (The location of perl changes between different installations, and
|
||||
-# may even be different when several computers running different
|
||||
-# flavors of UNIX/LINUX share a copy of latex or other scripts.) The
|
||||
-# script is started under the default command interpreter sh, and the
|
||||
-# evals in the first two lines restart the script under perl, and work
|
||||
-# under various flavors of sh. The -x switch tells perl to start the
|
||||
-# script at the first #! line containing "perl". The "if 0;" on the
|
||||
-# 3rd line converts the first two lines into a valid perl statement
|
||||
-# that does nothing.
|
||||
-#
|
||||
-# Source of the above: manpage for perlrun
|
||||
-
|
||||
|
||||
# ATTEMPT TO ALLOW FILENAMES WITH SPACES:
|
||||
# (as of 1 Apr 2006)
|
213
latexmk.conf
Normal file
213
latexmk.conf
Normal file
@ -0,0 +1,213 @@
|
||||
# This is the system-wide configuration file for latexmk.
|
||||
# See the latexmk(1) man page for more information.
|
||||
#
|
||||
# The following options are given their default values.
|
||||
# Uncomment them and change the values if the defaults do not suit your needs.
|
||||
|
||||
# If nonzero, DVI-to-postscript conversion adds a banner message on each page
|
||||
# $banner = 0;
|
||||
|
||||
# The darkness of the banner, a number between 0 (black) and 1 (white)
|
||||
# $banner_intensity = 0.95;
|
||||
|
||||
# The banner message to print across each page if $banner is nonzero
|
||||
# $banner_message = 'DRAFT';
|
||||
|
||||
# The size of the banner message (about 1100 divided by the message length)
|
||||
# $banner_scale = 220.0;
|
||||
|
||||
# An array of directory names where BibTeX should look for .bib files.
|
||||
# @BIBINPUTS = $ENV('BIBINPUTS') converted to an array of strings
|
||||
|
||||
# The name of the BibTeX executable
|
||||
# $bibtex = 'bibtex';
|
||||
|
||||
# The switch that puts BibTeX in silent mode
|
||||
# $bibtex_silent_switch = '-terse';
|
||||
|
||||
# How much cleaning to do: 0 specifies normal operation (no cleaning),
|
||||
# 1 specifies a full cleanup, 2 specifies a cleanup that leaves DVI,
|
||||
# PostScript, and PDF files, and 3 specifies a cleanup that also leaves dep
|
||||
# and aux files. You probably should not set this option.
|
||||
# $cleanup_mode = 0;
|
||||
|
||||
# Extra file extensions to remove when cleaning
|
||||
# $clean_ext = "";
|
||||
|
||||
# Extra file extensions to remove when doing a full clean
|
||||
# $clean_full_ext = "";
|
||||
|
||||
# A custom dependency list; see the man page for details
|
||||
# @cus_dep_list = ();
|
||||
|
||||
# The default list of files to be processed; see the man page for details
|
||||
# @default_files = ('*.tex');
|
||||
|
||||
# The DVI file filter to be run on newly produced DVI files
|
||||
# $dvi_filter = '';
|
||||
|
||||
# The command to start a DVI previewer
|
||||
# $dvi_previewer = 'start xdvi';
|
||||
$dvi_previewer = 'xdg-open';
|
||||
|
||||
# The command to start a DVI previewer in landscape mode
|
||||
# $dvi_previewer_landscape = 'start xdvi -paper usr';
|
||||
$dvi_previewer_landscape = 'xdg-open';
|
||||
|
||||
# The command to convert a DVI file into a PDF file.
|
||||
# See the warnings on the man page
|
||||
# $dvipdf = 'dvipdf';
|
||||
|
||||
# The command to convert a DVI file into a PostScript file
|
||||
# $dvips = 'dvips';
|
||||
|
||||
# The command to convert a DVI file into a PostScript file in landscape mode
|
||||
# $dvips = 'dvips -tlandscape';
|
||||
|
||||
# Command line switch for dvips when a PDF file is to be generated
|
||||
# $dvips_pdf_switch = '-P pdf';
|
||||
|
||||
# Command line switch for dvips to make it run in silent mode
|
||||
# $dvips_silent_switch = '-q';
|
||||
|
||||
# How to make the DVI viewer update its display when the DVI file changes.
|
||||
# See the man page for a description of each method.
|
||||
# $dvi_update_method = 2;
|
||||
$dvi_update_method = 1;
|
||||
|
||||
# When DVI update method 2 is used, the number of the Unix signal to send
|
||||
# $dvi_update_signal = SIGUSR1 (a system-dependent value)
|
||||
|
||||
# If nonzero, the dependency file is always generated
|
||||
# $force_generate_and_save_includes = 0;
|
||||
|
||||
# If nonzero, continue processing past minor LaTeX errors
|
||||
# This option is made nonzero if the -pvs command line option is used.
|
||||
# $force_mode = 0;
|
||||
|
||||
# If nonzero, force latexmk to include files that don't exist when generating
|
||||
# dependency files.
|
||||
# $force_include_mode = 0;
|
||||
|
||||
# If nonzero, generate the dependency file if it does not exist or is older
|
||||
# than the base .tex file
|
||||
# $generate_and_save_includes = 0;
|
||||
|
||||
# The list of extensions for files that are generated in one run and consumed
|
||||
# by later runs of one of the LaTeX tools. The 'aux' and 'bbl' extensions are
|
||||
# treated specially, and hence are not in this list.
|
||||
# @generated_exts = ( 'ind', 'lof', 'lot', 'out', 'toc' );
|
||||
|
||||
# If nonzero, process files regardless of timestamps
|
||||
# $go_mode = 0;
|
||||
|
||||
# If nonzero, extract dependency information from the log file instead of the
|
||||
# .tex file. If zero, extract dependency information from the .tex file.
|
||||
# $includes_from_log = 1;
|
||||
|
||||
# If nonzero, run makeindex to produce a document index. Normally, latexmk
|
||||
# should be able to figure out when this is necessary.
|
||||
# $index_mode = 0;
|
||||
|
||||
# If nonzero, run in landscape mode
|
||||
# $landscape_mode = 0;
|
||||
|
||||
# The name of the LaTeX program
|
||||
# $latex = 'latex';
|
||||
|
||||
# The command line switch to make LaTeX run in silent mode
|
||||
# $latex_silent_switch = '-interaction=batchmode';
|
||||
|
||||
# The program that prints PostScript files
|
||||
# $lpr = 'lpr';
|
||||
|
||||
# The program that prints DVI files
|
||||
# $lpr_dvi = 'NONE $lpr_dvi variable is not configured to allow printing of dvi files';
|
||||
|
||||
# The program that prints PDF files
|
||||
# $lpr_pdf = 'NONE $lpr_pdf variable is not configured to allow printing of pdf files';
|
||||
|
||||
# The name of the makeindex program
|
||||
# $makeindex = 'makeindex';
|
||||
|
||||
# The command line switch to make makeindex run in silent mode
|
||||
# $makeindex_silent_switch = '-q';
|
||||
|
||||
# This variable is used only when running in continuous-preview mode. If zero,
|
||||
# check for a previously running previewer on the same file and update it. If
|
||||
# nonzero, always start a new previewer.
|
||||
# $new_viewer_always = 0;
|
||||
|
||||
# If zero, generate a DVI file. If 1, generate a PDF file using pdflatex.
|
||||
# If 2, generate a PostScript file, then convert it using ps2pdf.
|
||||
# If 3, generate a DVI file, then convert it using dvipdf.
|
||||
# $pdf_mode = 0;
|
||||
|
||||
# The name of the LaTeX program that produces PDF files by default
|
||||
# $pdflatex = 'pdflatex';
|
||||
|
||||
# The command line switch to make pdflatex run in silent mode
|
||||
# $pdflatex_silent_switch = '-interaction=batchmode';
|
||||
|
||||
# The command to invoke a PDF previewer
|
||||
# $pdf_previewer = 'start acroread';
|
||||
$pdf_previewer = 'xdg-open';
|
||||
|
||||
# How to make the PDF viewer update its display when the PDF file changes.
|
||||
# See the man page for a description of each method.
|
||||
# $pdf_update_method = 1;
|
||||
|
||||
# When PDF update method 2 is used, the number of the Unix signal to send
|
||||
# $pdf_update_signal = SIGHUP (a system-dependent value)
|
||||
|
||||
# Where the pid is in the output of $pscmd; see the man page
|
||||
# $pid_position = 1;
|
||||
|
||||
# If zero, generate a DVI file. If nonzero, generate a PostScript file
|
||||
# $postscript_mode = 0;
|
||||
|
||||
# If nonzero, run a previewer to view the document and keep the DVI file up
|
||||
# to date
|
||||
# $preview_continuous_mode = 0;
|
||||
|
||||
# If nonzero, run a previewer to preview the document
|
||||
# $preview_mode = 0;
|
||||
|
||||
# If nonzero, print the document using lpr each time it is created
|
||||
# $printout_mode = 0;
|
||||
|
||||
# The type of file to printout: 'dvi', 'none', 'pdf', or 'ps'
|
||||
# $print_type = 'ps';
|
||||
|
||||
# Command used to list all the processes currently run by the user
|
||||
# $pscmd = "ps --width 200 -f -u $ENV{USER}";
|
||||
|
||||
# Command to convert a PostScript file to a PDF file
|
||||
# $ps2pdf = 'ps2pdf';
|
||||
|
||||
# Filter to run on newly created PostScript files
|
||||
# $ps_filter = '';
|
||||
|
||||
# The command to invoke a PostScript previewer
|
||||
# $ps_previewer = 'start gv -watch';
|
||||
$ps_previewer = 'xdg-open';
|
||||
|
||||
# The command to invoke a PostScript previewer in landscape mode
|
||||
# $ps_previewer_landscape = 'start gv -swap -watch';
|
||||
$ps_previwer = 'xdg-open';
|
||||
|
||||
# How to make the PostScript viewer update its display when the PostScript
|
||||
# file changes. See the man page for a description of each method.
|
||||
# $ps_update_method = 0;
|
||||
$ps_update_method = 1;
|
||||
|
||||
# When PostScript update method 2 is used, the number of the Unix signal to
|
||||
# send
|
||||
# $ps_update_signal = SIGHUP (a system-dependent value)
|
||||
|
||||
# The time to sleep in seconds between checking for source file changes when
|
||||
# running in continuous update mode
|
||||
# $sleep_time = 2;
|
||||
|
||||
# The directory to store temporary files; omit the trailing '/'
|
||||
# $tmpdir = '/tmp';
|
82
latexmk.spec
Normal file
82
latexmk.spec
Normal file
@ -0,0 +1,82 @@
|
||||
Name: latexmk
|
||||
Version: 3.08n
|
||||
Release: 4%{?dist}
|
||||
Summary: A make-like utility for LaTeX files
|
||||
|
||||
Group: Applications/Publishing
|
||||
License: GPL
|
||||
URL: http://www.phys.psu.edu/~collins/software/latexmk-jcc/
|
||||
Source0: http://www.phys.psu.edu/~collins/software/latexmk-jcc/latexmk-308n.zip
|
||||
Source1: latexmk.conf
|
||||
Source2: latexmk-README.fedora
|
||||
Patch0: latexmk-perl.patch
|
||||
Patch1: latexmk-conf.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
# FC6 and earlier use tetex, FC7 and later use texlive, so require the binaries
|
||||
Requires: /usr/bin/latex, /usr/bin/bibtex, /usr/bin/makeindex
|
||||
Requires: ghostscript, xdg-utils
|
||||
|
||||
%description
|
||||
Latexmk is a perl script for running LaTeX the correct number of times to
|
||||
resolve cross references, etc.; it also runs auxiliary programs (bibtex,
|
||||
makeindex if necessary, and dvips and/or a previewer as requested). It has
|
||||
a number of other useful capabilities, for example to start a previewer and
|
||||
then run latex whenever the source files are updated, so that the previewer
|
||||
gives an up-to-date view of the document. The script runs on both UNIX and
|
||||
MS-WINDOWS (95, ME, XP, etc). This script is a corrected and improved
|
||||
version of the original version of latexmk.
|
||||
|
||||
Before using a previewer, read the file README.fedora.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
cp %{SOURCE2} README.fedora
|
||||
|
||||
# Remove the path searching facility; we know where the perl binary is located
|
||||
%patch0
|
||||
|
||||
# Change the system-wide configuration file to /etc/latexmk.conf and fix
|
||||
# the man page accordingly.
|
||||
%patch1 -p1
|
||||
|
||||
# Get rid of the DOS batch files so we can %doc extra-scripts below
|
||||
rm -f extra-scripts/*.bat
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
||||
install -m 0755 -p latexmk.pl $RPM_BUILD_ROOT%{_bindir}/latexmk
|
||||
install -m 0644 -p latexmk.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%config(noreplace) %{_sysconfdir}/latexmk.conf
|
||||
%doc CHANGES COPYING INSTALL README README.fedora extra-scripts
|
||||
|
||||
%changelog
|
||||
* Tue Mar 27 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-4
|
||||
- Avoid tetex vs. texlive issues by Requiring the binaries.
|
||||
|
||||
* Tue Mar 20 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-3
|
||||
- Use xdg-open for the DVI and PostScript previewers also.
|
||||
- Describe previewer configuration in README.fedora.
|
||||
|
||||
* Mon Mar 19 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-2
|
||||
- Use xdg-open instead of explicitly invoking evince.
|
||||
- Package the extra-scripts directory as documentation.
|
||||
- Fix a few other packaging infelicities as pointed out in Extras review.
|
||||
|
||||
* Tue Feb 27 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-1
|
||||
- Initial RPM
|
Loading…
Reference in New Issue
Block a user