[packages/perl-Test-YAML] initial version
sls
sls at pld-linux.org
Mon Sep 15 11:24:58 CEST 2014
commit b8cdb693d52d7c36d324f1b83d5636ede91cf5cd
Author: Szymon Siwek <sls at pld-linux.org>
Date: Mon Sep 15 11:20:53 2014 +0200
initial version
perl-Test-YAML.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
---
diff --git a/perl-Test-YAML.spec b/perl-Test-YAML.spec
new file mode 100644
index 0000000..baa709a
--- /dev/null
+++ b/perl-Test-YAML.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Test
+%define pnam YAML
+%include /usr/lib/rpm/macros.perl
+Summary: Test::YAML - Testing Module for YAML Implementations
+#Summary(pl.UTF-8):
+Name: perl-Test-YAML
+Version: 1.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: 3ff2666f885568d14b3f4500426cee02
+URL: http://search.cpan.org/dist/Test-YAML/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Test::Base) >= 0.86
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::YAML is a subclass of Test::Base with YAML specific support.
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%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
+
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Test/YAML.pod
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/test-yaml
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Test/*.pm
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-YAML.git/commitdiff/b8cdb693d52d7c36d324f1b83d5636ede91cf5cd
More information about the pld-cvs-commit
mailing list