############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = perl-Parse-Yapp version = 1.21 release = 3 thisapp = Parse-Yapp-%{version} groups = Development/Libratries url = http://search.cpan.org/dist/Parse-Yapp/ license = GPL+ or Artistic summary = Perl extension for generating and using LALR parsers. 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. end source_dl = https://cpan.metacpan.org/authors/id/W/WB/WBRASWELL/ build requires perl(ExtUtils::MakeMaker) perl(Test::More) end build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}" make %{PARALLELISMFLAGS} end test make test end install_cmds # Set correct library permissions. find %{BUILDROOT}%{libdir} -type f -iname "*.so" \ -exec chmod 755 {} \; # Set correct binary permissions. find %{BUILDROOT}%{bindir} -type f -executable \ -exec chmod 755 {} \; end end packages package %{name} requires perl(:MODULE_COMPAT_%{perl_version}) end end package %{name}-debuginfo template DEBUGINFO end end