[packages/perl-Test-CPAN-Meta] - initial

arekm arekm at pld-linux.org
Sun Jun 14 12:16:57 CEST 2015


commit ea8606e0f139c2309137f3f5c7783326e0714455
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Jun 14 12:16:44 2015 +0200

    - initial

 perl-Test-CPAN-Meta.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/perl-Test-CPAN-Meta.spec b/perl-Test-CPAN-Meta.spec
new file mode 100644
index 0000000..dddf0e8
--- /dev/null
+++ b/perl-Test-CPAN-Meta.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Test
+%define		pnam	CPAN-Meta
+%include	/usr/lib/rpm/macros.perl
+Summary:	Test::CPAN::Meta - Validate your CPAN META.yml files.
+Name:		perl-Test-CPAN-Meta
+Version:	0.25
+Release:	1
+License:	artistic_2
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	d1582df35cc1e8875357702c687ed22f
+URL:		http://search.cpan.org/dist/Test-CPAN-Meta/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This distribution was written to ensure that a META.yml file, provided with a
+standard distribution uploaded to CPAN, meets the specifications that are
+slowly being introduced to module uploads, via the use of package makers and
+installers such as ExtUtils::MakeMaker, Module::Build and
+Module::Install.
+
+See CPAN::Meta for further details of the CPAN Meta Specification.
+
+%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
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL README
+%{perl_vendorlib}/Test/CPAN/*.pm
+%{perl_vendorlib}/Test/CPAN/Meta
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-CPAN-Meta.git/commitdiff/ea8606e0f139c2309137f3f5c7783326e0714455



More information about the pld-cvs-commit mailing list