- New version 4.00e.

- Drop the perl patch; the script finds it just fine
- Change the tetex requires to texlive requires
This commit is contained in:
Jerry James 2008-09-24 17:01:56 +00:00
parent dc7e8a9bf2
commit b022cd1d73
7 changed files with 565 additions and 340 deletions

View File

@ -1 +1 @@
latexmk-320.zip
latexmk-400e.zip

View File

@ -1,12 +1,11 @@
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.
Latexmk almost works out of the box. Two changes have been made to
conform to Fedora conventions. First, the default DVI, PostScript, and
PDF previewers have been changed to 'xdg-open'; see below for more
information. Second, the site-wide configuration file is
/etc/latexmk.conf only, as opposed to the list of names searched by the
original latexmk.
II. PREVIEWERS

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +0,0 @@
--- latexmk.pl.ORIG 2007-08-17 12:21:57.000000000 -0600
+++ latexmk.pl 2007-08-31 21:38:25.000000000 -0600
@@ -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
-
# Delete #??!! when working

View File

@ -4,6 +4,10 @@
# The following options are given their default values.
# Uncomment them and change the values if the defaults do not suit your needs.
# When previewing, whether to make the viewer read from the generated file or
# from a temporary copy
# $always_view_file_via_temporary = 0;
# If nonzero, DVI-to-postscript conversion adds a banner message on each page
# $banner = 0;
@ -14,55 +18,75 @@
# $banner_message = 'DRAFT';
# The size of the banner message (about 1100 divided by the message length)
# $banner_scale = 220.0;
# $banner_scale = 220;
# 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';
# $bibtex = 'bibtex %O %B';
# 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 = "";
# Whether to just cleanup, or also generate files
# $cleanup_only = 0;
# Whether to clean latexmk's file database too
# $cleanup_fdb = 0;
# 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;
# A custom dependency list; see the man page for details
# @cus_dep_list = ();
# The default list of files to not be processed; see the man page for details
# @default_excluded_files = ( );
# The default list of files to be processed; see the man page for details
# @default_files = ('*.tex');
# Whether to display lists of dependencies
# $dependents_list = 0;
# Whether to get diagnostic output from latexmk
# $diagnostics = 0;
# Whether to change to the directory of the source file
# $do_cd = 0;
# The DVI file filter to be run on newly produced DVI files
# $dvi_filter = '';
# Always make a DVI file
# $dvi_mode = 0;
# The command to start a DVI previewer
# $dvi_previewer = 'start xdvi';
$dvi_previewer = 'xdg-open';
# $dvi_previewer = 'start xdvi %O %S';
$dvi_previewer = 'xdg-open %O %S';
# The command to start a DVI previewer in landscape mode
# $dvi_previewer_landscape = 'start xdvi -paper usr';
$dvi_previewer_landscape = 'xdg-open';
# $dvi_previewer_landscape = 'start xdvi -paper usr %O %S';
$dvi_previewer_landscape = 'xdg-open %O %S';
# The command to convert a DVI file into a PDF file.
# See the warnings on the man page
# $dvipdf = 'dvipdf';
# $dvipdf = 'dvipdf %O %S %D';
# The command to convert a DVI file into a PostScript file
# $dvips = 'dvips';
# $dvips = 'dvips %O -o %D %S';
# The command to convert a DVI file into a PostScript file in landscape mode
# $dvips_landscape = 'dvips -tlandscape';
# $dvips_landscape = 'dvips -tlandscape %O -o %D %S';
# Command line switch for dvips when a PDF file is to be generated
# $dvips_pdf_switch = '-P pdf';
@ -79,43 +103,55 @@ $dvi_previewer_landscape = 'xdg-open';
$dvi_update_method = 1;
# When DVI update method 2 is used, the number of the Unix signal to send
# $dvi_update_signal = SIGUSR1
# $dvi_update_signal = $signo{USR1}
# Which treatment of default extension and filenames with multiple extensions
# is used. The possibilities are:
# - miktex_old, for Miktex version 1.20d or earlier
# - unix, for web2c 7.3.1 or later
# $extension_treatment = 'unix';
# The extension of the file which latexmk generates to contain a database
# of information on source files.
# $fdb_ext = 'fdb_latex';
# $fdb_ext = 'fdb_latexmk';
# If nonzero, continue processing past minor LaTeX errors
# This option is made nonzero if the -pvs command line option is used.
# $force_mode = 0;
# Version number for kind of fdb_file
# $fdb_ver = 2;
# If nonzero, force latexmk to include files that don't exist when generating
# dependency files.
# $force_include_mode = 0;
# If nonzero, continue processing past minor LaTeX errors
# This option is made nonzero if the -pvc command line option is used.
# $force_mode = 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', $fdb_ext );
# treated specially.
# @generated_exts = ( 'aux', 'bbl', 'idx', 'ind', 'lof', 'lot', 'out', 'toc' );
# If nonzero, process files regardless of timestamps
# 1 = process files regardless of timestamps
# 2 = do a full cleanup first
# $go_mode = 0;
# If nonzero, run makeindex to produce a document index. Normally, latexmk
# should be able to figure out when this is necessary.
# $index_mode = 0;
# The basename of generated files
# $jobname = "";
# If nonzero, run in landscape mode
# The command to search for tex-related files
# $kpsewhich = 'kpsewhich %S';
# If nonzero, run in landscape mode; otherwise in portrait mode
# $landscape_mode = 0;
# The name of the LaTeX program
# $latex = 'latex';
# $latex = 'latex %O %S';
# The command line switch to make LaTeX run in silent mode
# $latex_silent_switch = '-interaction=batchmode';
# The program that prints PostScript files
# $lpr = 'lpr';
# $lpr = 'lpr %O %S';
# The program that prints DVI files
# $lpr_dvi = 'NONE $lpr_dvi variable is not configured to allow printing of dvi files';
@ -124,30 +160,35 @@ $dvi_update_method = 1;
# $lpr_pdf = 'NONE $lpr_pdf variable is not configured to allow printing of pdf files';
# The name of the makeindex program
# $makeindex = 'makeindex';
# $makeindex = 'makeindex %O -o %D %S';
# The command line switch to make makeindex run in silent mode
# $makeindex_silent_switch = '-q';
# The maximum number of times latex will be invoked in an effort to fix up
# references.
# $max_repeat = 5;
# 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.
# 0 = do not create a PDF file
# 1 = Create a PDF file with pdflatex
# 2 = Create a PDF file with ps2pdf
# 3 = Create a PDF file with dvipdf
# $pdf_mode = 0;
# The name of the LaTeX program that produces PDF files by default
# $pdflatex = 'pdflatex';
# $pdflatex = 'pdflatex %O %S';
# 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';
# $pdf_previewer = 'start acroread %O %S';
$pdf_previewer = 'xdg-open %O %S';
# The command to run when the PDF viewer is set to be updated by a command
# $pdf_update_command = '';
@ -157,12 +198,12 @@ $pdf_previewer = 'xdg-open';
# $pdf_update_method = 1;
# When PDF update method 2 is used, the number of the Unix signal to send
# $pdf_update_signal = SIGHUP
# $pdf_update_signal = $signo{HUP}
# 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
# Always make a PostScript file
# $postscript_mode = 0;
# If nonzero, run a previewer to view the document and keep the DVI file up
@ -179,21 +220,21 @@ $pdf_previewer = 'xdg-open';
# $print_type = 'ps';
# Command used to list all the processes currently run by the user
# $pscmd = "ps -f -u $ENV{USER}";
# $pscmd = "ps --width 200 -f -u $ENV{USER}";
# Command to convert a PostScript file to a PDF file
# $ps2pdf = 'ps2pdf';
# $ps2pdf = 'ps2pdf %O %S %D';
# 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';
# $ps_previewer = 'start gv %O %S';
$ps_previewer = 'xdg-open %O %S';
# The command to invoke a PostScript previewer in landscape mode
# $ps_previewer_landscape = 'start gv -swap -watch';
$ps_previewer_landscape = 'xdg-open';
# $ps_previewer_landscape = 'start gv -swap %O %S';
$ps_previewer_landscape = 'xdg-open %O %S';
# The command to run when the PostScript viewer is set to be updated by a
# command
@ -206,14 +247,33 @@ $ps_update_method = 1;
# When PostScript update method 2 is used, the number of the Unix signal to
# send
# $ps_update_signal = SIGHUP
# $ps_update_signal = $signo{HUP}
# When previewing in -pvc mode, whether to make the viewer read from the
# generated file or from a temporary copy
# $pvc_view_file_via_temporary = 1;
# Quote filenames in external commands. This is essential for filenames
# containing spaces.
# $quote_filenames = 1;
# The character that separates paths in a list of paths
# $search_path_separator = ':';
# Whether to suppress latex messages
# $silent = 0;
# The time to sleep in seconds between checking for source file changes when
# running in continuous update mode
# $sleep_time = 2;
# Space-separated list of extra files to search for when no files are specified
# on the command line and the @default_files list is empty. Wildcards are
# allowed. These files are in addition to *.tex in the current directory.
# $texfile_search = "";
# The directory to store temporary files; omit the trailing '/'
# $tmpdir = '/tmp';
# $tmpdir = $ENV{TMPDIR} || '/tmp';
# Which kind of file is to be previewed if a previewer is used. The possible
# values are 'default', 'dvi', 'ps', and 'pdf'. The value of 'default' means

