Blame perl-PDF-API2-XS.spec

49bac60
Name:           perl-PDF-API2-XS
49bac60
Version:        1.001
49bac60
Release:        2%{?dist}
49bac60
Summary:        Optional PDF::API2 add-on using XS to speed up expensive operations
49bac60
# lib/PDF/API2/XS.pm:          LGPLv2+
49bac60
# LICENSE, Makefile.PL README: LGPLv2
49bac60
License:        LGPLv2+ and LGPLv2
49bac60
URL:            https://metacpan.org/release/PDF-API2-XS
49bac60
Source0:        https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/PDF-API2-XS-%{version}.tar.gz
49bac60
BuildRequires:  coreutils
49bac60
BuildRequires:  findutils
49bac60
BuildRequires:  gcc
49bac60
BuildRequires:  make
49bac60
BuildRequires:  perl-devel
49bac60
BuildRequires:  perl-generators
49bac60
BuildRequires:  perl-interpreter
49bac60
BuildRequires:  perl(:VERSION) >= 5.10.0
49bac60
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
49bac60
BuildRequires:  perl(strict)
49bac60
BuildRequires:  perl(warnings)
49bac60
# Run-time
49bac60
BuildRequires:  perl(Exporter)
49bac60
BuildRequires:  perl(XSLoader)
49bac60
# Tests
49bac60
BuildRequires:  perl(PDF::API2)
49bac60
BuildRequires:  perl(Test::More)
49bac60
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
49bac60
49bac60
%description
49bac60
PDF::API2 will make use of this distribution, if it's installed, to speed
49bac60
up some operations that are significantly faster in C than in Perl.
49bac60
49bac60
%prep
49bac60
%setup -q -n PDF-API2-XS-%{version}
49bac60
49bac60
%build
49bac60
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 NO_PERLLOCAL=1
49bac60
%{make_build}
49bac60
49bac60
%install
49bac60
%{make_install}
49bac60
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
49bac60
%{_fixperms} $RPM_BUILD_ROOT/*
49bac60
49bac60
%check
49bac60
unset AUTHOR_TESTING
49bac60
make test
49bac60
49bac60
%files
49bac60
%license LICENSE
49bac60
%doc Changes README
49bac60
%{perl_vendorarch}/auto/*
49bac60
%{perl_vendorarch}/PDF*
49bac60
%{_mandir}/man3/*
49bac60
49bac60
%changelog
49bac60
* Tue Sep 01 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.001-2
49bac60
- Updated due to review
49bac60
49bac60
* Tue Sep 01 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.001-1
49bac60
- Specfile autogenerated by cpanspec 1.78.