perl-Sub-Quote/perl-Sub-Quote.spec

63 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: perl-Sub-Quote
Version: 2.005000
Release: 1%{?org_tag}%{?dist}
Summary: Efficient generation of subroutines via string eval
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Sub-Quote/
Source0: http://localhost/cpan/authors/id/H/HA/HAARG/Sub-Quote-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 0:5.006
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Name) >= 0.08
BuildRequires: perl(Test::Fatal) >= 0.003
BuildRequires: perl(Test::More) >= 0.94
Requires: perl(Scalar::Util)
Requires: perl(Sub::Name) >= 0.08
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Autoreq: no
%description
This package provides performant ways to generate subroutines from strings.
%prep
%setup -q -n Sub-Quote-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes META.json README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri Jul 14 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Wed Apr 04 2018 Gavin Carr <gavin@openfusion.com.au> 2.005000-1
- Specfile autogenerated by cpanspec 1.79.