diff --git a/.cvsignore b/.cvsignore index b15b611..5e04ca2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -gscan2pdf-0.9.27.tar.gz +gscan2pdf-0.9.29.tar.gz diff --git a/gscan2pdf-tessdata-path.patch b/gscan2pdf-tessdata-path.patch new file mode 100644 index 0000000..2494c8b --- /dev/null +++ b/gscan2pdf-tessdata-path.patch @@ -0,0 +1,11 @@ +--- gscan2pdf-0.9.29-pristine/bin/gscan2pdf 2009-05-04 14:07:50.000000000 -0600 ++++ gscan2pdf-0.9.29/bin/gscan2pdf 2010-01-19 13:59:49.166264258 -0700 +@@ -9438,7 +9438,7 @@ + vie => $d->get('Vietnamese'), + ); + +- my $tessdata_prefix = '/usr/share/tessdata'; ++ my $tessdata_prefix = '/usr/share/tesseract'; + if (defined $ENV{TESSDATA_PREFIX}) { + $tessdata_prefix = $ENV{TESSDATA_PREFIX}; + } diff --git a/gscan2pdf.spec b/gscan2pdf.spec index 1ed29e6..6ffc063 100644 --- a/gscan2pdf.spec +++ b/gscan2pdf.spec @@ -1,12 +1,14 @@ Name: gscan2pdf -Version: 0.9.27 -Release: 6%{?dist} +Version: 0.9.29 +Release: 1%{?dist} Summary: GUI for producing a multipage PDF from a scan Group: Applications/Publishing License: GPLv3 URL: http://gscan2pdf.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +# Temporary patch until next release when this will be resolved +Patch0: gscan2pdf-tessdata-path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -15,7 +17,7 @@ BuildRequires: gettext, desktop-file-utils Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: djvulibre, sane-backends >= 1.0.17, sane-frontends Requires: xdg-utils, unpaper, gocr -Requires: perl(Gtk2::Ex::PodViewer), perl(PDF::API2) +Requires: perl(Gtk2::Ex::PodViewer), perl(PDF::API2), perl(forks) %description A GUI to ease the process of producing a multipage PDF from a scan. @@ -24,9 +26,7 @@ A GUI to ease the process of producing a multipage PDF from a scan. %prep %setup -q -# We're going to rename scanimage.pl and scanadf.pl until next release when -# the name change happens upstream -sed -i -e 's/scanimage\.pl/scanimage-perl/g' -e 's/scanadf\.pl/scanadf-perl/g' bin/gscan2pdf +%patch0 -p1 -b .gscan2pdf-tessdata-path %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -45,10 +45,6 @@ desktop-file-install --delete-original --vendor="fedora" \ --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \ $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop -# These will be renamed in the next version -mv $RPM_BUILD_ROOT/%{_bindir}/scanadf.pl $RPM_BUILD_ROOT/%{_bindir}/scanadf-perl -mv $RPM_BUILD_ROOT/%{_bindir}/scanimage.pl $RPM_BUILD_ROOT/%{_bindir}/scanimage-perl - %find_lang %{name} %check @@ -78,9 +74,14 @@ fi %{perl_vendorlib}/* %{_datadir}/%{name} %{_datadir}/applications/*-%{name}.desktop +%{_datadir}/pixmaps/%{name}.svg %{_mandir}/man1/*.1* %changelog +* Tue Jan 19 2010 Bernard Johnson - 0.9.27-6 - rebuild against perl 5.10.1 diff --git a/sources b/sources index 3c8cd1d..f556a0a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a3c8b674c66c74d945d5549a508a8344 gscan2pdf-0.9.27.tar.gz +f660b73ec8a1cb7185c4de4005900496 gscan2pdf-0.9.29.tar.gz