Update to 1.01 and clean up spec file

epel9
Emmanuel Seyman 3 years ago
parent e5f82f5c4d
commit 292f0c8777

1
.gitignore vendored

@ -1,2 +1,3 @@
MooseX-Types-JSON-0.02.tar.gz
/MooseX-Types-JSON-1.00.tar.gz
/MooseX-Types-JSON-1.01.tar.gz

@ -1,19 +1,19 @@
Name: perl-MooseX-Types-JSON
Summary: JSON data types for Moose
Version: 1.00
Release: 20%{?dist}
Version: 1.01
Release: 1%{?dist}
# see lib/MooseX/Types/JSON.pm
License: GPL+ or Artistic
Source0: https://cpan.metacpan.org/authors/id/M/MI/MILA/MooseX-Types-JSON-%{version}.tar.gz
URL: https://metacpan.org/release/MooseX-Types-JSON
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: make
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(JSON::XS) >= 2.00
BuildRequires: perl(JSON)
BuildRequires: perl(Moose)
@ -36,18 +36,15 @@ Requires: perl(MooseX::Types)
%setup -q -n MooseX-Types-JSON-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{make_install}
%{_fixperms} %{buildroot}/*
%check
make test
%{make_build} test
%files
%doc README Changes examples/
@ -56,6 +53,12 @@ make test
%{_mandir}/man3/MooseX*.3*
%changelog
* Thu Jan 20 2022 Emmanuel Seyman <emmanuel@seyman.fr> - 1.01-1
- Update to 1.01
- Replace %%{__perl} with /usr/bin/perl
- Use %%{make_build} and %%{make_install} where appropriate
- Pass NO_PACKLIST and NO_PERLLOCAL to Makefile.PL
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

@ -1 +1 @@
39ec7063a355ec7b0abc64ee20c94166 MooseX-Types-JSON-1.00.tar.gz
SHA512 (MooseX-Types-JSON-1.01.tar.gz) = 0c1042cca56637d14dd853e77c96a24630b72c6af42820f24a9a9e086ce043eea1d3b370254a0a991b4d52fa2f96740e11b664b0784e1b794d7bd4e720b34953

Loading…
Cancel
Save