1 %include /usr/lib/rpm/macros.php
3 %define _subclass Fraction
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - Classes that represent and manipulate fractions
8 Summary(pl): %{_pearname} - Klasy do przedstawiania i manipulowania u³amkami
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 2c1f57a50db75f7e489fbd0166cb4cf6
16 URL: http://pear.php.net/package/Math_Fraction/
17 BuildRequires: php-pear-PEAR
18 BuildRequires: rpm-php-pearprov >= 4.4.2-11
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Classes that represent and manipulate fractions (x = a/b).
26 The Math_FractionOp static class contains definitions for:
27 - basic arithmetic operations,
28 - comparing fractions,
29 - greatest common divisor (gcd) and least common multiple (lcm) of two
31 - simplifying (reducing) and getting the reciprocal of a fraction,
32 - converting a float to fraction.
34 In PEAR status of this package is: %{_status}.
37 Klasy do przedstawiania i manipulowania u³amkami (x = a/b).
39 Statyczna klasa Math_FractionOp zawiera definicje dla:
40 - podstawowych operacji arytmetycznych,
41 - porównywania u³amków,
42 - najwiêkszego wspólnego dzielnika (NWD) i najmniejszej wspólnej
43 wielokrotno¶ci (NWM) dwóch liczb,
44 - upraszczanie (skracanie) i obliczanie odwrotno¶ci u³amka,
45 - konwersja liczby na u³amek.
47 Ta klasa ma w PEAR status: %{_status}.
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_pear_dir}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %doc docs/%{_pearname}/docs/*
64 %{php_pear_dir}/.registry/*.reg
65 %{php_pear_dir}/%{_class}/*.php