]> git.pld-linux.org Git - packages/perl-WWW-Dilbert.git/blame - perl-WWW-Dilbert.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-WWW-Dilbert.git] / perl-WWW-Dilbert.spec
CommitLineData
fc3d7056 1#
2# Conditional build:
3%bcond_without autodeps # don't BR packages needed only for resolving deps
4%bcond_with tests # perform "make test" (uses network)
5#
fc3d7056 6%define pdir WWW
7%define pnam Dilbert
8Summary: WWW::Dilbert - Retrieve Dilbert of the day comic strip images
0e3ee37d 9Summary(pl.UTF-8): WWW::Dilbert - pobieranie aktualnej strony komiksu "Dilbert of the day"
fc3d7056 10Name: perl-WWW-Dilbert
11Version: 1.19
12Release: 1
13License: Apache v2.0
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 6f1725fde846c27b7a38ca4ea3ed3182
17URL: http://search.cpan.org/dist/WWW-Dilbert/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with autodeps} || %{with tests}
fc3d7056 21BuildRequires: perl-Test-Pod
22BuildRequires: perl-Test-Pod-Coverage
0e3ee37d 23BuildRequires: perl-libwww
fc3d7056 24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This module will download the latest Dilbert of the Day cartoon strip
30from the Dilbert website and return a binary blob of the image, or
31write it to disk.
32
0e3ee37d
JB
33%description -l pl.UTF-8
34Ten moduł ściąga ostatnią stronę komiksu "Dilbert of the Day" ze
35strony WWW Dilberta i zwraca ją w postaci binarnej lub zapisuje na
36dysk.
fc3d7056 37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42AUTOMATED_TESTING=1
43export AUTOMATED_TESTING
44%{__perl} Build.PL \
45 destdir=$RPM_BUILD_ROOT \
46 installdirs=vendor
47./Build
48
49%{?with_tests:./Build test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54./Build install
55
56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes INSTALL TODO
65%{perl_vendorlib}/WWW/*.pm
66%{_mandir}/man3/*
67%{_examplesdir}/%{name}-%{version}
This page took 0.044322 seconds and 4 git commands to generate.