]>
Commit | Line | Data |
---|---|---|
dfcfa053 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Math | |
3 | %define _subclass Fraction | |
e0a05db6 | 4 | %define _status beta |
dfcfa053 AG |
5 | %define _pearname %{_class}_%{_subclass} |
6 | ||
7 | Summary: %{_pearname} - Classes that represent and manipulate fractions | |
3859640c | 8 | Summary(pl.UTF-8): %{_pearname} - Klasy do przedstawiania i manipulowania ułamkami |
dfcfa053 | 9 | Name: php-pear-%{_pearname} |
2daa4150 AG |
10 | Version: 0.4.1 |
11 | Release: 1 | |
dfcfa053 AG |
12 | License: PHP |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
2daa4150 | 15 | # Source0-md5: 351f230b32ec265cb48ff08165bf9652 |
f2ee5ff9 | 16 | URL: http://pear.php.net/package/Math_Fraction/ |
d7a7159a | 17 | BuildRequires: php-pear-PEAR |
82952d4a | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
5cb57c58 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
dfcfa053 AG |
20 | Requires: php-pear |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Classes that represent and manipulate fractions (x = a/b). | |
26 | ||
27 | The Math_FractionOp static class contains definitions for: | |
f2ee5ff9 AG |
28 | - basic arithmetic operations, |
29 | - comparing fractions, | |
dfcfa053 | 30 | - greatest common divisor (gcd) and least common multiple (lcm) of two |
f2ee5ff9 AG |
31 | integers, |
32 | - simplifying (reducing) and getting the reciprocal of a fraction, | |
dfcfa053 AG |
33 | - converting a float to fraction. |
34 | ||
35 | In PEAR status of this package is: %{_status}. | |
36 | ||
ccbf14b7 JR |
37 | %description -l pl.UTF-8 |
38 | Klasy do przedstawiania i manipulowania ułamkami (x = a/b). | |
dfcfa053 AG |
39 | |
40 | Statyczna klasa Math_FractionOp zawiera definicje dla: | |
f2ee5ff9 | 41 | - podstawowych operacji arytmetycznych, |
ccbf14b7 JR |
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. | |
dfcfa053 AG |
47 | |
48 | Ta klasa ma w PEAR status: %{_status}. | |
49 | ||
50 | %prep | |
82952d4a | 51 | %pear_package_setup |
dfcfa053 AG |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
82952d4a ER |
55 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
56 | %pear_package_install | |
dfcfa053 AG |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
82952d4a ER |
63 | %doc install.log |
64 | %doc docs/%{_pearname}/docs/* | |
65 | %{php_pear_dir}/.registry/*.reg | |
dfcfa053 | 66 | %{php_pear_dir}/%{_class}/*.php |