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-MouseX-Types-Common/perl-MouseX-Types-Common.spec

54 lines
1.4 KiB

Name: perl-MouseX-Types-Common
Version: 0.001000
Release: 1%{?dist}
Summary: Set of commonly-used type constraints
License: GPL+ or Artistic
URL: http://metacpan.org/dist/MouseX-Types-Common/
Source0: http://cpan.metacpan.org/authors/id/G/GF/GFUJI/MouseX-Types-Common-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-interpreter >= 0:5.006002
BuildRequires: perl-generators
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Mouse) >= 0.42
BuildRequires: perl(MouseX::Types) >= 0.01
BuildRequires: perl(Test::More) >= 0.62
BuildRequires: perl(Test::Exception)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
A set of commonly-used type constraints that do not ship with Mouse
by default.
%prep
%setup -q -n MouseX-Types-Common-%{version}
# Remove bundled modules
rm -r inc
sed -i -e '/^inc\//d' MANIFEST
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{make_install} DESTDIR="$RPM_BUILD_ROOT"
%{_fixperms} $RPM_BUILD_ROOT/*
%check
%{__make} test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Jun 16 2022 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.001000-1
- Initial Fedora package.