%global pkg_name Quantum-Superpositions %global pkg_version 2.02 %global rpm_pkg_version 2.02 %global rpm_pkg_release 1.n0i.1 Summary: Conjunctive & Disjunctive logic for Perl5 Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/Quantum/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Class::Multimethods) %description Quantum::Superpositions adds two new operators to Perl: "any" and "all". Each of these operators takes a list of values (states) and superimposes them into a single scalar value (a superposition), which can then be stored in a standard scalar variable. The "any" and "all" operators produce two distinct kinds of superposition. The "any" operator produces a disjunctive superposition, which may (notionally) be in any one of its states at any time, according to the needs of the algorithm that uses it. In contrast, the "all" operator creates a conjunctive superposition, which is always in every one of its states simultaneously. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path demo/} %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,-) %doc Changes demo/ %{perl_files} %changelog * Sun Oct 21 2007 Marius Feraru - 2.02-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - version 2.02