View File

@ -1,20 +1,23 @@
Name: latexmk
Version: 3.20
Version: 4.00e
Release: 1%{?dist}
Summary: A make-like utility for LaTeX files
Group: Applications/Publishing
License: GPLv2+
URL: http://www.phys.psu.edu/~collins/software/latexmk-jcc/
Source0: http://www.phys.psu.edu/~collins/software/latexmk-jcc/latexmk-320.zip
Source0: http://www.phys.psu.edu/~collins/software/latexmk-jcc/latexmk-400e.zip
Source1: latexmk.conf
Source2: latexmk-README.fedora
Patch0: latexmk-perl.patch
Patch1: latexmk-conf.patch
# Change the system-wide configuration file to /etc/latexmk.conf and fix the
# man page accordingly. This patch has not been submitted upstream, as
# upstream needs to be backwards compatible with previous versions of latexmk.
# Fedora has only ever used /etc/latexmk.conf.
Patch0: latexmk-conf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: tetex, tetex-latex, ghostscript, xdg-utils
Requires: texlive, texlive-latex, ghostscript, xdg-utils
%description
Latexmk is a perl script for running LaTeX the correct number of times to
@ -30,15 +33,9 @@ Before using a previewer, read the file README.fedora.
%prep
%setup -q -c
%patch0 -p1
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
%build
%install
@ -61,6 +58,10 @@ rm -rf $RPM_BUILD_ROOT
%doc CHANGES COPYING INSTALL README README.fedora extra-scripts
%changelog
* Wed Sep 24 2008 Jerry James <loganjerry@gmail.com> - 4.00e-1
- New version 4.00e.
- Drop the perl patch; the script finds it just fine
* Fri Aug 31 2007 Jerry James <loganjerry@gmail.com> - 3.20-1
- New version 3.20.
- Texlive isn't as near as I thought; require the tetex packages for now.

View File

@ -1 +1 @@
fba0740fd6e5b9001c1300b3425cb659 latexmk-320.zip
1914293f3c903bad3a543ce948c0157f latexmk-400e.zip