3 # one test is completly broken
4 %bcond_with tests # do perform "make test"
6 %include /usr/lib/rpm/macros.perl
8 %define pnam MagicSquare
9 Summary: Math::MagicSquare Perl module - magic square checker
10 Summary(pl.UTF-8): Moduł Perla Math::MagicSquare - sprawdzanie kwadratów magicznych
11 Name: perl-Math-MagicSquare
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: c9d5b59f9c3a9a8419dc92b02b14d698
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The first purpose of this Perl module is to help you to check your
26 Square. Is it a Semimagic Square? Is it a Magic Square?
28 The second purpose of this Perl module is to help you to print your
29 Square. At the moment the method available is 'print' that prints the
30 square on STDOUT and 'printhtml' that prints the square in HTML
33 The third purpose of this Perl module is to help you to manipulate
34 your Square. At the moment the available methods are 'rotation' that
35 rotates your Square of 90 degree clockwise and 'reflection' that
38 %description -l pl.UTF-8
39 Pierwszym celem tego modułu Perla jest pomoc przy sprawdzaniu
40 kwadratów. Czy kwadrat jest semimagiczny? Czy jest magiczny?
42 Drugim celem jest pomoc przy wypisywaniu kwadratów. Aktualnie jest
43 dostępna metoda 'print' wypisująca kwadrat na standardowe wyjście oraz
44 metoda 'printhtml' wypisująca w formacie HTML.
46 Trzecim celem tego modułu jest pomoc przy modyfikowaniu kwadratu.
47 Aktualnie dostępna jest metoda 'rotation' obracająca kwadrat o 90
48 stopni zgodnie z kierunkiem ruchu wskazówek zegara oraz metoda
49 'reflection' dokonująca odbicia lustrzanego kwadratu.
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
64 DESTDIR=$RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc README TODO HISTORY
72 %{perl_vendorlib}/%{pdir}/%{pnam}.pm