Group :: Office
RPM: gscan2pdf
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_without test
Name: gscan2pdf
Version: 2.13.2
Release: alt1
Summary: A GUI to ease the process of producing a multipage PDF from a scan
Group: Office
License: GPL
Url: http://gscan2pdf.sourceforge.net/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://prdownloads.sf.net/%name/%name/%version/%name-%version.tar
#Patch: %name.patch
BuildArch: noarch
BuildRequires: libdb4-devel perl-Archive-Tar perl-Config-General perl-Filesys-Df perl-List-MoreUtils perl-Locale-gettext perl-Log-Log4perl perl-PDF-API2 perl-Proc-ProcessTable perl-Readonly perl-Set-IntSpan perl-Sub-Name perl-podlators perl-Text-Balanced
BuildRequires: perl-Data-UUID perl-JSON-PP perl-Date-Calc perl-Image-Sane perl-Sub-Override perl-Time-Piece
BuildRequires: perl-Gtk3 perl-Gtk3-ImageView perl-Gtk3-SimpleList libgoocanvas2-gir perl-GooCanvas2 perl-Locale-Codes perl-PDF-Builder
Requires: libgoocanvas2-gir perl-Pod-Perldoc
BuildRequires: perl-Magick perl-Sane >= 0.05
BuildRequires: perl-devel
# needs for backports
BuildPreReq: perl-Try-Tiny
# ImageMagick
Requires: %_bindir/convert
Requires: perl-Magick
# %_bindir/cjb2
Requires: djvu-utils
# tiffcp
Requires: libtiff-utils
Requires: xdg-utils unpaper
# /usr/bin/scanimage
Requires: sane
# OCR:
#Requires: cuneiform
%description
At maturity, the GUI will have similar features to that of the Windows Imaging
program, but with the express objective of writing a PDF, including metadata.
Scanning is handled with SANE via scanimage. PDF conversion is done by libtiff.
%prep
%setup
#patch -p2
%__subst "s|use Gtk3 0.028 -init;|use Gtk3 0.028; INIT { Gtk3->init; }|g" bin/%name
%__subst "5iuse Gtk3;" lib/Gscan2pdf/Canvas.pm
# djvu %_bindir/cjb2
%__subst "s|requires djvulibre-bin|djvu-utils|g" bin/%name
%build
%perl_vendor_build
#__subst "s|^test .*||g" Makefile
%make_build
# used Gtk2
#check
#make test
%install
%makeinstall_std INSTALLSITELIB=%perl_vendor_privlib INSTALLSITESCRIPT=%_bindir
find %buildroot -name perllocal.pod | xargs rm -f
find %buildroot -name .packlist | xargs rm -f
%find_lang %name
%files -f %name.lang
%doc History
%_bindir/gscan2pdf
#_bindir/scanadf-perl
#_bindir/scanimage-perl
%_desktopdir/*%name.desktop
%_datadir/%name/
%_datadir/metainfo/*gscan2pdf.appdata.xml
%_datadir/help/C/gscan2pdf/
%_pixmapsdir/*
%_man1dir/*
%perl_vendor_privlib/Gscan2pdf/
%changelog
…
Full changelog you can see here
Name: gscan2pdf
Version: 2.13.2
Release: alt1
Summary: A GUI to ease the process of producing a multipage PDF from a scan
Group: Office
License: GPL
Url: http://gscan2pdf.sourceforge.net/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://prdownloads.sf.net/%name/%name/%version/%name-%version.tar
#Patch: %name.patch
BuildArch: noarch
BuildRequires: libdb4-devel perl-Archive-Tar perl-Config-General perl-Filesys-Df perl-List-MoreUtils perl-Locale-gettext perl-Log-Log4perl perl-PDF-API2 perl-Proc-ProcessTable perl-Readonly perl-Set-IntSpan perl-Sub-Name perl-podlators perl-Text-Balanced
BuildRequires: perl-Data-UUID perl-JSON-PP perl-Date-Calc perl-Image-Sane perl-Sub-Override perl-Time-Piece
BuildRequires: perl-Gtk3 perl-Gtk3-ImageView perl-Gtk3-SimpleList libgoocanvas2-gir perl-GooCanvas2 perl-Locale-Codes perl-PDF-Builder
Requires: libgoocanvas2-gir perl-Pod-Perldoc
BuildRequires: perl-Magick perl-Sane >= 0.05
BuildRequires: perl-devel
# needs for backports
BuildPreReq: perl-Try-Tiny
# ImageMagick
Requires: %_bindir/convert
Requires: perl-Magick
# %_bindir/cjb2
Requires: djvu-utils
# tiffcp
Requires: libtiff-utils
Requires: xdg-utils unpaper
# /usr/bin/scanimage
Requires: sane
# OCR:
#Requires: cuneiform
%description
At maturity, the GUI will have similar features to that of the Windows Imaging
program, but with the express objective of writing a PDF, including metadata.
Scanning is handled with SANE via scanimage. PDF conversion is done by libtiff.
%prep
%setup
#patch -p2
%__subst "s|use Gtk3 0.028 -init;|use Gtk3 0.028; INIT { Gtk3->init; }|g" bin/%name
%__subst "5iuse Gtk3;" lib/Gscan2pdf/Canvas.pm
# djvu %_bindir/cjb2
%__subst "s|requires djvulibre-bin|djvu-utils|g" bin/%name
%build
%perl_vendor_build
#__subst "s|^test .*||g" Makefile
%make_build
# used Gtk2
#check
#make test
%install
%makeinstall_std INSTALLSITELIB=%perl_vendor_privlib INSTALLSITESCRIPT=%_bindir
find %buildroot -name perllocal.pod | xargs rm -f
find %buildroot -name .packlist | xargs rm -f
%find_lang %name
%files -f %name.lang
%doc History
%_bindir/gscan2pdf
#_bindir/scanadf-perl
#_bindir/scanimage-perl
%_desktopdir/*%name.desktop
%_datadir/%name/
%_datadir/metainfo/*gscan2pdf.appdata.xml
%_datadir/help/C/gscan2pdf/
%_pixmapsdir/*
%_man1dir/*
%perl_vendor_privlib/Gscan2pdf/
%changelog
…
Full changelog you can see here