Import from AlmaLinux stable repository
This commit is contained in:
parent
1b3ac22e7a
commit
6c3e2263af
@ -1 +0,0 @@
|
|||||||
dad25e0e73a4873ef021308b23d51bb2ccdc7ce4 SOURCES/Parse-Yapp-1.21.tar.gz
|
|
@ -3,7 +3,7 @@
|
|||||||
Name: perl-Parse-Yapp
|
Name: perl-Parse-Yapp
|
||||||
# Keep 2-digit version for history
|
# Keep 2-digit version for history
|
||||||
Version: %{cpan_version}
|
Version: %{cpan_version}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?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
|
||||||
@ -14,12 +14,13 @@ BuildRequires: coreutils
|
|||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(Config)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
# Run-time:
|
# Run-time:
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(vars)
|
BuildRequires: perl(vars)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl-libs
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Parse::Yapp (Yet Another Perl Parser compiler) is a collection of modules that
|
Parse::Yapp (Yet Another Perl Parser compiler) is a collection of modules that
|
||||||
@ -27,17 +28,41 @@ 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
|
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.
|
module and let you easily create a Perl OO parser from an input grammar file.
|
||||||
|
|
||||||
|
%package tests
|
||||||
|
Summary: Tests for %{name}
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: perl-Test-Harness
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
Tests from %{name}. Execute them
|
||||||
|
with "%{_libexecdir}/%{name}/test".
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Parse-Yapp-%{cpan_version}
|
%setup -q -n Parse-Yapp-%{cpan_version}
|
||||||
chmod 644 README lib/Parse/{*.pm,Yapp/*.pm}
|
chmod 644 README lib/Parse/{*.pm,Yapp/*.pm}
|
||||||
|
|
||||||
|
# Help generators to recognize Perl scripts
|
||||||
|
for F in t/*.t; do
|
||||||
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||||
|
chmod +x "$F"
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
make pure_install DESTDIR=%{buildroot}
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
|
# Install tests
|
||||||
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||||
|
#!/bin/sh
|
||||||
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||||
|
EOF
|
||||||
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
@ -49,8 +74,14 @@ make test
|
|||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
%{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 19 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.21-3
|
||||||
|
- Replace versioned MODULE_COMPAT by non-versioned perl-libs
|
||||||
|
- Resolves: rhbz#2219504
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-2
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user