42139d3
Name:           perl-Goo-Canvas
42139d3
Version:        0.06
1781f68
Release:        6%{?dist}
42139d3
Summary:        Perl interface to the GooCanvas
42139d3
License:        GPL+ or Artistic
42139d3
Group:          Development/Libraries
42139d3
URL:            http://search.cpan.org/dist/Goo-Canvas/
42139d3
Source0:        http://www.cpan.org/authors/id/Y/YE/YEWENBIN/Goo-Canvas-%{version}.tar.gz
42139d3
Source1:        Changes.20090614
42139d3
Patch0:         perltetris_pl-undefined.diff
42139d3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1781f68
BuildRequires:  	goocanvas-devel
1781f68
BuildRequires:  	perl(Cairo) >= 1.00
1781f68
BuildRequires:  	perl(ExtUtils::Depends) >= 0.2
1781f68
BuildRequires:  	perl(ExtUtils::MakeMaker)
1781f68
BuildRequires:  	perl(ExtUtils::PkgConfig) >= 1.0
1781f68
BuildRequires:  	perl(Glib) >= 1.103
1781f68
BuildRequires:	perl(Glib::MakeHelper)
1781f68
BuildRequires:  	perl(Gtk2) >= 1.100
1781f68
Requires:       	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
42139d3
42139d3
42139d3
%description
42139d3
GTK+ does't has an buildin canvas widget. GooCanvas is wonderful. It is easy to use 
42139d3
and has powerful and extensible way to create items in canvas. Just try it.
42139d3
For more documents, please read GooCanvas Manual and the demo programs provided
42139d3
in the source distribution in both perl-Goo::Canvas and GooCanvas.
42139d3
42139d3
%prep
42139d3
%setup -q -n Goo-Canvas-%{version}
42139d3
cd bin/
42139d3
%patch0 -p0 -b .warning 
42139d3
cp -f %{SOURCE1} ../Changes
42139d3
42139d3
%build
42139d3
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
42139d3
make %{?_smp_mflags} NOECHO=
42139d3
42139d3
%install
42139d3
rm -rf $RPM_BUILD_ROOT
42139d3
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
42139d3
mv $RPM_BUILD_ROOT%{_bindir}/perltetris.pl $RPM_BUILD_ROOT%{_bindir}/perlfangkuai.pl
42139d3
mv $RPM_BUILD_ROOT%{_mandir}/man1/perltetris.pl.1 $RPM_BUILD_ROOT%{_mandir}/man1/perlfangkuai.pl.1
42139d3
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
42139d3
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
42139d3
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
42139d3
%{_fixperms} $RPM_BUILD_ROOT/*
42139d3
42139d3
%check
42139d3
make test
42139d3
42139d3
%clean
42139d3
rm -rf $RPM_BUILD_ROOT
42139d3
42139d3
%files
42139d3
%defattr(-,root,root,-)
42139d3
%doc Changes goocanvas.typemap maps README
42139d3
%{_bindir}/*
42139d3
%{_mandir}/man3/*.3*
42139d3
%{perl_vendorarch}/Goo/
42139d3
%{_mandir}/man1/*.1.gz
42139d3
%{perl_vendorarch}/auto/*
42139d3
42139d3
%changelog
1781f68
* Sun Jul 28 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-6
1781f68
- Add BR: perl(Glib::MakeHelper)
1781f68
- Remove BR: perl-Glib-devel
1781f68
718b1a1
* Sun Jul 28 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-5
718b1a1
- Change BuildRequires from perl(Glib::MakeHelper) to perl(Glib)
49c4f16
- Add BR: perl-Glib-devel
718b1a1
ed36281
* Sun Jul 27 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-4
ed36281
- Change BuildRequires from perl(Glib) to perl(Glib::MakeHelper)
ed36281
a955c2b
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
a955c2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a955c2b
42139d3
* Mon Jun 15 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-2
42139d3
- Correct directory ownership
42139d3
- Correct the typo in %description 
42139d3
42139d3
* Thu Jun 11 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-1
42139d3
- Upstream to perl-Goo-Canvas-0.06-1
42139d3
- Update Changes
42139d3
42139d3
* Thu Jun 11 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-6
42139d3
- Rename perltertris.pl.1 as perlfangkuang.pl.1
42139d3
- Update Changes
42139d3
42139d3
* Wed May 27 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-5
42139d3
- Rename perltertris.pl as perlfangkuang.pl and update README and Changes
42139d3
42139d3
* Sun Apr 21 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-4
42139d3
- Modify BuildRequires and correct the %%files.
42139d3
42139d3
* Sun Apr 05 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-3
42139d3
- Specfile autogenerated by cpanspec 1.77.
42139d3
42139d3
* Fri Mar 13 2009 Suilong Liang <liangsuilong@gmail.com> -0.05-2
42139d3
-  Fix the bug that the package could not be built on x86_64
42139d3
42139d3
* Sun Jan 18 2009 Suilong Liang <liangsuilong@gmail.com> -0.05-1
42139d3
- Initial package for Fedora 10.