From 4655a871e4aa9fce7e278ecdf423b42f831d505e Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Sun, 27 Nov 2016 09:30:16 +0100
Subject: Update to 0.30 and a certain amount of cleanup

- Move to the Module::Build::Tiny workflow
- Use perl default filter
- Use license macro
- Tighten file listing
---
 .gitignore                 |  1 +
 perl-MooseX-Singleton.spec | 41 ++++++++++++++++++++++++-----------------
 sources                    |  2 +-
 3 files changed, 26 insertions(+), 18 deletions(-)

diff --git a/.gitignore b/.gitignore
index 19cca0b..e536f0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ MooseX-Singleton-0.21.tar.gz
 /MooseX-Singleton-0.26.tar.gz
 /MooseX-Singleton-0.27.tar.gz
 /MooseX-Singleton-0.29.tar.gz
+/MooseX-Singleton-0.30.tar.gz
diff --git a/perl-MooseX-Singleton.spec b/perl-MooseX-Singleton.spec
index cbf0579..0309dc8 100644
--- a/perl-MooseX-Singleton.spec
+++ b/perl-MooseX-Singleton.spec
@@ -1,24 +1,27 @@
 Name:           perl-MooseX-Singleton
-Version:        0.29
-Release:        12%{?dist}
+Version:        0.30
+Release:        1%{?dist}
 Summary:        Turn your Moose class into a singleton
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/MooseX-Singleton/
-Source0:        
http://search.cpan.org/CPAN/authors/id/K/KA/KAARE/MooseX-Singleton-%{version}.tar.gz
+Source0:        
http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/MooseX-Singleton-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  perl-generators
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
+BuildRequires:  perl(Module::Build::Tiny)
+BuildRequires:  perl(Module::Metadata)
 BuildRequires:  perl(Moose) >= 1.10
 BuildRequires:  perl(MooseX::StrictConstructor) >= 0.16
 BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Test::Fatal)
 BuildRequires:  perl(Test::More) >= 0.88
 BuildRequires:  perl(Test::Requires)
-BuildRequires:  perl(Test::Warn)
+BuildRequires:  perl(Test::Warnings)
 BuildRequires:  perl(Test::Exception)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
+%{?perl_default_filter}
+
 %description
 A singleton is a class that has only one instance in an application.
 MooseX::Singleton lets you easily upgrade (or downgrade, as it were) your
@@ -28,26 +31,30 @@ Moose class to a singleton.
 %setup -q -n MooseX-Singleton-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+./Build install --destdir=%{buildroot} --create_packlist=0
+%{_fixperms} %{buildroot}/*
 
 %check
-make test
+./Build test
 
 %files
-%doc Changes LICENSE README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes README
+%license LICENSE
+%{perl_vendorlib}/MooseX*
+%{_mandir}/man3/MooseX*
 
 %changelog
+* Sun Nov 27 2016 Emmanuel Seyman <emman...@seyman.fr> - 0.30-1
+- Update to 0.30
+- Move to the Module::Build::Tiny workflow
+- Use perl default filter
+- Use license macro
+- Tighten file listing
+
 * Mon May 16 2016 Jitka Plesnikova <jples...@redhat.com> - 0.29-12
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 14dd399..f939014 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b4ea5f8cc9b9f952623527a52da55e8d  MooseX-Singleton-0.29.tar.gz
+a2d2bf2bd122505a11d4079b653d93d1  MooseX-Singleton-0.30.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-MooseX-Singleton.git/commit/?h=master&id=4655a871e4aa9fce7e278ecdf423b42f831d505e
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to