source: projects/specs/trunk/p/perl-Parse-Yapp/perl-Parse-Yapp-vl.spec @ 3208

Revision 3208, 3.2 KB checked in by iwaim, 13 years ago (diff)

perl-Parse-Yapp-1.05-32

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