%define name gscan2pdf %define version 1.0.6 %define release %mkrel 2 Name: %{name} Summary: Produces multipage PDFs from a scan Version: %{version} Release: %{release} Source: http://downloads.sourceforge.net/%name/%name-%version.tar.gz URL: http://gscan2pdf.sourceforge.net/ License: GPLv3 Group: Publishing BuildArch: noarch BuildRequires: imagemagick desktop-file-utils Requires: perl-Gtk2 perl-Locale-gettext perl-PDF-API2 Requires: libtiff-progs imagemagick Requires: perl-Image-Magick Requires: sane-frontends Requires: perl-Gtk2-Ex-PodViewer Requires: perl-forks >= 0.33 Requires: perl-reaper Requires: perl-Set-IntSpan Requires: unpaper Requires: xdg-utils Requires: djvulibre Requires: gocr %description A GUI to ease the process of producing a multipage PDF from a scan. Scanning is handled with SANE via scanimage. PDF conversion is done by PDF::API2. TIFF export is handled by libtiff (faster and smaller memory footprint for multipage files). %prep %setup -q %build perl Makefile.PL INSTALLDIRS=vendor perl -pi -e 's|usr/local|usr||g' Makefile make %install rm -rf %{buildroot} %makeinstall_std desktop-file-install --vendor='' \ --dir=%buildroot%_datadir/applications \ --remove-category='Application' \ %buildroot%_datadir/applications/*.desktop #icons mkdir -p %{buildroot}/%_liconsdir convert -resize 48x48 %name.svg %{buildroot}/%_liconsdir/%name.png mkdir -p %{buildroot}/%_iconsdir convert -resize 32x32 %name.svg %{buildroot}/%_iconsdir/%name.png mkdir -p %{buildroot}/%_miconsdir convert -resize 16x16 %name.svg %{buildroot}/%_miconsdir/%name.png %find_lang %name %files -f %{name}.lang %doc History LICENCE COPYING %{_bindir}/* %{_datadir}/%name %{_datadir}/applications/* %{perl_vendorlib}/Gscan2pdf.pm %{perl_vendorlib}/Gscan2pdf/* %{_mandir}/man1/* %{_liconsdir}/%name.png %{_iconsdir}/%name.png %{_miconsdir}/%name.png %{_datadir}/pixmaps/*.svg %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.0.6-2.mga3 + Revision: 352685 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Sep 08 2012 fwang <fwang> 1.0.6-1.mga3 + Revision: 289876 - update file list - new version 1.0.6 * Thu Oct 06 2011 yann <yann> 1.0.0-1.mga2 + Revision: 152545 - Remove irrelevant INSTALL file - fix installed file list (use of macro) - update to new version 1.0.0 * Sun May 15 2011 pterjan <pterjan> 0.9.32-5.mga1 + Revision: 98994 - Rebuild for fixed find-requires * Wed May 04 2011 ahmad <ahmad> 0.9.32-4.mga1 + Revision: 94679 - Drop old/unneeded scriptlets - %%doc more files - imported package gscan2pdf