perl-Parse-Yapp-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %define _use_internal_dependency_generator 0
  2. Summary: Perl extension for generating and using LALR parsers.
  3. Name: perl-Parse-Yapp
  4. Version: 1.05
  5. Release: 33%{?_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. Source0: Parse-Yapp-%{version}.tar.gz
  9. Url: http://www.cpan.org
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: perl >= 5.8.2
  12. Requires: perl >= 5.8.2
  13. BuildArch: noarch
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. Parse::Yapp (Yet Another Perl Parser compiler) is a collection of
  18. modules that let you generate and use yacc like thread safe
  19. (reentrant) parsers with perl object oriented interface. The script
  20. yapp is a front-end to the Parse::Yapp module and let you easily
  21. create a Perl OO parser from an input grammar file.
  22. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  23. # Provide perl-specific find-{provides,requires}.
  24. %define __find_provides /usr/lib/rpm/find-provides.perl
  25. %define __find_requires /usr/lib/rpm/find-requires.perl
  26. %endif
  27. %prep
  28. %setup -q -n Parse-Yapp-%{version}
  29. ## fix file permission
  30. %__chmod 0644 README
  31. find lib -type f | xargs chmod 0644
  32. %build
  33. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  34. #PREFIX=$RPM_BUILD_ROOT%{_prefix}
  35. make
  36. %check
  37. make test
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  43. #make PREFIX=$RPM_BUILD_ROOT%{_prefix} install
  44. make DESTDIR=$RPM_BUILD_ROOT install
  45. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  46. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  47. find $RPM_BUILD_ROOT/usr -type f -print |
  48. sed "s@^$RPM_BUILD_ROOT@@g" |
  49. grep -v perllocal.pod |
  50. grep -v "\.packlist" > Parse-Yapp-%{version}-filelist
  51. if [ "$(cat Parse-Yapp-%{version}-filelist)X" = "X" ] ; then
  52. echo "ERROR: EMPTY FILE LIST"
  53. exit -1
  54. fi
  55. %files -f Parse-Yapp-%{version}-filelist
  56. %defattr(-,root,root)
  57. %doc README Changes
  58. #%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/Parse/Yapp
  59. %dir %{perl_vendorlib}/Parse
  60. %dir %{perl_vendorlib}/Parse/Yapp
  61. %changelog
  62. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.05-33
  63. - fix file permission
  64. - add documents
  65. - add directories in files
  66. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.05-32vl6
  67. - build with perl 5.12.3
  68. - defined __find_{provides,requires} with vl4 and vl5
  69. - add Vendor and Distribution tags
  70. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.05-31vl5
  71. - applied new versioning policy
  72. * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.05-30vl6
  73. - installed files to vendor_perl
  74. - changed Group to Development/Libraries
  75. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.05-30vl5
  76. - build on perl-5.8.6-0vl1
  77. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl4
  78. - built on perl-5.8.2
  79. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl3
  80. - built on perl-5.8.1
  81. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl2
  82. - build on perl-5.8.0
  83. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl1
  84. - Build for VineLinux
  85. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  86. - version bump and rebuild
  87. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  88. - automated release bump and build
  89. * Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
  90. - properly claim directories owned by package so they are removed when package is removed
  91. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  92. - automated rebuild
  93. * Fri Dec 7 2001 root <root@redhat.com>
  94. - Spec file was autogenerated.