Name: perl-Sane Version: 0.05 Release: 1%{?dist} Summary: Perl extension for the SANE (Scanner Access Now Easy) Project Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Sane/ Source0: http://search.cpan.org/CPAN/authors/id/R/RA/RATCLIFFE/Sane-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker), perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::PkgConfig), perl(Test::More), perl(Test::Pod) BuildRequires: sane-backends-devel, libjpeg-devel Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module allows you to access SANE-compatible scanners in a Perlish and object-oriented way, freeing you from the casting and memory management in C, yet remaining very close in spirit to original API. %prep %setup -q -n Sane-%{version} # Change mode on files we are going to use for %doc files so they don't # generate dependencies chmod a-x examples/* %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' # Remove the next line from noarch packages (unneeded) find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check # do not run tests - non-functional in mock environment #make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README examples %{perl_vendorarch}/auto/* %{perl_vendorarch}/Sane* %{_mandir}/man3/* %changelog * Fri May 25 2012 Bernard Johnson <bjohnson@symetrix.com> - 0.05-1 - v 0.05 * Mon Mar 26 2012 Bernard Johnson <bjohnson@symetrix.com> - 0.04-1 - v 0.04 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jun 19 2011 Marcela MaÅ¡láÅová <mmaslano@redhat.com> - 0.03-7 - Perl mass rebuild * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-5 - 661697 rebuild for fixing problems with vendorach/lib * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-4 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.03-3 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Jun 04 2009 Bernard Johnson <bjohnson@symetrix.com> - 0.03-1 - v 0.03 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jan 29 2009 Bernard Johnson <bjohnson@symetrix.com> - 0.02-2 - update Summary with changes suggested in review bugzilla - update %%files with changes suggested in review bugzilla * Tue Jan 27 2009 Bernard Johnson <bjohnson@symetrix.com> - 0.02-1 - initial release, v 0.2