101 lines
3.0 KiB
RPMSpec
101 lines
3.0 KiB
RPMSpec
Name: perl-App-a2p
|
|
Version: 1.009
|
|
Release: 1%{?dist}
|
|
Summary: Awk to Perl translator
|
|
License: GPL+ or Artistic
|
|
Group: Development/Tools
|
|
URL: http://search.cpan.org/dist/App-a2p/
|
|
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/App-a2p-%{version}.tar.gz
|
|
# Current code will fail test tests if the code will run for more than 5
|
|
# seconds. This is not much portable test.
|
|
Patch0: App-a2p-1.007-Remove-alarm-call-from-test.patch
|
|
|
|
# Fix BZ#1177672
|
|
# - Add a2p.y from https://github.com/Leont/app-a2p/a2p.y
|
|
Patch1: App-a2p-1.007-a2p-y.patch
|
|
|
|
BuildRequires: byacc
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: make
|
|
BuildRequires: perl
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Devel::FindPerl is a non-core module
|
|
%if !%{defined perl_bootstrap}
|
|
# Tests:
|
|
BuildRequires: perl(Devel::FindPerl)
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(IPC::Open2)
|
|
BuildRequires: perl(Test::More) >= 0.89
|
|
%endif
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Conflicts: perl < 4:5.18.2-300
|
|
|
|
%description
|
|
This package delivers a2p tool which takes an awk script specified on the
|
|
command line and produces a comparable Perl script.
|
|
|
|
%prep
|
|
%setup -q -n App-a2p-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
# Regenerate a2p.c from a2p.y
|
|
byacc -o a2p.c a2p.y
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
%if !%{defined perl_bootstrap}
|
|
make test
|
|
%endif
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc Changes README
|
|
%{_bindir}/*
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Thu Jul 09 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.009-1
|
|
- 1.009 bump
|
|
|
|
* Tue Jul 07 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.008-1
|
|
- 1.008 bump
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.007-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-7
|
|
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
|
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-6
|
|
- Perl 5.22 rebuild
|
|
|
|
* Thu Feb 12 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-5
|
|
- Add a2p.y and regenerate a2p.c (BZ#1177672)
|
|
|
|
* Thu Jan 08 2015 Petr Pisar <ppisar@redhat.com> - 1.007-4
|
|
- Skip test on bootstrap because of non-core Devel::FindPerl
|
|
|
|
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-3
|
|
- Perl 5.20 rebuild
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.007-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Thu Jun 19 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|