]>
Commit | Line | Data |
---|---|---|
8c2e60f4 | 1 | # |
2 | # Conditional build: | |
08f9538b | 3 | %bcond_without tests # do not perform "make test" |
0fcf9ed0 | 4 | |
0f240fa5 | 5 | %define pdir Quantum |
6 | %define pnam Superpositions | |
8c2e60f4 | 7 | Summary: Quantum::Superpositions - QM-like superpositions in Perl |
295205e1 | 8 | Summary(pl.UTF-8): Quantum::Superpositions - superpozycje z mechaniki kwantowej w Perlu |
8c2e60f4 | 9 | Name: perl-Quantum-Superpositions |
cd8d0092 | 10 | Version: 2.02 |
7fe597a8 | 11 | Release: 2 |
08f9538b | 12 | # same as perl (5.6.1 or later) |
13 | License: GPL v1+ or Artistic | |
8c2e60f4 | 14 | Group: Development/Languages/Perl |
33f33811 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
cd8d0092 | 16 | # Source0-md5: 40a3a398ca24be6de510667d92c02f5e |
0fcf9ed0 | 17 | URL: http://search.cpan.org/dist/Quantum-Superpositions/ |
2a6f2d4e | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
0fcf9ed0 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
08f9538b | 20 | %if %{with tests} |
8c2e60f4 | 21 | BuildRequires: perl-Class-Multimethods |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Quantum::Superpositions provides a new scalar data structure: the | |
4843be9e JB |
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. | |
8c2e60f4 | 31 | |
0fcf9ed0 ER |
32 | The Quantum::Superpositions module adds two new operators to Perl: any |
33 | and all. | |
8c2e60f4 | 34 | |
103df81c JR |
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 | |
4843be9e JB |
40 | skalarnej. |
41 | ||
103df81c | 42 | Moduł Quantum::Superpositions dodaje dwa nowe operatory do Perla: any |
4843be9e | 43 | i all. |
8c2e60f4 | 44 | |
45 | %prep | |
46 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
47 | ||
48 | %build | |
cd8d0092 JB |
49 | %{__perl} Makefile.PL \ |
50 | INSTALLDIRS=vendor | |
8c2e60f4 | 51 | %{__make} |
52 | ||
08f9538b | 53 | %{?with_tests:%{__make} test} |
8c2e60f4 | 54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
08f9538b | 58 | %{__make} install \ |
59 | DESTDIR=$RPM_BUILD_ROOT | |
8c2e60f4 | 60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc Change* | |
cd8d0092 | 67 | %{perl_vendorlib}/%{pdir}/*.pm |
8c2e60f4 | 68 | %{_mandir}/man3/* |