Modernize spec file
This commit is contained in:
parent
e6b44eb099
commit
c755467287
@ -1,26 +1,22 @@
|
|||||||
Name: perl-Parse-Yapp
|
Name: perl-Parse-Yapp
|
||||||
Version: 1.05
|
Version: 1.05
|
||||||
Release: 48%{?dist}
|
Release: 49%{?dist}
|
||||||
Summary: Perl extension for generating and using LALR parsers
|
Summary: Perl extension for generating and using LALR parsers
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/Parse-Yapp/
|
URL: http://search.cpan.org/dist/Parse-Yapp/
|
||||||
Source0: http://www.cpan.org/authors/id/F/FD/FDESAR/Parse-Yapp-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/F/FD/FDESAR/Parse-Yapp-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl >= 1:5.6.1
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
# Run-time:
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Parse::Yapp (Yet Another Perl Parser compiler) is a collection of
|
Parse::Yapp (Yet Another Perl Parser compiler) is a collection of modules that
|
||||||
modules that let you generate and use yacc like thread safe
|
let you generate and use yacc like thread safe (reentrant) parsers with perl
|
||||||
(reentrant) parsers with perl object oriented interface. The script
|
object oriented interface. The script yapp is a front-end to the Parse::Yapp
|
||||||
yapp is a front-end to the Parse::Yapp module and let you easily
|
module and let you easily create a Perl OO parser from an input grammar file.
|
||||||
create a Perl OO parser from an input grammar file.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Parse-Yapp-%{version}
|
%setup -q -n Parse-Yapp-%{version}
|
||||||
@ -31,21 +27,14 @@ chmod 644 README lib/Parse/{*.pm,Yapp/*.pm}
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%{_bindir}/yapp
|
%{_bindir}/yapp
|
||||||
%{perl_vendorlib}/Parse/
|
%{perl_vendorlib}/Parse/
|
||||||
@ -54,6 +43,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 1.05-49
|
||||||
|
- Specify all dependencies
|
||||||
|
- Modernize spec file
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-48
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-48
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user