[packages/perl-Test-File-ShareDir] - new

qboosh qboosh at pld-linux.org
Wed Oct 3 20:49:41 CEST 2018


commit a728f69aadf86d686a7449d045a778492b417e76
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 3 20:52:50 2018 +0200

    - new

 perl-Test-File-ShareDir.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
---
diff --git a/perl-Test-File-ShareDir.spec b/perl-Test-File-ShareDir.spec
new file mode 100644
index 0000000..4e9f990
--- /dev/null
+++ b/perl-Test-File-ShareDir.spec
@@ -0,0 +1,74 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Test
+%define		pnam	File-ShareDir
+%include	/usr/lib/rpm/macros.perl
+Summary:	Test::File::ShareDir - Create a Fake ShareDir for your modules for testing
+Summary(pl.UTF-8):	Test::File::ShareDir - tworzenie udawanego ShareDir do testowania modułów
+Name:		perl-Test-File-ShareDir
+Version:	1.001002
+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:	ec31466aa44c1cd56c6cb51d7ec3a5de
+URL:		https://metacpan.org/release/Test-File-ShareDir
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Class-Tiny
+BuildRequires:	perl-File-Copy-Recursive
+BuildRequires:	perl-File-ShareDir >= 1.00
+BuildRequires:	perl-Path-Tiny >= 0.018
+BuildRequires:	perl-Scope-Guard
+BuildRequires:	perl-Test-Fatal
+BuildRequires:	perl-Test-Simple >= 0.96
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::File::ShareDir is some low level plumbing to enable a
+distribution to perform tests while consuming its own share
+directories in a manner similar to how they will be once installed.
+
+This allows File::ShareDir to see the latest version of content
+instead of simply whatever is installed on whichever target system you
+happen to be testing on.
+
+%description -l pl.UTF-8
+Test::File::ShareDir to niskopoziomowa łata pozwalająca na wykonywanie
+w dystrybucji testów z użyciem własnych katalogów "share" w sposób
+podobny jak po ich instalacji.
+
+Pozwala to modułowi File::ShareDir zobaczyć najnowszą wersję
+zawartości zamiast istniejącej w docelowym systemie w trakcie testów.
+
+%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/File/ShareDir.pm
+%{perl_vendorlib}/Test/File/ShareDir
+%{_mandir}/man3/Test::File::ShareDir*.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-File-ShareDir.git/commitdiff/a728f69aadf86d686a7449d045a778492b417e76



More information about the pld-cvs-commit mailing list