forked from pool/perl-HTTP-BrowserDetect
Accepting request 556863 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/556863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTTP-BrowserDetect?expand=0&rev=20
This commit is contained in:
committed by
Git OBS Bridge
parent
89c82929a9
commit
b4cea60dbd
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTTP-BrowserDetect
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,21 +17,20 @@
|
||||
|
||||
|
||||
Name: perl-HTTP-BrowserDetect
|
||||
Version: 3.14
|
||||
Version: 3.15
|
||||
Release: 0
|
||||
%define cpan_name HTTP-BrowserDetect
|
||||
Summary: Determine Web browser, version, and platform from an HTTP user agent string
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/HTTP-BrowserDetect/
|
||||
Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(JSON::PP)
|
||||
BuildRequires: perl(Module::Build) >= 0.280000
|
||||
BuildRequires: perl(Path::Tiny)
|
||||
BuildRequires: perl(Test::FailWarnings)
|
||||
BuildRequires: perl(Test::Most)
|
||||
@@ -42,6 +41,9 @@ BuildRequires: perl(Test::NoWarnings)
|
||||
The HTTP::BrowserDetect object does a number of tests on an HTTP user agent
|
||||
string. The results of these tests are available via methods of the object.
|
||||
|
||||
For an online demonstration of this module's parsing, you can check out
|
||||
http://www.browserdetect.org/
|
||||
|
||||
This module was originally based upon the JavaScript browser detection code
|
||||
available at
|
||||
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
|
||||
@@ -51,18 +53,20 @@ http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
|
||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes CONTRIBUTORS LICENSE TODO
|
||||
%doc Changes CONTRIBUTORS README.md TODO
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user