%define upstream_name LaTeX-Driver %define upstream_version 0.08 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 3 Summary: Driver to run LaTeX, bibtex and makeindex License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/LaTeX/%{upstream_name}-%{upstream_version}.tar.gz Patch0: LaTeX-Driver.test.patch BuildRequires: perl(Class::Accessor) BuildRequires: perl(Cwd) BuildRequires: perl(Exception::Class) BuildRequires: perl(File::Slurp) BuildRequires: perl(File::Spec) BuildRequires: perl(IO::File) BuildRequires: tetex-latex ghostscript-common Requires: tetex-latex ghostscript-common BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description The LaTeX::Driver module encapsulates the details of invoking the Latex programs to format a LaTeX document. Formatting with LaTeX is complicated; there are potentially many programs to run and the output of those programs must be monitored to determine whether further processing is required. This module runs the required commands in the directory specified, either explicitly with the 'dirname' option or implicitly by the directory part of 'basename', or in the current directory. As a result of the processing up to a dozen or more intermediate files are created. These can be removed with the 'cleanup' method. %prep %setup -q -n %{upstream_name}-%{upstream_version} %patch0 -p0 -b .fixtest %build yes | %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check TMPDIR=/tmp %make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc README Changes %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man3/* %perl_vendorlib/* %changelog * Mon Apr 18 2011 Funda Wang <fwang@mandriva.org> 0.80.0-3mdv2011.0 + Revision: 655246 - fix patch apply - rebuild for updated spec-helper * Wed Mar 31 2010 Jérôme Quelin <jquelin@mandriva.org> 0.80.0-2mdv2011.0 + Revision: 530435 - force TMPDIR to a sane default tests use $TMPDIR in a regex, so TMPDIR should not have a trailing / + Antoine Ginies <aginies@mandriva.com> - bump release (rebuild) * Tue Jul 28 2009 Jérôme Quelin <jquelin@mandriva.org> 0.80.0-1mdv2010.0 + Revision: 401648 - rebuild using %%perl_convert_version - fixed license field * Fri May 15 2009 Jérôme Quelin <jquelin@mandriva.org> 0.08-2mdv2010.0 + Revision: 375944 - rebuild * Sat Apr 11 2009 Olivier Thauvin <nanardon@mandriva.org> 0.08-1mdv2009.1 + Revision: 366296 - fix requirement - import perl-LaTeX-Driver