File perl-Gimp.spec of Package perl-Gimp

%define	modname	Gimp
Summary:	Perl module enabling to write plugins for the Gimp2
Name:		perl-%{modname}
Epoch:		1
Version:	2.2pre1
Release:	1
License:	GPL/Artistic
Group:		Development/Libraries/Perl
Source0:	http://search.cpan.org/CPAN/authors/id/S/SJ/SJBURGES/%{modname}-%{version}.tar.bz2
URL:		http://search.cpan.org/~sjburges/Gimp/Gimp.pm
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:	perl gimp-devel > 2.0
#BuildRequires:	perl-Gtk2 perl-PDL perl-Parse-RecDescent perl-ExtUtils-Depends
BuildRequires:	perl-ExtUtils-PkgConfig
#BuildRequires:  glitz-devel
#Requires:	gtk2 perl-Glib >= 1.021
Provides:	gimp-perl = %epoch:%version
Obsoletes:	gimp-perl < %epoch:2.0

# Don't use automatic requires for perl-PDL (#22095):
#%define _requires_exceptions perl(PDL

%description
This module provides perl access to the Gimp2 libraries.
%prep
%setup -q -n gimp-perl

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test

%install
rm -rf %{buildroot}
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc %{_mandir}/man?/*
%{_bindir}/*
%{perl_vendorarch}/%{modname}.pm
%{perl_vendorarch}/%{modname}/*
%{perl_vendorarch}/auto/%{modname}/*
%{perl_vendorarch}/auto/%{modname}/.packlist
/var/adm/perl-modules/%{name}

%changelog
* Tue Sep 9 2006  Martin Vuk <martin.vuk@fri.uni-lj.si> 2.2-0-pre1
- SuSE version of the package.
openSUSE Build Service is sponsored by