perl-Gtk2-ImageView-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Name: perl-Gtk2-ImageView
  2. Version: 0.04
  3. Release: 1%{?_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. %description
  23. Perl bindings to the GtkImageView image viewer widget. Find out more about
  24. GtkImageView at http://trac.bjourne.webfactional.com/. The Perl bindings follow
  25. the C API very closely, and the C reference should be considered the canonical
  26. documentation.
  27. %package devel
  28. Summary: Development headers for %{name}
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. %description devel
  32. Development headers for %{name}.
  33. %prep
  34. %setup -q -n Gtk2-ImageView-%{version}
  35. %build
  36. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  37. %{__make} %{?_smp_mflags}
  38. %install
  39. %{__rm} -rf $RPM_BUILD_ROOT
  40. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  41. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  42. find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
  43. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  44. %{__chmod} -R u+w $RPM_BUILD_ROOT/*
  45. %check
  46. # There are tests, but they need an X DISPLAY to run. Not worth it.
  47. # make test
  48. %clean
  49. %{__rm} -rf $RPM_BUILD_ROOT
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc AUTHORS COPYING.LESSER README
  53. %{perl_vendorarch}/auto/Gtk2/ImageView/
  54. %{perl_vendorarch}/Gtk2*
  55. %exclude %{perl_vendorarch}/Gtk2/ImageView/Install/*.h
  56. %{_mandir}/man3/*.3pm*
  57. %files devel
  58. %defattr(-,root,root,-)
  59. %{perl_vendorarch}/Gtk2/ImageView/Install/*.h
  60. %changelog
  61. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.04-1
  62. - initial build for Vine Linux based on fedora development
  63. * Thu Jul 30 2009 Ralf Cors辿pius <corsepiu@fedoraproject.org> - 0.04-5
  64. - Fix mass rebuild breakdown: Add BR: perl(Glib::MakeHelper).
  65. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-4
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  67. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  69. * Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-2
  70. - missing BuildRequires: perl(GTK2)
  71. * Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.04-1
  72. - initial package for Fedora