Name: perl-Gtk2-ImageView Version: 0.04 Release: 3%{?dist} Summary: Perl bindings to the GtkImageView image viewer widget Group: Development/Libraries License: LGPLv3 URL: http://search.cpan.org/dist/Gtk2-ImageView/ Source0: http://search.cpan.org/CPAN/authors/id/R/RA/RATCLIFFE/Gtk2-ImageView-0.04.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker), perl(ExtUtils::Depends) >= 0.2, perl(ExtUtils::PkgConfig) >= 1.03 BuildRequires: perl-Glib, gtk2-devel, perl-Gtk2, gtkimageview-devel >= 1.6.0 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Perl bindings to the GtkImageView image viewer widget. Find out more about GtkImageView at http://trac.bjourne.webfactional.com/. The Perl bindings follow the C API very closely, and the C reference should be considered the canonical documentation. %prep %setup -q -n Gtk2-ImageView-%{version} %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 {} ';' 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 tty -s && make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING.LESSER INSTALL MANIFEST README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Gtk2 %doc %{_mandir}/man3/*.3* %changelog * Wed Jul 2 2008 J. Randall Owens - 0.04-3 - add version to gtkimageview-devel BuildRequires * Wed Jul 2 2008 J. Randall Owens - 0.04-2 - Use CPAN for URL & Source - rm unnecessary comments * Wed Jul 2 2008 J. Randall Owens - 0.04-1 - Initial RPM build from source, in case it's needed for gscan2pdf