3 %bcond_without tests # Do not perform "make test"
6 %define pnam Underground
7 Summary: Perl extension for retrieving weather information
8 Summary(pl.UTF-8): Rozszerzenie Perla do odbierania informacji pogodowych
9 Name: perl-Weather-Underground
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: c86a4a807263db55ab30e44c98bcdcac
17 URL: http://search.cpan.org/dist/Weather-Underground/
18 BuildRequires: perl-HTML-TokeParser-Simple
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-libwww
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Perl extension for retrieving weather information from
28 %description -l pl.UTF-8
29 Rozszerzenie Perla do odbierania informacji pogodowych z
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Weather