]> git.pld-linux.org Git - packages/php-pear-Math_Fraction.git/blob - php-pear-Math_Fraction.spec
- rel 3 (rebuild with less deps)
[packages/php-pear-Math_Fraction.git] / php-pear-Math_Fraction.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Math
3 %define         _subclass       Fraction
4 %define         _status         beta
5 %define         _pearname       %{_class}_%{_subclass}
6
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}
10 Version:        0.4.0
11 Release:        3
12 License:        PHP
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 Requires:       php-pear
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Classes that represent and manipulate fractions (x = a/b).
25
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
30   integers,
31 - simplifying (reducing) and getting the reciprocal of a fraction,
32 - converting a float to fraction.
33
34 In PEAR status of this package is: %{_status}.
35
36 %description -l pl
37 Klasy do przedstawiania i manipulowania u³amkami (x = a/b).
38
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.
46
47 Ta klasa ma w PEAR status: %{_status}.
48
49 %prep
50 %pear_package_setup
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_pear_dir}
55 %pear_package_install
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc install.log
63 %doc docs/%{_pearname}/docs/*
64 %{php_pear_dir}/.registry/*.reg
65 %{php_pear_dir}/%{_class}/*.php
This page took 0.106177 seconds and 3 git commands to generate.