perl-Parse-Yapp-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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: 31%{?_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. %description
  15. Parse::Yapp (Yet Another Perl Parser compiler) is a collection of
  16. modules that let you generate and use yacc like thread safe
  17. (reentrant) parsers with perl object oriented interface. The script
  18. yapp is a front-end to the Parse::Yapp module and let you easily
  19. create a Perl OO parser from an input grammar file.
  20. # Provide perl-specific find-{provides,requires}.
  21. %define __find_provides /usr/lib/rpm/find-provides.perl
  22. %define __find_requires /usr/lib/rpm/find-requires.perl
  23. %prep
  24. %setup -q -n Parse-Yapp-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. #PREFIX=$RPM_BUILD_ROOT%{_prefix}
  28. make
  29. %check
  30. make test
  31. %clean
  32. rm -rf $RPM_BUILD_ROOT
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  36. #make PREFIX=$RPM_BUILD_ROOT%{_prefix} install
  37. make DESTDIR=$RPM_BUILD_ROOT install
  38. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  39. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  40. find $RPM_BUILD_ROOT/usr -type f -print |
  41. sed "s@^$RPM_BUILD_ROOT@@g" |
  42. grep -v perllocal.pod |
  43. grep -v "\.packlist" > Parse-Yapp-%{version}-filelist
  44. if [ "$(cat Parse-Yapp-%{version}-filelist)X" = "X" ] ; then
  45. echo "ERROR: EMPTY FILE LIST"
  46. exit -1
  47. fi
  48. %files -f Parse-Yapp-%{version}-filelist
  49. %defattr(-,root,root)
  50. #%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/Parse/Yapp
  51. %changelog
  52. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.05-31vl5
  53. - applied new versioning policy
  54. * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.05-30vl6
  55. - installed files to vendor_perl
  56. - changed Group to Development/Libraries
  57. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.05-30vl5
  58. - build on perl-5.8.6-0vl1
  59. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl4
  60. - built on perl-5.8.2
  61. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl3
  62. - built on perl-5.8.1
  63. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl2
  64. - build on perl-5.8.0
  65. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.05-30vl1
  66. - Build for VineLinux
  67. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  68. - version bump and rebuild
  69. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  70. - automated release bump and build
  71. * Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
  72. - properly claim directories owned by package so they are removed when package is removed
  73. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  74. - automated rebuild
  75. * Fri Dec 7 2001 root <root@redhat.com>
  76. - Spec file was autogenerated.