perl-Curses-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Name: perl-Curses
  2. Version: 1.32
  3. Release: 1%{?_dist_release}
  4. Summary: Perl bindings for ncurses
  5. Summary(ja): Ncurses の Perl バインディング
  6. Group: Development/Libraries
  7. License: GPL+ or Artistic
  8. URL: http://search.cpan.org/dist/Curses/
  9. Source0: http://search.cpan.org/CPAN/authors/id/G/GI/GIRAFFED/Curses-%{version}.tgz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: ncurses-devel
  12. BuildRequires: perl(Test::More)
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. %description
  15. Perl bindings for ncurses, bringing terminal-independent character
  16. handling capabilities to Perl.
  17. %prep
  18. %setup -q -n Curses-%{version}
  19. test -f hints/c-linux.ncursesw.h || cp hints/c-linux.ncurses.h hints/c-linux.ncursesw.h
  20. sed -i -e 's|/usr/local/bin/perl|%{__perl}|' demo*
  21. sed -i -e 's|/usr//bin/perl|%{__perl}|' demo*
  22. %build
  23. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
  24. PANELS MENUS FORMS
  25. make %{?_smp_mflags}
  26. # A note about the following alarming output...
  27. #
  28. # WARNING: Your Curses form.h file appears to be in the default
  29. # system search path, which will not work for us because of
  30. # the conflicting Perl form.h file. This means your 'make' will
  31. # probably fail unless you fix this, as described in the INSTALL
  32. # file.
  33. #
  34. #... can be ignored because /usr/include/form.h is a symlink to
  35. #/usr/include/ncurses/form.h, which the Makefile.PL finds and
  36. #uses quite happily.
  37. %install
  38. rm -rf %{buildroot}
  39. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  40. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  41. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  42. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  43. chmod -R u+w %{buildroot}/*
  44. #Remove exec perm for file aimed to be bundled as %%doc
  45. chmod -x demo*
  46. %check
  47. make test
  48. %clean
  49. rm -rf %{buildroot}
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc Copying Artistic README demo*
  53. %{perl_vendorarch}/auto/*
  54. %{perl_vendorarch}/Curses.pm
  55. %{_mandir}/man3/*.3*
  56. %changelog
  57. * Thu Apr 16 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.32-1
  58. - new upstream release
  59. * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.28-2
  60. - build with Perl 5.16
  61. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.28-1
  62. - initial build for Vine Linux
  63. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-5
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  65. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.28-4
  66. - Perl mass rebuild
  67. * Tue Jun 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.28-3
  68. - Perl mass rebuild
  69. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  71. * Sun Feb 6 2011 Steve Traylen <steve.traylen@cern.ch> - 1.28-1
  72. - Upstream to 1.28
  73. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.27-5
  74. - 661697 rebuild for fixing problems with vendorach/lib
  75. * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.27-4
  76. - Mass rebuild with perl-5.12.0
  77. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.27-3
  78. - rebuild against perl 5.10.1
  79. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.27-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  81. * Thu Jul 16 2009 kwizart < kwizart at gmail.com > - 1.27-1
  82. - Update to 1.27
  83. - Remove exec perm for demo* provided as %%doc - Fix #510186
  84. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-4
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  86. * Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.20-3
  87. - rebuild for new perl
  88. * Thu Feb 14 2008 Garrick Staples <garrick@usc.edu> 1.20-2
  89. - forgot to update tarball, building
  90. * Thu Feb 14 2008 Garrick Staples <garrick@usc.edu> 1.20-1
  91. - bump to 1.20
  92. * Fri Aug 17 2007 Garrick Staples <garrick@usc.edu> 1.16-4
  93. - fix /usr//bin/perl, bz#253336
  94. * Thu Aug 16 2007 Garrick Staples <garrick@usc.edu> 1.16-3
  95. - need BR: perl(Test::More)
  96. * Thu Aug 16 2007 Garrick Staples <garrick@usc.edu> 1.16-2
  97. - rebuild
  98. * Thu Aug 16 2007 Garrick Staples <garrick@usc.edu> 1.16-1
  99. - bump to 1.16
  100. - correct License: tag
  101. - need BR: perl-devel
  102. * Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 1.15-1
  103. - bump to 1.15
  104. * Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 1.14-2
  105. - rebuild
  106. * Sun Aug 27 2006 Garrick Staples <garrick@usc.edu> 1.14-1
  107. - bump to 1.14
  108. - FC6 mass rebuild
  109. * Fri Apr 21 2006 Garrick Staples <garrick@usc.edu> 1.13-3
  110. - add a note about the falsely alarming warning
  111. - don't remove execute bit from demos
  112. * Thu Apr 20 2006 Garrick Staples <garrick@usc.edu> 1.13-2
  113. - spec cleanups
  114. - add doc files
  115. * Wed Apr 19 2006 Garrick Staples <garrick@usc.edu> 1.13-1
  116. - Initial spec file