01b6260
Name:           latexmk
d43903f
Version:        4.02b
dc7e8a9
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/
d43903f
Source0:        http://www.phys.psu.edu/~collins/software/latexmk-jcc/latexmk-402b.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
b022cd1
Requires:       texlive, texlive-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
b022cd1
%patch0 -p1
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
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