diff --git a/.gitignore b/.gitignore index ac96d3e..174b9ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Test-Memory-Cycle-1.04.tar.gz +/Test-Memory-Cycle-1.06.tar.gz diff --git a/perl-Test-Memory-Cycle.spec b/perl-Test-Memory-Cycle.spec index 261329a..e3bc5b6 100644 --- a/perl-Test-Memory-Cycle.spec +++ b/perl-Test-Memory-Cycle.spec @@ -1,28 +1,33 @@ Name: perl-Test-Memory-Cycle -Version: 1.04 -Release: 23%{?dist} +Version: 1.06 +Release: 1%{?dist} Summary: Check for memory leaks and circular memory references - -Group: Development/Libraries -License: GPL+ or Artistic +License: Artistic 2.0 URL: http://search.cpan.org/dist/Test-Memory-Cycle/ Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch -BuildRequires: perl(CGI) +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime BuildRequires: perl(Devel::Cycle) >= 1.07 -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::Builder) +# Tests only BuildRequires: perl(Getopt::Long) -BuildRequires: perl(PadWalker) +BuildRequires: perl(lib) BuildRequires: perl(Scalar::Util) -BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder::Tester) BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Simple) >= 0.62 +# Optional tests only BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(Devel::Cycle) >= 1.07 + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Devel::Cycle\\)$ %description Perl's garbage collection has one big problem: Circular references @@ -31,40 +36,32 @@ objects that refer to each other. "Test::Memory::Cycle" is built on top of "Devel::Cycle" to give you an easy way to check for these circular references. - %prep %setup -q -n Test-Memory-Cycle-%{version} - %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} - %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* %check make test - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) -%doc Changes README -%{perl_vendorlib}/Test/ -%{_mandir}/man3/*.3pm* - +%license LICENSE +%doc Changes README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* %changelog +* Thu Jan 28 2016 Petr Ĺ abata - 1.06-1 +- 1.06 bump +- Package cleanup +- License changed from `GPL+ or Artistic' to `Artistic 2.0' + * Thu Jun 18 2015 Fedora Release Engineering - 1.04-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 72b5978..16a71e4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0c51e09f6bc23676ca0112b1a95e129d Test-Memory-Cycle-1.04.tar.gz +397e709ba33d3883b5fb2bc49e3a70b0 Test-Memory-Cycle-1.06.tar.gz