perl-Parse-Yapp-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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.21
  5. Release: 1%{?_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/~fdesar/Parse-Yapp/
  9. Source0: http://search.cpan.org/CPAN/authors/id/F/FD/FDESAR/Parse-Yapp-%{version}.tar.gz
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  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. make
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  38. make install DESTDIR=$RPM_BUILD_ROOT
  39. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  40. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  41. find $RPM_BUILD_ROOT/usr -type f -print |
  42. sed "s@^$RPM_BUILD_ROOT@@g" |
  43. grep -v perllocal.pod |
  44. grep -v "\.packlist" > Parse-Yapp-%{version}-filelist
  45. if [ "$(cat Parse-Yapp-%{version}-filelist)X" = "X" ] ; then
  46. echo "ERROR: EMPTY FILE LIST"
  47. exit -1
  48. fi
  49. %check
  50. make test
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %files -f Parse-Yapp-%{version}-filelist
  54. %defattr(-,root,root)
  55. %doc README Changes
  56. %dir %{perl_vendorlib}/Parse
  57. %dir %{perl_vendorlib}/Parse/Yapp
  58. %changelog
  59. * Mon May 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.21-1
  60. - new upstream release.
  61. - rebuilt with perl-5.26.
  62. * Wed Nov 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.05-34
  63. - rebuilt with perl 5.16.3
  64. - updated URL
  65. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.05-33
  66. - fix file permission
  67. - add documents
  68. - add directories in files
  69. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.05-32vl6
  70. - build with perl 5.12.3
  71. - defined __find_{provides,requires} with vl4 and vl5
  72. - add Vendor and Distribution tags
  73. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.05-31vl5
  74. - applied new versioning policy
  75. * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.05-30vl6
  76. - installed files to vendor_perl
  77. - changed Group to Development/Libraries
  78. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.05-30vl5
  79. - build on perl-5.8.6-0vl1
  80. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl4
  81. - built on perl-5.8.2
  82. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl3
  83. - built on perl-5.8.1
  84. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl2
  85. - build on perl-5.8.0
  86. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl1
  87. - Build for VineLinux
  88. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  89. - version bump and rebuild
  90. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  91. - automated release bump and build
  92. * Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
  93. - properly claim directories owned by package so they are removed when package is removed
  94. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  95. - automated rebuild
  96. * Fri Dec 7 2001 root <root@redhat.com>
  97. - Spec file was autogenerated.