You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Function-Parameters/perl-Function-Parameters.spec

118 lines
3.4 KiB

8 years ago
# Run optional test
%bcond_without perl_Function_Parameters_enables_optional_test
9 years ago
Name: perl-Function-Parameters
8 years ago
%global cpan_version 2.001001
Version: 2.1.1
Release: 1%{?dist}
9 years ago
Summary: Subroutine definitions with parameter lists
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Function-Parameters/
8 years ago
Source0: http://www.cpan.org/authors/id/M/MA/MAUKE/Function-Parameters-%{cpan_version}.tar.gz
9 years ago
BuildRequires: findutils
BuildRequires: gcc
9 years ago
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-devel
9 years ago
BuildRequires: perl-generators
8 years ago
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
9 years ago
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
9 years ago
BuildRequires: perl(Moose)
9 years ago
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(overload)
8 years ago
BuildRequires: perl(Scalar::Util)
9 years ago
BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(aliased)
BuildRequires: perl(attributes)
BuildRequires: perl(constant)
BuildRequires: perl(Dir::Self)
BuildRequires: perl(feature)
8 years ago
BuildRequires: perl(Hash::Util) >= 0.07
9 years ago
BuildRequires: perl(integer)
BuildRequires: perl(lib)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(utf8)
BuildRequires: perl(vars)
8 years ago
%if %{with perl_Function_Parameters_enables_optional_test}
# Optional tests:
BuildRequires: perl(threads)
%endif
9 years ago
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Moose::Util::TypeConstraints)
%description
This module extends Perl with keywords that let you define functions with
parameter lists. It uses Perl's keyword plugin API, so it works reliably
and doesn't require a source filter.
%prep
8 years ago
%setup -q -n Function-Parameters-%{cpan_version}
9 years ago
%build
8 years ago
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
9 years ago
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
9 years ago
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
9 years ago
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Function*
%{_mandir}/man3/*
%changelog
8 years ago
* Mon Jul 03 2017 Petr Pisar <ppisar@redhat.com> - 2.1.1-1
- 2.001001 bump
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.0.7-2
- Perl 5.26 rebuild
8 years ago
* Tue May 16 2017 Petr Pisar <ppisar@redhat.com> - 2.0.7-1
- 2.000007 bump
8 years ago
* Tue Apr 18 2017 Petr Pisar <ppisar@redhat.com> - 2.0.6-2
- 2.000006 bump
8 years ago
* Mon Apr 03 2017 Petr Pisar <ppisar@redhat.com> - 2.0.3-1
- 2.000003 bump
8 years ago
* Tue Mar 28 2017 Petr Pisar <ppisar@redhat.com> - 2.0.2-1
- 2.000002 bump
8 years ago
* Fri Mar 17 2017 Petr Pisar <ppisar@redhat.com> - 1.0706-1
- 1.0706 bump
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0705-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9 years ago
* Wed Jun 15 2016 Petr Pisar <ppisar@redhat.com> - 1.0705-1
- 1.0705 bump
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.0704-2
- Perl 5.24 rebuild
9 years ago
* Mon Feb 15 2016 Petr Pisar <ppisar@redhat.com> - 1.0704-1
- 1.0704 bump
9 years ago
* Thu Feb 04 2016 Petr Pisar <ppisar@redhat.com> 1.0703-1
- Specfile autogenerated by cpanspec 1.78.
- Address mistakes found by review