perl-GTop-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Name: perl-GTop
  2. Version: 0.17
  3. Release: 2%{?_dist_release}
  4. Summary: Perl interface to libgtop
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/GTop/
  8. Source0: http://www.cpan.org/authors/id/M/MJ/MJH/GTop-%{version}.tar.gz
  9. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  10. # core
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Test::More)
  13. # non-perl
  14. BuildRequires: libgtop2-devel
  15. %?perl_default_filter
  16. %description
  17. This is a perl interface to the libgtop library, useful for collecting
  18. real-time performance and other system statistics.
  19. %prep
  20. %setup -q -n GTop-%{version}
  21. # rpmlint pacifications...
  22. find . -type f -exec chmod -c -x {} \;
  23. perl -pi -e 's|^#!perl|#!/usr/bin/perl|' examples/*
  24. # thread funkiness on ppc/s390
  25. %ifarch ppc ppc64 s390
  26. mv t/threads.t t/threads.t.disable
  27. %endif
  28. %build
  29. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  30. make %{?_smp_mflags}
  31. %install
  32. rm -rf %{buildroot}
  33. make pure_install DESTDIR=%{buildroot}
  34. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  35. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
  36. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  37. %{_fixperms} %{buildroot}/*
  38. %check
  39. make test
  40. %clean
  41. rm -rf %{buildroot}
  42. %files
  43. %doc Changes README TODO examples/ t/
  44. %{perl_vendorarch}/auto/*
  45. %{perl_vendorarch}/GTop*
  46. %exclude %{perl_vendorarch}/config.pl
  47. %{_mandir}/man3/*
  48. %changelog
  49. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.17-2
  50. - build with Perl 5.16
  51. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-1
  52. - initial build for Vine Linux
  53. * Tue Jan 17 2012 Iain Arnell <iarnell@gmail.com> - 0.17-2
  54. - rebuilt again for F17 mass rebuild
  55. * Sat Jan 14 2012 Iain Arnell <iarnell@gmail.com> 0.17-1
  56. - update to latest upstream version
  57. - clean up spec for modern rpmbuild
  58. - use DESTDIR, not PERL_INSTALL_ROOT
  59. - use perl_default_filter
  60. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-16
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  62. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-15
  63. - Perl mass rebuild
  64. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-14
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  66. * Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-13
  67. - 661697 rebuild for fixing problems with vendorach/lib
  68. * Wed Oct 13 2010 Dan Horák <dan[at]danny.cz> - 0.16-12
  69. - exclude the threads test also on s390
  70. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-11
  71. - Mass rebuild with perl-5.12.0
  72. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.16-10
  73. - rebuild against perl 5.10.1
  74. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-9
  75. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  76. * Thu Mar 26 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.16-8
  77. - Stripping bad provides of private Perl extension libs
  78. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-7
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  80. * Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-6
  81. - rebuild for new perl
  82. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.16-5
  83. - Autorebuild for GCC 4.3
  84. * Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.16-4
  85. - bump
  86. * Mon Apr 30 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.16-3
  87. - disable t/threads.t on ppc
  88. * Mon Apr 30 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.16-2
  89. - bump
  90. * Thu Apr 26 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.16-1
  91. - Specfile autogenerated by cpanspec 1.69.1.