3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam SimpleVariable
8 Summary: Math::SimpleVariable - simple representation of mathematical variables
9 Summary(pl.UTF-8): Math::SimpleVariable - prosta reprezentacja zmiennych matematycznych
10 Name: perl-Math-SimpleVariable
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 0b7b45d71edab401e7aa64a0ad292eed
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Math::SimpleVariable is a simple representation of mathematical
25 variables, with an obligatory name and an optional value. This class
26 on itself might not seem very useful at first sight, but you might
27 want to derive different types of variables for some application. That
28 way, objects of the derived variable class can be accessed
29 interchangeably with the here provided protocols.
31 %description -l pl.UTF-8
32 Math::SimpleVariable to prosta reprezentacja zmiennych matematycznych,
33 z obowiązkową nazwą i opcjonalną wartością. Ta klasa sama w sobie może
34 nie wydawać się zbyt przydatna, ale można z niej wyprowadzić różne
35 typy zmiennych dla aplikacji. W ten sposób, do obiektów tych nowych
36 klas można odwoływać się przy pomocy udostępnionych przez ten moduł
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Math/SimpleVariable.pm