perl-Goo-Canvas-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Name: perl-Goo-Canvas
  2. Version: 0.06
  3. Release: 1%{?_dist_release}
  4. Summary: Perl interface to the GooCanvas
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Goo-Canvas/
  8. Source0: http://www.cpan.org/authors/id/Y/YE/YEWENBIN/Goo-Canvas-%{version}.tar.gz
  9. Source1: Changes.20090614
  10. Patch0: perltetris_pl-undefined.diff
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: goocanvas-devel
  13. BuildRequires: perl(Cairo) >= 1.00
  14. BuildRequires: perl(ExtUtils::Depends) >= 0.2
  15. BuildRequires: perl(ExtUtils::MakeMaker)
  16. BuildRequires: perl(ExtUtils::PkgConfig) >= 1.0
  17. BuildRequires: perl(Glib) >= 1.103
  18. BuildRequires: perl(Gtk2) >= 1.100
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. %description
  21. GTK+ does't has an buildin canvas widget. GooCanvas is wonderful. It is easy to use
  22. and has powerful and extensible way to create items in canvas. Just try it.
  23. For more documents, please read GooCanvas Manual and the demo programs provided
  24. in the source distribution in both perl-Goo::Canvas and GooCanvas.
  25. %prep
  26. %setup -q -n Goo-Canvas-%{version}
  27. cd bin/
  28. %patch0 -p0 -b .warning
  29. %{__cp} -f %{SOURCE1} ../Changes
  30. %build
  31. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  32. %{__make} %{?_smp_mflags} NOECHO=
  33. %install
  34. %{__rm} -rf $RPM_BUILD_ROOT
  35. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  36. %{__mv} $RPM_BUILD_ROOT%{_bindir}/perltetris.pl $RPM_BUILD_ROOT%{_bindir}/perlfangkuai.pl
  37. %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/perltetris.pl.1 $RPM_BUILD_ROOT%{_mandir}/man1/perlfangkuai.pl.1
  38. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  39. find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
  40. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  41. %{_fixperms} $RPM_BUILD_ROOT/*
  42. %check
  43. %{__make} test
  44. %clean
  45. %{__rm} -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc Changes goocanvas.typemap maps README
  49. %{_bindir}/*
  50. %{_mandir}/man3/*.3*
  51. %{perl_vendorarch}/Goo/
  52. %{_mandir}/man1/*.1.gz
  53. %{perl_vendorarch}/auto/*
  54. %changelog
  55. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.06-1
  56. - initial build for Vine Linux based on fedora development
  57. * Sun Jul 28 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-5
  58. - Change BuildRequires from perl(Glib::MakeHelper) to perl(Glib)
  59. - Add BR: perl-Glib-devel
  60. * Sun Jul 27 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-4
  61. - Change BuildRequires from perl(Glib) to perl(Glib::MakeHelper)
  62. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  64. * Mon Jun 15 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-2
  65. - Correct directory ownership
  66. - Correct the typo in %description
  67. * Thu Jun 11 2009 Liang Suilong <liangsuilong@gmail.com> 0.06-1
  68. - Upstream to perl-Goo-Canvas-0.06-1
  69. - Update Changes
  70. * Thu Jun 11 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-6
  71. - Rename perltertris.pl.1 as perlfangkuang.pl.1
  72. - Update Changes
  73. * Wed May 27 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-5
  74. - Rename perltertris.pl as perlfangkuang.pl and update README and Changes
  75. * Sun Apr 21 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-4
  76. - Modify BuildRequires and correct the %%files.
  77. * Sun Apr 05 2009 Liang Suilong <liangsuilong@gmail.com> 0.05-3
  78. - Specfile autogenerated by cpanspec 1.77.
  79. * Fri Mar 13 2009 Suilong Liang <liangsuilong@gmail.com> -0.05-2
  80. - Fix the bug that the package could not be built on x86_64
  81. * Sun Jan 18 2009 Suilong Liang <liangsuilong@gmail.com> -0.05-1
  82. - Initial package for Fedora 10.