%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Gtk Version: 0.7009 Release: 5mamba Summary: perl :: GTK - Perl interface to GTK, the GIMP toolkit Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://www.cpan.org/modules/by-module/Gtk/Gtk-Perl-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib1-devel BuildRequires: libgtk1-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: perl-devel BuildRequires: perl-libwww BuildRequires: perl-XML-Parser BuildRequires: perl-XML-Writer ## AUTOBUILDREQ-END BuildRequires: libglade1-devel BuildRequires: libxml-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Perl interface to GTK, the GIMP toolkit. %prep %setup -q -n Gtk-Perl-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make -j1 make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl cd GdkPixbuf %makeinstall_perl cd .. sed -i "s|package GdkPixbuf|package Gtk::Gdk::Pixbuf|" \ %{buildroot}%{perl_vendorarch}/Gtk/Gdk/Pixbuf/Types.pm packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Wed Nov 12 2008 Silvan Calarco 0.7009-5mamba - automatic rebuild by autodist * Wed Nov 07 2007 Aleph0 0.7009-4mamba - specfile updated and fixed - added missing build requirements * Thu Oct 07 2004 Silvan Calarco 0.7009-3qilnx - fix for previous fix * Thu Oct 07 2004 Silvan Calarco 0.7009-2qilnx - rebuild and added missing GdkPixbuf library * Thu Oct 07 2004 Silvan Calarco 0.7009-1qilnx - package created by autospec