[packages/perl-Test-RequiresInternet] - new
qboosh
qboosh at pld-linux.org
Tue Oct 2 18:20:47 CEST 2018
commit d74213f5e4f8af36806a95c826dc23c5403554da
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Oct 2 18:24:00 2018 +0200
- new
perl-Test-RequiresInternet.spec | 60 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/perl-Test-RequiresInternet.spec b/perl-Test-RequiresInternet.spec
new file mode 100644
index 0000000..05e8d2f
--- /dev/null
+++ b/perl-Test-RequiresInternet.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Test
+%define pnam RequiresInternet
+%include /usr/lib/rpm/macros.perl
+Summary: Test::RequiresInternet - Easily test network connectivity
+Summary(pl.UTF-8): Test::RequiresInternet - łatwe sprawdzanie połączenia z siecią
+Name: perl-Test-RequiresInternet
+Version: 0.05
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 0ba9f1cff4cf90ed2618c2eddfd525d8
+URL: https://metacpan.org/release/Test-RequiresInternet/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is intended to easily test network connectivity before
+functional tests begin to non-local Internet resources. It does not
+require any modules beyond those supplied in core Perl.
+
+%description -l pl.UTF-8
+Ten moduł służy do łatwego sprawdzania połączenia z siecią przed
+testami funkcjonalnymi sięgającymi do zasobów internetowych. Moduł
+nie wymaga żadnych modułów nie dostarczanych wraz z dystrybucją Perla.
+
+%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}/Test/RequiresInternet.pm
+%{_mandir}/man3/Test::RequiresInternet.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-RequiresInternet.git/commitdiff/d74213f5e4f8af36806a95c826dc23c5403554da
More information about the pld-cvs-commit
mailing list