SPECS: perl-Test-Perl-Critic.spec (NEW) - new

qboosh qboosh at pld-linux.org
Fri Dec 22 16:59:29 CET 2006


Author: qboosh                       Date: Fri Dec 22 15:59:29 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-Test-Perl-Critic.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Test-Perl-Critic.spec
diff -u /dev/null SPECS/perl-Test-Perl-Critic.spec:1.1
--- /dev/null	Fri Dec 22 16:59:29 2006
+++ SPECS/perl-Test-Perl-Critic.spec	Fri Dec 22 16:59:24 2006
@@ -0,0 +1,74 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Test
+%define	pnam	Perl-Critic
+Summary:	Test::Perl::Critic - Use Perl::Critic in test programs
+Summary(pl):	Test::Perl::Critic - użycie Perl::Critic w programach testowych
+Name:		perl-Test-Perl-Critic
+Version:	0.08
+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:	358946b1ca7bca56ea8b6ce77bdd4033
+URL:		http://search.cpan.org/dist/Test-Perl-Critic/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Perl-Critic >= 0.21
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::Perl::Critic wraps the Perl::Critic engine in a convenient
+subroutine suitable for test programs written using the Test::More
+framework. This makes it easy to integrate coding-standards
+enforcement into the build process. For ultimate convenience (at the
+expense of some flexibility), see the criticism pragma.
+
+%description -l pl
+Test::Perl::Critic obudowuje silnik Perl::Critic w wygodną procedurę
+pasującą do programów testowych pisanych z użyciem szkieletu
+Test::More. Ułatwia to integrację wymuszania standardów kodowania w
+proces budowania. Dla ostatecznej wygody (kosztem części
+elastyczności) użyć pragma criticism.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Test/Perl/Critic.pm
+%{_mandir}/man3/Test::Perl::Critic.3*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/12/22 15:59:24  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list