]> git.pld-linux.org Git - packages/perl-Math-MagicSquare-Generator.git/blame - perl-Math-MagicSquare-Generator.spec
use generic url
[packages/perl-Math-MagicSquare-Generator.git] / perl-Math-MagicSquare-Generator.spec
CommitLineData
7346acb5
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4bb0abe4 4
9892ce93 5%define pdir Math
6%define pnam MagicSquare-Generator
4bb0abe4 7%include /usr/lib/rpm/macros.perl
7346acb5 8Summary: Math::MagicSquare::Generator - Magic Square generator
dac40e5e 9Summary(pl.UTF-8): Math::MagicSquare::Generator - generator kwadratów magicznych
7346acb5
JB
10Name: perl-Math-MagicSquare-Generator
11Version: 0.01
48c6ce60 12Release: 2
90a8eaeb 13License: Public Domain
7346acb5
JB
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 408501cf0474f95234eb1bfdb4832d42
4bb0abe4 17URL: http://search.cpan.org/dist/Math-MagicSquare-Generator/
dc7b5a50 18BuildRequires: perl-devel >= 1:5.8.0
7346acb5
JB
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This module creates magic squares. A magic square is a square in which
25all numbers are different and the sums of all rows, all columns and
26the two diagonals are equal.
27
28Math::MagicSquare::Generator cannot create panmagic squares, or
29squares that have an even size. (A panmagic square is magic square
30where the "wrapped" diagonals are also equal.)
31
0f9e3824
JR
32%description -l pl.UTF-8
33Ten moduł tworzy kwadraty magiczne. Kwadrat magiczny to kwadrat, w
4bb0abe4
ER
34którym wszystkie liczby są różne, a sumy we wszystkich wierszach, we
35wszystkich kolumnach i na dwóch przekątnych są równe.
7346acb5 36
0f9e3824
JR
37Math::MagicSquare::Generator nie potrafi tworzyć kwadratów
38panmagicznych ani kwadratów o parzystym rozmiarze (kwadrat panmagiczny
39to kwadrat magiczny, w którym sumy na "zawiniętych" przekątnych są
40także równe).
7346acb5
JB
41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
46%{__perl} Makefile.PL \
47 INSTALLDIRS=vendor
48
49%{__make}
50
51%{?with_tests:%{__make} test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes README
65%dir %{perl_vendorlib}/Math/MagicSquare
66%{perl_vendorlib}/Math/MagicSquare/Generator.pm
67%{_mandir}/man3/*
This page took 0.073834 seconds and 4 git commands to generate.