[perl-Apache-LogRegex] 1.52 bump
Petr Šabata
psabata at fedoraproject.org
Tue Nov 11 08:33:28 UTC 2014
commit d9a2f62701d99edec4b9283f6617677701ac88ae
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Nov 11 09:33:06 2014 +0100
1.52 bump
- Modernize spec
.gitignore | 1 +
perl-Apache-LogRegex.spec | 49 ++++++++++++++++++++------------------------
sources | 2 +-
3 files changed, 24 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fbaacbb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/Apache-LogRegex-1.52.tar.gz
diff --git a/perl-Apache-LogRegex.spec b/perl-Apache-LogRegex.spec
index ca25964..74ee792 100644
--- a/perl-Apache-LogRegex.spec
+++ b/perl-Apache-LogRegex.spec
@@ -1,55 +1,50 @@
Name: perl-Apache-LogRegex
-Version: 1.5
-Release: 16%{?dist}
+Version: 1.52
+Release: 1%{?dist}
Summary: Parse a line from an Apache logfile into a hash
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Apache-LogRegex/
-Source0: http://www.cpan.org/authors/id/P/PE/PETERHI/Apache-LogRegex-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: http://www.cpan.org/authors/id/S/SP/SPACEBAT/Apache-LogRegex-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: perl(ExtUtils::MakeMaker)
+# Build
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Tests only
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
%description
-Designed as a simple class to parse Apache log files.
-It will construct a regex that will parse the given log
-file format and can then parse lines from the log file
-line by line returning a hash of each line.
+Designed as a simple class to parse Apache log files. It will construct
+a regex that will parse the given log file format and can then parse
+lines from the log file line by line returning a hash of each line.
%prep
%setup -q -n Apache-LogRegex-%{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 -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
%check
-# http://rt.perl.org/rt3//Public/Bug/Display.html?id=78008
-# test broken by change of regexp
-#make test
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make test
%files
-%defattr(-,root,root,-)
-%doc README
+%doc LICENSE README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Tue Nov 11 2014 Petr Šabata <contyk at redhat.com> - 1.52-1
+- 1.52 bump
+- Modernize spec
+
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1.5-16
- Perl 5.20 rebuild
diff --git a/sources b/sources
index a728e17..0228628 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5aedaecd26420eea0f44cd14502901fe Apache-LogRegex-1.5.tar.gz
+bf8d0944bddbf6dac8164dea4ebc9277 Apache-LogRegex-1.52.tar.gz
More information about the perl-devel
mailing list