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.UTF-8): %{_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
19 BuildRequires: rpmbuild(macros) >= 1.300
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Classes that represent and manipulate fractions (x = a/b).
27 The Math_FractionOp static class contains definitions for:
28 - basic arithmetic operations,
29 - comparing fractions,
30 - greatest common divisor (gcd) and least common multiple (lcm) of two
32 - simplifying (reducing) and getting the reciprocal of a fraction,
33 - converting a float to fraction.
35 In PEAR status of this package is: %{_status}.
37 %description -l pl.UTF-8
38 Klasy do przedstawiania i manipulowania ułamkami (x = a/b).
40 Statyczna klasa Math_FractionOp zawiera definicje dla:
41 - podstawowych operacji arytmetycznych,
42 - porównywania ułamków,
43 - największego wspólnego dzielnika (NWD) i najmniejszej wspólnej
44 wielokrotności (NWM) dwóch liczb,
45 - upraszczanie (skracanie) i obliczanie odwrotności ułamka,
46 - konwersja liczby na ułamek.
48 Ta klasa ma w PEAR status: %{_status}.
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{php_pear_dir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %doc docs/%{_pearname}/docs/*
65 %{php_pear_dir}/.registry/*.reg
66 %{php_pear_dir}/%{_class}/*.php