File perl-Weather-TW.spec of Package perl-Weather-TW
#
# spec file for package perl-Weather-TW
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: perl-Weather-TW
Version: 0.500002
Release: 0
%define cpan_name Weather-TW
Summary: Fetch Taiwan weather data from L<http://www.cwb.gov.tw/>
License: MIT
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Weather-TW/
Source: http://www.cpan.org/authors/id/D/DR/DRYMAN/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime) >= 0.7
BuildRequires: perl(HTML::Element)
BuildRequires: perl(HTML::TreeBuilder)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::Simple) >= 6
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Moose) >= 2.04
BuildRequires: perl(Test::More::UTF8)
BuildRequires: perl(XML::Smart)
BuildRequires: perl(YAML)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(parent)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Pod::Markdown)
#BuildRequires: perl(Weather::TW::Forecast)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(DateTime) >= 0.7
Requires: perl(HTML::Element)
Requires: perl(HTML::TreeBuilder)
Requires: perl(JSON)
Requires: perl(LWP::Simple) >= 6
Requires: perl(LWP::UserAgent)
Requires: perl(Moose) >= 2.04
Requires: perl(XML::Smart)
Requires: perl(YAML)
%{perl_requires}
%description
the Weather::TW::Forecast manpage reimplement the Weather::TW manpage with
new web address (from V6 to V7) and new parser (use the Mojo::DOM manpage
instead of the HTML::TreeBulder manpage). The methods in the Weather::TW
manpage will be deprecated and shiped to the Weather::TW::Forecast manpage.
More submodules will be develop to handle obsevations and detail rain
infos. the Weather::TW manpage will be a abstract class to access these
submodules.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc README.mkdn
%changelog