%define pkg_name Test-Kwalitee %define pkg_version 0.30 %define rpm_pkg_version 0.30 %define rpm_pkg_release 2.n0i.2 Summary: Test the Kwalitee of a distribution before you release it Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Module::CPANTS::Analyse) >= 0.50} %{!?_without_test:BuildRequires: perl(Test::Simple) >= 0.47} %description Kwalitee is an automatically-measurable gauge of how good your software is. That's very different from quality, which a computer really can't measure in a general sense. (If you can, you've solved a hard problem in computer science.) In the world of the CPAN, the CPANTS project (CPAN Testing Service; also a funny acronym on its own) measures Kwalitee with several metrics. If you plan to release a distribution to the CPAN -- or even within your own organization -- testing its Kwalitee before creating a release can help you improve your quality as well. "Test::Kwalitee" and a short test file will do this for you automatically. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{__rm} -f t/0-signature.t %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc ChangeLog README %changelog * Tue May 22 2007 Marius Feraru - 0.30-2.n0i.2 - rebuild * Sun Apr 09 2006 Marius Feraru 0.30-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.0 - rebuild on perl 5.8.8