01b6260
Name:           latexmk
ffee02b
Version:        4.16
5d5fec8
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/
ffee02b
Source0:        http://www.phys.psu.edu/~collins/software/latexmk-jcc/latexmk-416.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
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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
cp %{SOURCE2} README.fedora
01b6260
01b6260
%build
01b6260
01b6260
%install
01b6260
rm -rf $RPM_BUILD_ROOT
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
%clean
01b6260
rm -rf $RPM_BUILD_ROOT
01b6260
01b6260
%files
01b6260
%defattr(-,root,root,-)
01b6260
%{_bindir}/*
01b6260
%{_mandir}/man1/*
01b6260
%config(noreplace) %{_sysconfdir}/latexmk.conf
5308280
%doc CHANGES COPYING INSTALL README README.fedora extra-scripts example_rcfiles
01b6260
01b6260
%changelog
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