3 %bcond_without tests # do not perform "make test"
6 %define pnam Superpositions
7 Summary: Quantum::Superpositions - QM-like superpositions in Perl
8 Summary(pl.UTF-8): Quantum::Superpositions - superpozycje z mechaniki kwantowej w Perlu
9 Name: perl-Quantum-Superpositions
12 # same as perl (5.6.1 or later)
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 40a3a398ca24be6de510667d92c02f5e
17 URL: http://search.cpan.org/dist/Quantum-Superpositions/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Class-Multimethods
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Quantum::Superpositions provides a new scalar data structure: the
28 superposition. In a metaphor drawn from quantum mechanics,
29 superpositions store a collection of values by overlaying them in
30 parallel superimposed states within a single scalar variable.
32 The Quantum::Superpositions module adds two new operators to Perl: any
35 %description -l pl.UTF-8
36 Moduł Quantum::Superpositions udostępnia nową strukturę danych
37 skalarnych: superpozycję. Jest to metafora pochodząca z mechaniki
38 kwantowej - superpozycje przechowują zestaw zmiennych poprzez
39 nakładanie ich w równolegle złożonych stanach w pojedynczej zmiennej
42 Moduł Quantum::Superpositions dodaje dwa nowe operatory do Perla: any
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/%{pdir}/*.pm