perl-GTop-vl.spec 4.0 KB

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