Modernize spec file

This commit is contained in:
Petr Písař 2012-08-15 11:52:30 +02:00
parent e6b44eb099
commit c755467287

View File

@ -1,26 +1,22 @@
Name: perl-Parse-Yapp
Version: 1.05
Release: 48%{?dist}
Release: 49%{?dist}
Summary: Perl extension for generating and using LALR parsers
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Parse-Yapp/
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
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Parse::Yapp (Yet Another Perl Parser compiler) is a collection of
modules that let you generate and use yacc like thread safe
(reentrant) parsers with perl object oriented interface. The script
yapp is a front-end to the Parse::Yapp module and let you easily
create a Perl OO parser from an input grammar file.
Parse::Yapp (Yet Another Perl Parser compiler) is a collection of modules that
let you generate and use yacc like thread safe (reentrant) parsers with perl
object oriented interface. The script yapp is a front-end to the Parse::Yapp
module and let you easily create a Perl OO parser from an input grammar file.
%prep
%setup -q -n Parse-Yapp-%{version}
@ -31,21 +27,14 @@ chmod 644 README lib/Parse/{*.pm,Yapp/*.pm}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
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/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{_bindir}/yapp
%{perl_vendorlib}/Parse/
@ -54,6 +43,10 @@ rm -rf $RPM_BUILD_ROOT
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild