source: projects/specs/branches/6/p/perl-Parse-Yapp/perl-Parse-Yapp-vl.spec @ 3213

Revision 3213, 3.5 KB checked in by iwaim, 13 years ago (diff)

perl-Parse-Yapp-1.05-33

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: 33%{?_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## fix file permission
35%__chmod 0644 README
36find lib -type f | xargs chmod 0644
37
38%build
39CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
40#PREFIX=$RPM_BUILD_ROOT%{_prefix}
41make
42
43%check
44make test
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%install
50rm -rf $RPM_BUILD_ROOT
51mkdir -p $RPM_BUILD_ROOT%{_prefix}
52#make PREFIX=$RPM_BUILD_ROOT%{_prefix} install
53make DESTDIR=$RPM_BUILD_ROOT install
54
55[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
56
57find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
58
59find $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
63if [ "$(cat Parse-Yapp-%{version}-filelist)X" = "X" ] ; then
64    echo "ERROR: EMPTY FILE LIST"
65    exit -1
66fi
67
68%files -f Parse-Yapp-%{version}-filelist
69%defattr(-,root,root)
70%doc README Changes
71#%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/Parse/Yapp
72%dir %{perl_vendorlib}/Parse
73%dir %{perl_vendorlib}/Parse/Yapp
74
75%changelog
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
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
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.
Note: See TracBrowser for help on using the repository browser.