3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: LWP::Online - Does your process have access to the web
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/LWP/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 20e25b3af8b84a493c730249c2a9c50d
17 URL: http://search.cpan.org/dist/LWP-Online/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-URI >= 1.35
22 BuildRequires: perl-libwww >= 5.805
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module attempts to answer, as accurately as it can, one of the
29 nastiest technical questions there is.
33 The answer is useful in a wide range of decisions. For example...
35 Should my test scripts run the online portion of the tests or just
38 Do I try to fetch fresh data from the server?
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/LWP/Online.pm
63 %{_mandir}/man3/LWP::Online.3pm*