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