01b6260
Name:           latexmk
0d2ec6b
Version:        4.31
0d2ec6b
Release:        1%{?dist}
01b6260
Summary:        A make-like utility for LaTeX files
01b6260
01b6260
Group:          Applications/Publishing
299a008
License:        GPLv2+
01b6260
URL:            http://www.phys.psu.edu/~collins/software/latexmk-jcc/
0d2ec6b
Source0:        http://www.phys.psu.edu/~collins/software/latexmk-jcc/%{name}-431.zip
01b6260
Source1:        latexmk.conf
01b6260
Source2:        latexmk-README.fedora
b022cd1
# Change the system-wide configuration file to /etc/latexmk.conf and fix the
b022cd1
# man page accordingly.  This patch has not been submitted upstream, as
b022cd1
# upstream needs to be backwards compatible with previous versions of latexmk.
b022cd1
# Fedora has only ever used /etc/latexmk.conf.
b022cd1
Patch0:         latexmk-conf.patch
01b6260
BuildArch:      noarch
01b6260
7a432fd
Requires:       tex(latex), ghostscript, xdg-utils
01b6260
01b6260
%description
01b6260
Latexmk is a perl script for running LaTeX the correct number of times to
01b6260
resolve cross references, etc.; it also runs auxiliary programs (bibtex,
01b6260
makeindex if necessary, and dvips and/or a previewer as requested).  It has
01b6260
a number of other useful capabilities, for example to start a previewer and
01b6260
then run latex whenever the source files are updated, so that the previewer
01b6260
gives an up-to-date view of the document.  The script runs on both UNIX and
01b6260
MS-WINDOWS (95, ME, XP, etc).  This script is a corrected and improved
01b6260
version of the original version of latexmk.
01b6260
01b6260
Before using a previewer, read the file README.fedora.
01b6260
01b6260
%prep
01b6260
%setup -q -c
7a432fd
%patch0
01b6260
cb19c08
# Invoke perl directly
cb19c08
sed "s|^#!/usr/bin/env perl|#!/usr/bin/perl -w|" latexmk.pl > latexmk.pl.new
cb19c08
touch -r latexmk.pl latexmk.pl.new
cb19c08
mv -f latexmk.pl.new latexmk.pl
cb19c08
01b6260
%build
a164336
cp -p %{SOURCE2} README.fedora
01b6260
01b6260
%install
01b6260
mkdir -p $RPM_BUILD_ROOT%{_bindir}
01b6260
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
01b6260
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
01b6260
install -m 0755 -p latexmk.pl $RPM_BUILD_ROOT%{_bindir}/latexmk
01b6260
install -m 0644 -p latexmk.1 $RPM_BUILD_ROOT%{_mandir}/man1
01b6260
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
01b6260
01b6260
%files
01b6260
%{_bindir}/*
01b6260
%{_mandir}/man1/*
01b6260
%config(noreplace) %{_sysconfdir}/latexmk.conf
5308280
%doc CHANGES COPYING INSTALL README README.fedora extra-scripts example_rcfiles
cb19c08
%doc latexmk.pdf
01b6260
01b6260
%changelog
0d2ec6b
* Mon Apr  2 2012 Jerry James <loganjerry@gmail.com> - 4.31-1
0d2ec6b
- Update to 4.31 (numerous new features documented at
0d2ec6b
  http://www.phys.psu.edu/~collins/software/latexmk-jcc/versions.html)
0d2ec6b
5b55015
* Tue Jan 10 2012 Jerry James <loganjerry@gmail.com> - 4.30a-2
5b55015
- Mass rebuild for Fedora 17
5b55015
cb19c08
* Mon Dec 12 2011 Jerry James <loganjerry@gmail.com> - 4.30a-1
cb19c08
- Add latexmk.pdf to docs
cb19c08
- Update to 4.30a:
cb19c08
- Fix use of bibtex when $aux_dir and/or $out_dir are set
cb19c08
- Documentation of $search_path separator variable
cb19c08
- Work with feynmp package and mpost
cb19c08
- Let dvips find files in the output directory
cb19c08
- In search for cus-deps that can make a missing file, look in $out_dir
cb19c08
- Parse biber 0.9.7 error messages
cb19c08
71aba0a
* Mon Nov 28 2011 Jerry James <loganjerry@gmail.com> - 4.28a-1
71aba0a
- Update to 4.28a:
71aba0a
- Corrects handling of missing files needed by bibtex or biber
71aba0a
- Corrects duplicate invocations of dvipdf and ps2pdf
71aba0a
f9915bf
* Mon Oct 17 2011 Jerry James <loganjerry@gmail.com> - 4.27a-1
f9915bf
- Update to 4.27a:
f9915bf
- Fixes making ps/pdf files via a temporary file with no %%D placeholder
f9915bf
- Adds png to list of graphics extensions for pdflatex
f9915bf
- Adds -norc option to prevent auto-reading of rc files
f9915bf
- Adds -aux-directory and -output-directory options
f9915bf
f87d7c8
* Mon Aug 15 2011 Jerry James <loganjerry@gmail.com> - 4.26-1
f87d7c8
- Update to 4.26 (fix some bugs in error reporting)
f87d7c8
910d512
* Mon Jul 11 2011 Jerry James <loganjerry@gmail.com> - 4.25-1
910d512
- Update to 4.25 (add deps output file to dependency information)
910d512
a164336
* Tue Apr 19 2011 Jerry Jamse <loganjerry@gmail.com> - 4.23a-1
a164336
- Update to 4.23a (fix detection of source files listed in .fls file)
a164336
0cb21a6
* Mon Mar 28 2011 Jerry James <loganjerry@gmail.com> - 4.23-1
0cb21a6
- Update to 4.23 (several bug fixes, new dependency-tracking functionality)
0cb21a6
- Drop BuildRoot and %%clean
0cb21a6
f565c38
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.22e-2
f565c38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f565c38
7bbd9a9
* Mon Feb  7 2011 Jerry James <loganjerry@gmail.com> - 4.22e-1
7bbd9a9
- Update to 4.22e (fixes incorrect error handling when reading init files)
7bbd9a9
77cd2c9
* Mon Jan  3 2011 Jerry James <loganjerry@gmail.com> - 4.22-1
77cd2c9
- Update to 4.22 (fixes more parse problems, adds biber support)
77cd2c9
4aab926
* Mon Aug  2 2010 Jerry James <loganjerry@gmail.com> - 4.18-1
4aab926
- Update to 4.18 (parses natbib's citation-undefined warning)
4aab926
- Drop latexmk-man.patch, upstreamed.
4aab926
d765326
* Tue Jul  6 2010 Jerry James <loganjerry@gmail.com> - 4.17-1
d765326
- Update to 4.17 (fixes log file misparse with filename-space-message sequence)
d765326
- Add latexmk-man.patch to fix insufficiently escaped man page constructs.
d765326
3ac0c41
* Mon May 24 2010 Jerry James <loganjerry@gmail.com> - 4.16a-1
3ac0c41
- Update to 4.16a (solves problem with preview files on NFS filesystems)
3ac0c41
ffee02b
* Mon May 17 2010 Jerry James <loganjerry@gmail.com> - 4.16-1
ffee02b
- Update to 4.16 (solves problem with misparsed log files)
ffee02b
b928fe6
* Wed Apr 21 2010 Jerry James <loganjerry@gmail.com> - 4.15c-1
b928fe6
- Update to 4.15c (solves failure to detect some dependent files)
b928fe6
5308280
* Mon Apr 12 2010 Jerry James <loganjerry@gmail.com> - 4.15-1
5308280
- Update to 4.15 (some diagnostic and error-handling improvements)
5308280
d7f3594
* Mon Jan 25 2010 Jerry James <loganjerry@gmail.com> - 4.13a-1
d7f3594
- Update to 4.13a (fixes bug with -C not deleting files).
d7f3594
d835249
* Mon Jan 18 2010 Jerry James <loganjerry@gmail.com> - 4.13-1
d835249
- Update to 4.13.
d835249
e605c51
* Tue Dec 29 2009 Jerry James <loganjerry@gmail.com> - 4.12-1
e605c51
- Update to 4.12 to get new option to not run bibtex.
e605c51
- Add a missing semicolon to the conf file (bz 551082).
e605c51
cb929f8
* Tue Dec  1 2009 Jerry James <loganjerry@gmail.com> - 4.11-1
cb929f8
- Update to 4.11.
cb929f8
5d5fec8
* Mon Aug 24 2009 Jerry James <loganjerry@gmail.com> - 4.10-1
5d5fec8
- Update to 4.10 to correctly handle files produced by epstopdf.
5d5fec8
36371bd
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.07-2
36371bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
36371bd
efe14ab
* Mon Jun  1 2009 Jerry James <loganjerry@gmail.com> - 4.07-1
efe14ab
- Update to 4.07 to correct problem with exiting from preview-continuous mode.
efe14ab
7a432fd
* Mon Apr 13 2009 Jerry James <loganjerry@gmail.com> - 4.05-1
7a432fd
- Update to 4.05 to correct problems when running latex and pdflatex on the
7a432fd
  same source file.
7a432fd
8fc8c18
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.03-2
8fc8c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8fc8c18
aa1e8d5
* Tue Jan  6 2009 Jerry James <loganjerry@gmail.com> - 4.03-1
aa1e8d5
- Update to 4.03 to fix log file parsing
aa1e8d5
d43903f
* Mon Dec  1 2008 Jerry James <loganjerry@gmail.com> - 4.02b-1
d43903f
- Update to 4.02b to fix bz 473430
d43903f
2bad9e6
* Mon Oct 13 2008 Jerry James <loganjerry@gmail.com> - 4.01-1
2bad9e6
- New version 4.01.
2bad9e6
b022cd1
* Wed Sep 24 2008 Jerry James <loganjerry@gmail.com> - 4.00e-1
b022cd1
- New version 4.00e.
b022cd1
- Drop the perl patch; the script finds it just fine
b022cd1
dc7e8a9
* Fri Aug 31 2007 Jerry James <loganjerry@gmail.com> - 3.20-1
dc7e8a9
- New version 3.20.
dc7e8a9
- Texlive isn't as near as I thought; require the tetex packages for now.
dc7e8a9
5716514
* Tue Aug 21 2007 Jerry James <loganjerry@gmail.com> - 3.08n-5
5716514
- Update license tag
5716514
01b6260
* Tue Mar 27 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-4
01b6260
- Avoid tetex vs. texlive issues by Requiring the binaries.
01b6260
01b6260
* Tue Mar 20 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-3
01b6260
- Use xdg-open for the DVI and PostScript previewers also.
01b6260
- Describe previewer configuration in README.fedora.
01b6260
01b6260
* Mon Mar 19 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-2
01b6260
- Use xdg-open instead of explicitly invoking evince.
01b6260
- Package the extra-scripts directory as documentation.
01b6260
- Fix a few other packaging infelicities as pointed out in Extras review.
01b6260
01b6260
* Tue Feb 27 2007 Jerry James <Jerry.James@usu.edu> - 3.08n-1
01b6260
- Initial RPM