perl-Gtk2-ImageView-vl.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Name: perl-Gtk2-ImageView
  2. Version: 0.04
  3. Release: 2%{?_dist_release}
  4. Summary: Perl bindings to the GtkImageView image viewer widget
  5. Group: Development/Libraries
  6. License: LGPLv3+
  7. URL: http://search.cpan.org/dist/Gtk2-ImageView/
  8. Source0: http://search.cpan.org/CPAN/authors/id/R/RA/RATCLIFFE/Gtk2-ImageView-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: gtk2-devel
  11. BuildRequires: gtkimageview-devel >= 1.6.0
  12. BuildRequires: perl(ExtUtils::Depends), perl(ExtUtils::PkgConfig)
  13. BuildRequires: perl(Glib) >= 1.163
  14. BuildRequires: perl(Glib::MakeHelper)
  15. BuildRequires: perl(Cairo) >= 1.00
  16. BuildRequires: perl(ExtUtils::Depends) >= 0.2
  17. BuildRequires: perl(ExtUtils::PkgConfig) >= 1.03
  18. BuildRequires: perl(Gtk2)
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. Requires: perl(Glib) >= 1.163
  21. Requires: perl(Cairo) >= 1.00
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. Perl bindings to the GtkImageView image viewer widget. Find out more about
  26. GtkImageView at http://trac.bjourne.webfactional.com/. The Perl bindings follow
  27. the C API very closely, and the C reference should be considered the canonical
  28. documentation.
  29. %package devel
  30. Summary: Development headers for %{name}
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. %description devel
  34. Development headers for %{name}.
  35. %prep
  36. %setup -q -n Gtk2-ImageView-%{version}
  37. %build
  38. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  39. %{__make} %{?_smp_mflags}
  40. %install
  41. %{__rm} -rf $RPM_BUILD_ROOT
  42. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  43. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  44. find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
  45. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  46. %{__chmod} -R u+w $RPM_BUILD_ROOT/*
  47. %check
  48. # There are tests, but they need an X DISPLAY to run. Not worth it.
  49. # make test
  50. %clean
  51. %{__rm} -rf $RPM_BUILD_ROOT
  52. %files
  53. %defattr(-,root,root,-)
  54. %doc AUTHORS COPYING.LESSER README
  55. %{perl_vendorarch}/auto/Gtk2/ImageView/
  56. %{perl_vendorarch}/Gtk2*
  57. %exclude %{perl_vendorarch}/Gtk2/ImageView/Install/*.h
  58. %{_mandir}/man3/*.3pm*
  59. %files devel
  60. %defattr(-,root,root,-)
  61. %{perl_vendorarch}/Gtk2/ImageView/Install/*.h
  62. %changelog
  63. * Fri Apr 01 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.04-2
  64. - build with perl 5.12.3
  65. - add Vendor and Distribution tags
  66. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.04-1
  67. - initial build for Vine Linux based on fedora development
  68. * Thu Jul 30 2009 Ralf Cors辿pius <corsepiu@fedoraproject.org> - 0.04-5
  69. - Fix mass rebuild breakdown: Add BR: perl(Glib::MakeHelper).
  70. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-4
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  72. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  74. * Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-2
  75. - missing BuildRequires: perl(GTK2)
  76. * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-1
  77. - initial package for Fedora