]> git.pld-linux.org Git - SPECS.git/blob - perl-Weather-Underground.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / perl-Weather-Underground.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # Do not perform "make test"
4 #
5 %define         pdir    Weather
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
10 Version:        3.03
11 Release:        2
12 # same as perl
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)
23
24 %description
25 Perl extension for retrieving weather information from
26 wunderground.com.
27
28 %description -l pl.UTF-8
29 Rozszerzenie Perla do odbierania informacji pogodowych z
30 wunderground.com.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make} \
39         CC="%{__cc}" \
40         OPTIMIZE="%{rpmcflags}"
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes
56 %{perl_vendorlib}/Weather
57 %{_mandir}/man3/*
This page took 0.348181 seconds and 3 git commands to generate.