From 0157905d0dc9be7086b6e585007d02efb58e6b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Wed, 22 Jun 2022 10:43:32 +0200 Subject: [PATCH] Initial Fedora package. --- .gitignore | 1 + perl-MouseX-Types-Common.spec | 53 +++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 55 insertions(+) create mode 100644 .gitignore create mode 100644 perl-MouseX-Types-Common.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4881a2b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/MouseX-Types-Common-0.001000.tar.gz diff --git a/perl-MouseX-Types-Common.spec b/perl-MouseX-Types-Common.spec new file mode 100644 index 0000000..14c97a7 --- /dev/null +++ b/perl-MouseX-Types-Common.spec @@ -0,0 +1,53 @@ +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 - 0.001000-1 +- Initial Fedora package. diff --git a/sources b/sources new file mode 100644 index 0000000..9737f8d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (MouseX-Types-Common-0.001000.tar.gz) = 1c3f85b0fbb1d7759095d88e9f4fb2d14a1c0329850d1b02892aa58d0fc9f78598dcdabcae3bd57c15cb143c3aef88b730dc3e96df7585669b737c23da070141