2011-05-01 10:36:07 +00:00
|
|
|
#
|
2013-07-19 14:50:19 +00:00
|
|
|
# spec file for package perl-HTTP-BrowserDetect
|
2011-05-01 10:36:07 +00:00
|
|
|
#
|
2015-04-15 09:16:32 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-01 10:36:07 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-07-19 14:50:19 +00:00
|
|
|
|
|
|
|
Name: perl-HTTP-BrowserDetect
|
2015-06-27 18:39:13 +00:00
|
|
|
Version: 2.04
|
2013-07-19 14:50:19 +00:00
|
|
|
Release: 0
|
2015-04-15 09:16:32 +00:00
|
|
|
%define cpan_name HTTP-BrowserDetect
|
2011-05-01 10:36:07 +00:00
|
|
|
Summary: Determine Web browser, version, and platform from an HTTP user agent string
|
2015-04-15 09:16:32 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-05-01 10:36:07 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-07-19 14:50:19 +00:00
|
|
|
Url: http://search.cpan.org/dist/HTTP-BrowserDetect/
|
2015-04-25 07:59:04 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2011-05-01 10:36:07 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-07-25 09:23:32 +00:00
|
|
|
BuildRequires: perl(JSON::PP)
|
2015-04-25 07:59:04 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
2015-04-15 09:16:32 +00:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2013-07-19 14:50:19 +00:00
|
|
|
BuildRequires: perl(Test::FailWarnings)
|
|
|
|
BuildRequires: perl(Test::Most)
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2011-05-01 10:36:07 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2015-04-15 09:16:32 +00:00
|
|
|
This module was originally based upon the JavaScript browser detection code
|
|
|
|
available at the
|
|
|
|
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
|
|
|
|
manpage.
|
2011-05-01 10:36:07 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2015-04-15 09:16:32 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2011-05-01 10:36:07 +00:00
|
|
|
|
|
|
|
%build
|
2015-04-15 09:16:32 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2013-07-19 14:50:19 +00:00
|
|
|
|
2011-05-01 10:36:07 +00:00
|
|
|
%check
|
2015-04-15 09:16:32 +00:00
|
|
|
./Build test
|
2011-05-01 10:36:07 +00:00
|
|
|
|
|
|
|
%install
|
2015-04-15 09:16:32 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2011-05-01 10:36:07 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2015-04-15 09:16:32 +00:00
|
|
|
%doc Changes CONTRIBUTORS LICENSE README TODO
|
2011-05-01 10:36:07 +00:00
|
|
|
|
|
|
|
%changelog
|