]> git.pld-linux.org Git - packages/perl-Test-YAML.git/commitdiff
initial version auto/th/perl-Test-YAML-1.05-1
authorSzymon Siwek <sls@pld-linux.org>
Mon, 15 Sep 2014 09:20:53 +0000 (11:20 +0200)
committerSzymon Siwek <sls@pld-linux.org>
Mon, 15 Sep 2014 09:20:53 +0000 (11:20 +0200)
perl-Test-YAML.spec [new file with mode: 0644]

diff --git a/perl-Test-YAML.spec b/perl-Test-YAML.spec
new file mode 100644 (file)
index 0000000..baa709a
--- /dev/null
@@ -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/*
This page took 0.122703 seconds and 4 git commands to generate.