[perl-HTTP-BrowserDetect] Update to 1.61
Paul Howarth
pghmcfc at fedoraproject.org
Fri Oct 4 10:57:25 UTC 2013
commit dd8b89e7e1284aa164412460a3559ba3959f0445
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Oct 4 11:55:29 2013 +0100
Update to 1.61
- Update to 1.61 (see Changes for details)
- Specify all dependencies
- Package CONTRIBUTORS file
- Recode documentation as UTF-8
- Remove spurious exec permission from perl module file
- Drop %defattr, redundant since rpm 4.4
- Make %files list more explicit
- Drop redundant %{?perl_default_filter}
- Don't need to remove empty directories from the buildroot
- Don't use macros for commands
.gitignore | 3 +-
HTTP-BrowserDetect-UTF8.patch | 11 +++++++
perl-HTTP-BrowserDetect.spec | 62 +++++++++++++++++++++++++++++------------
sources | 2 +-
4 files changed, 57 insertions(+), 21 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 258ad9f..75ad80d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-HTTP-BrowserDetect-1.10.tar.gz
-/HTTP-BrowserDetect-1.21.tar.gz
+/HTTP-BrowserDetect-[0-9.]*.tar.gz
diff --git a/HTTP-BrowserDetect-UTF8.patch b/HTTP-BrowserDetect-UTF8.patch
new file mode 100644
index 0000000..515a77d
--- /dev/null
+++ b/HTTP-BrowserDetect-UTF8.patch
@@ -0,0 +1,11 @@
+--- CONTRIBUTORS
++++ CONTRIBUTORS
+@@ -15,7 +15,7 @@
+ * Olaf Alders <olaf at wundersolutions.com>
+ * Olivier Bilodeau <olivier at bottomlesspit.org>
+ * Paul Findlay <paul at findlay.net.nz>
+- * Robin Smidsrød <robin at smidsrod.no>
++ * Robin Smidsrød <robin at smidsrod.no>
+ * Ronald J Kimball <rkimball at pangeamedia.com>
+ * Surikov Alexey <surikov at alexey-pc.kiteventures.local>
+ * Thom Blake <thom at odonnellpdc.com>
diff --git a/perl-HTTP-BrowserDetect.spec b/perl-HTTP-BrowserDetect.spec
index 3933dda..afa01fa 100644
--- a/perl-HTTP-BrowserDetect.spec
+++ b/perl-HTTP-BrowserDetect.spec
@@ -1,20 +1,32 @@
Name: perl-HTTP-BrowserDetect
Summary: Determine the Web browser, version, and platform from an HTTP user agent string
-Version: 1.21
-Release: 9%{?dist}
+Version: 1.61
+Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/HTTP-BrowserDetect/
Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/HTTP-BrowserDetect-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: HTTP-BrowserDetect-UTF8.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
-BuildRequires: perl(Data::Dump)
+# Module Build
+BuildRequires: perl(Module::Build) > 0.36
+# Module Runtime
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+BuildRequires: perl(warnings)
+# Test Suite
+BuildRequires: perl(File::Slurp)
+BuildRequires: perl(FindBin)
+BuildRequires: perl(JSON::PP)
BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Most)
+BuildRequires: perl(Test::FailWarnings)
+BuildRequires: perl(Test::NoWarnings)
+# Runtime
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+BuildRequires: perl(Data::Dump)
BuildRequires: perl(YAML)
-BuildRequires: perl(Module::Build)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-%{?perl_default_filter}
%description
The HTTP::BrowserDetect object does a number of tests on an HTTP user agent
@@ -26,17 +38,20 @@ at http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
%prep
%setup -q -n HTTP-BrowserDetect-%{version}
+# Recode documentation as UTF-8
+%patch0
+
+# Remove spurious exec permission
+chmod -c -x lib/HTTP/BrowserDetect.pm
+
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
-
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} $RPM_BUILD_ROOT
%check
./Build test
@@ -45,12 +60,23 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root,-)
-%doc Changes LICENSE README TODO
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes CONTRIBUTORS LICENSE README TODO
+%{perl_vendorlib}/HTTP/
+%{_mandir}/man3/HTTP::BrowserDetect.3pm*
%changelog
+* Fri Oct 4 2013 Paul Howarth <paul at city-fan.org> - 1.61-1
+- Update to 1.61 (see Changes for details)
+- Specify all dependencies
+- Package CONTRIBUTORS file
+- Recode documentation as UTF-8
+- Remove spurious exec permission from perl module file
+- Drop %%defattr, redundant since rpm 4.4
+- Make %%files list more explicit
+- Drop redundant %%{?perl_default_filter}
+- Don't need to remove empty directories from the buildroot
+- Don't use macros for commands
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.21-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@@ -83,7 +109,7 @@ rm -rf $RPM_BUILD_ROOT
add BR YAML.
* Fri Dec 17 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.10-3
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
* Wed May 19 2010 Chris Weyl <cweyl at alumni.drew.edu> 1.10-2
- bump
diff --git a/sources b/sources
index 88209c2..b8201b2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-892afec8e383c46d3da36cad545d86e9 HTTP-BrowserDetect-1.21.tar.gz
+4364dacdebe63b9bc678e6f2360bd9b5 HTTP-BrowserDetect-1.61.tar.gz
More information about the scm-commits
mailing list