Author: qboosh Date: Fri Dec 22 15:52:10 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: perl-Perl-Critic.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Perl-Critic.spec diff -u /dev/null SPECS/perl-Perl-Critic.spec:1.1 --- /dev/null Fri Dec 22 16:52:10 2006 +++ SPECS/perl-Perl-Critic.spec Fri Dec 22 16:52:05 2006 @@ -0,0 +1,100 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Perl +%define pnam Critic +Summary: Perl::Critic - Critique Perl source code for best-practices +Summary(pl): Perl::Critic - krytyka kodu źródłowego w Perla pod kątem najlepszych praktyk +Name: perl-Perl-Critic +Version: 0.22 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/Perl/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 8c4a32c603916a82c106804659bb7518 +URL: http://search.cpan.org/dist/Perl-Critic/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-Config-Tiny >= 2 +BuildRequires: perl-IO-String +BuildRequires: perl-List-MoreUtils +BuildRequires: perl-Module-Pluggable >= 3.1 +BuildRequires: perl-PPI >= 1.118 +BuildRequires: perl-Set-Scalar >= 1.20 +BuildRequires: perl-String-Format >= 1.13 +%endif +Requires: perl-Config-Tiny >= 2 +Requires: perl-Module-Pluggable >= 3.1 +Requires: perl-PPI >= 1.118 +Requires: perl-Set-Scalar >= 1.20 +Requires: perl-String-Format >= 1.13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Perl::Critic is an extensible framework for creating and applying +coding standards to Perl source code. Essentially, it is a static +source code analysis engine. Perl::Critic is distributed with a +number of Perl::Critic::Policy modules that attempt to enforce +various coding guidelines. Most Policy modules are based on Damian +Conway's book Perl Best Practices. However, Perl::Critic is not +limited to PBP and will even support Policies that contradict Conway. +You can enable, disable, and customize those Polices through the +Perl::Critic interface. You can also create new Policy modules that +suit your own tastes. + +%description -l pl +Perl::Critic to rozszerzalny szkielet do tworzenia i nanoszenia +standardów kodowania dla kodu źródłowego w Perlu. Zasadniczo jest to +statyczny silnik do analizy kodu źródłowego. Perl::Critic jest +rozpowszechniany z wieloma modułami Perl::Critic::Policy, próbującymi +wymusić różne wskazania dotyczące kodowania. Większość modułów Policy +jest oparta na książce "Perl Best Practices" Damiana Conwaya. Jednak +Perl::Critic nie jest ograniczony do PDB i będzie obsługiwał polityki +nawet niezgodne z Conwayem. Poprzez interfejs Perl::Critic można +włączać, wyłączać i dostrajać polityki. Można także tworzyć nowe +moduły Policy odpowiadające własnym gustom. + +%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 + +rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Perl/Critic/*.pod + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes extras +%attr(755,root,root) %{_bindir}/perlcritic +%{perl_vendorlib}/Perl/Critic.pm +%{perl_vendorlib}/Perl/Critic +%{_mandir}/man1/perlcritic.1* +%{_mandir}/man3/Perl::Critic* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/12/22 15:52:05 qboosh +- new ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
