Update to 0.15

- New upstream release 0.15
  - Migrate to Dist::Zilla
  - Return false from null adapter is_xxx methods (CPAN RT#64164)
  - Eliminate 'subroutine redefined' warning in case Log::Any::Adapter loaded
    before Log::Any::Test
  - Fix typo in lib/Log/Any/Adapter/Test.pm (CPAN RT#69850)
  - Fix version number in Log/Any.pm
  - Hide 'package Log::Any::Adapter' from PAUSE/Module::Metadata
- If we're not bootstrapping, run the release tests too
- Specify all dependencies
- Package upstream LICENSE file
- Drop %defattr, redundant since rpm 4.4
- Make %files list more explicit
- Don't need to remove empty directories from the buildroot
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Drop redundant provides filter
f38
Paul Howarth 11 years ago
parent e7ed75a28a
commit 8c69ea4d81

2
.gitignore vendored

@ -1 +1 @@
/Log-Any-0.11.tar.gz
/Log-Any-[0-9.]*.tar.gz

@ -1,27 +1,33 @@
Name: perl-Log-Any
Version: 0.11
Release: 12%{?dist}
Version: 0.15
Release: 1%{?dist}
Summary: Bringing loggers and listeners together
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Log-Any/
Source0: http://www.cpan.org/authors/id/J/JS/JSWARTZ/Log-Any-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
# Module Build
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
# Module Runtime
BuildRequires: perl(base)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Test::Builder)
# Test Suite
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Simple)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Log/Any/Test.pm is not the real Log::Any::Adapter
%{?perl_default_filter:
%filter_from_provides /perl(Log::Any::Adapter)\s*$/d
%perl_default_filter}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(Log::Any::Adapter\\)
# Release Tests
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Log::Any::Adapter)
BuildRequires: perl(Log::Any::Adapter::Dispatch)
BuildRequires: perl(Log::Dispatch)
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Log::Any allows CPAN modules to safely and efficiently log messages, while
@ -32,32 +38,49 @@ such as Log::Dispatch or Log::Log4perl.
%setup -q -n Log-Any-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
make pure_install DESTDIR=$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/*
%{_fixperms} $RPM_BUILD_ROOT
%check
make test
make test %{!?perl_bootstrap:RELEASE_TESTING=1}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%doc Changes LICENSE README
%{perl_vendorlib}/Log/
%{_mandir}/man3/Log::Any.3pm*
%{_mandir}/man3/Log::Any::Adapter::Core.3pm*
%{_mandir}/man3/Log::Any::Adapter::Null.3pm*
%{_mandir}/man3/Log::Any::Test.3pm*
%changelog
* Mon Oct 7 2013 Paul Howarth <paul@city-fan.org> - 0.15-1
- Update to 0.15
- Migrate to Dist::Zilla
- Return false from null adapter is_xxx methods (CPAN RT#64164)
- Eliminate 'subroutine redefined' warning in case Log::Any::Adapter loaded
before Log::Any::Test
- Fix typo in lib/Log/Any/Adapter/Test.pm (CPAN RT#69850)
- Fix version number in Log/Any.pm
- Hide 'package Log::Any::Adapter' from PAUSE/Module::Metadata
- If we're not bootstrapping, run the release tests too
- Specify all dependencies
- Package upstream LICENSE file
- Drop %%defattr, redundant since rpm 4.4
- Make %%files list more explicit
- Don't need to remove empty directories from the buildroot
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Drop redundant provides filter
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

@ -1 +1 @@
9186d94ee2ae7cada408fc5faf86d975 Log-Any-0.11.tar.gz
8337dd1dedd499de70f941ef980b5fe9 Log-Any-0.15.tar.gz

Loading…
Cancel
Save