01b6260
Name:           latexmk
7a432fd
Version:        4.05
7a432fd
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/
7a432fd
Source0:        http://www.phys.psu.edu/~collins/software/latexmk-jcc/latexmk-405.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
01b6260
%doc CHANGES COPYING INSTALL README README.fedora extra-scripts
01b6260
01b6260
%changelog
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