]> git.pld-linux.org Git - packages/perl-LWP-Online.git/commitdiff
new, version 1.08 auto/th/perl-LWP-Online-1.08-1
authorElan Ruusamäe <glen@delfi.ee>
Sat, 20 Apr 2013 19:09:38 +0000 (22:09 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 20 Apr 2013 19:09:38 +0000 (22:09 +0300)
created with pldcpan

perl-LWP-Online.spec [new file with mode: 0644]

diff --git a/perl-LWP-Online.spec b/perl-LWP-Online.spec
new file mode 100644 (file)
index 0000000..55b70cf
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+
+%define                pdir    LWP
+%define                pnam    Online
+%include       /usr/lib/rpm/macros.perl
+Summary:       LWP::Online - Does your process have access to the web
+Name:          perl-LWP-Online
+Version:       1.08
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/LWP/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 20e25b3af8b84a493c730249c2a9c50d
+URL:           http://search.cpan.org/dist/LWP-Online/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-URI >= 1.35
+BuildRequires: perl-libwww >= 5.805
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module attempts to answer, as accurately as it can, one of the
+nastiest technical questions there is.
+
+Am I on the internet?
+
+The answer is useful in a wide range of decisions. For example...
+
+Should my test scripts run the online portion of the tests or just
+skip them?
+
+Do I try to fetch fresh data from the server?
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/LWP/Online.pm
+%{_mandir}/man3/LWP::Online.3pm*
This page took 0.063824 seconds and 4 git commands to generate.