]>
Commit | Line | Data |
---|---|---|
d37d7f3e JB |
1 | # |
2 | # Conditional build: | |
8823dce7 | 3 | %bcond_without tests # do not perform "make test" |
f8595467 | 4 | |
d664576f | 5 | %define pdir Math |
6 | %define pnam SimpleVariable | |
f8595467 | 7 | %include /usr/lib/rpm/macros.perl |
d37d7f3e | 8 | Summary: Math::SimpleVariable - simple representation of mathematical variables |
bbeff5df | 9 | Summary(pl.UTF-8): Math::SimpleVariable - prosta reprezentacja zmiennych matematycznych |
d37d7f3e JB |
10 | Name: perl-Math-SimpleVariable |
11 | Version: 0.03 | |
86d02a35 | 12 | Release: 3 |
8a5fc3ba | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
d37d7f3e | 15 | Group: Development/Languages/Perl |
8b364375 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
e95a1420 | 17 | # Source0-md5: 0b7b45d71edab401e7aa64a0ad292eed |
f8595467 | 18 | URL: http://search.cpan.org/dist/Math-SimpleVariable/ |
4ab03191 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
b617bb72 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
d37d7f3e JB |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Math::SimpleVariable is a simple representation of mathematical | |
26 | variables, with an obligatory name and an optional value. This class | |
27 | on itself might not seem very useful at first sight, but you might | |
28 | want to derive different types of variables for some application. That | |
29 | way, objects of the derived variable class can be accessed | |
30 | interchangeably with the here provided protocols. | |
31 | ||
7d4a1f37 | 32 | %description -l pl.UTF-8 |
d37d7f3e | 33 | Math::SimpleVariable to prosta reprezentacja zmiennych matematycznych, |
7d4a1f37 JR |
34 | z obowiązkową nazwą i opcjonalną wartością. Ta klasa sama w sobie może |
35 | nie wydawać się zbyt przydatna, ale można z niej wyprowadzić różne | |
36 | typy zmiennych dla aplikacji. W ten sposób, do obiektów tych nowych | |
37 | klas można odwoływać się przy pomocy udostępnionych przez ten moduł | |
38 | protokołów. | |
d37d7f3e JB |
39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
b617bb72 | 44 | %{__perl} Makefile.PL \ |
1f229a6d | 45 | INSTALLDIRS=vendor |
d37d7f3e JB |
46 | %{__make} |
47 | ||
8823dce7 | 48 | %{?with_tests:%{__make} test} |
d37d7f3e JB |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
b617bb72 | 62 | %{perl_vendorlib}/Math/SimpleVariable.pm |
d37d7f3e | 63 | %{_mandir}/man3/* |