]> git.pld-linux.org Git - packages/php-pear-Math_Fraction.git/blob - php-pear-Math_Fraction.spec
- typo in URL
[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         alpha
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.3.0
11 Release:        1
12 License:        PHP
13 Group:          Development/Languages/PHP
14 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5:  9c84e6f4ae9427ab0824907bc6c9c2ff
16 URL:            http://pear.php.net/package/Math_Fraction/
17 BuildRequires:  rpm-php-pearprov >= 4.0.2-98
18 Requires:       php-pear
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Classes that represent and manipulate fractions (x = a/b).
24
25 The Math_FractionOp static class contains definitions for:
26 - basic arithmetic operations,
27 - comparing fractions,
28 - greatest common divisor (gcd) and least common multiple (lcm) of two
29   integers,
30 - simplifying (reducing) and getting the reciprocal of a fraction,
31 - converting a float to fraction.
32
33 In PEAR status of this package is: %{_status}.
34
35 %description -l pl
36 Klasy do przedstawiania i manipulowania u³amkami (x = a/b).
37
38 Statyczna klasa Math_FractionOp zawiera definicje dla:
39 - podstawowych operacji arytmetycznych,
40 - porównywania u³amków,
41 - najwiêkszego wspólnego dzielnika (NWD) i najmniejszej wspólnej
42   wielokrotno¶ci (NWM) dwóch liczb,
43 - upraszczanie (skracanie) i obliczanie odwrotno¶ci u³amka,
44 - konwersja liczby na u³amek.
45
46 Ta klasa ma w PEAR status: %{_status}.
47
48 %prep
49 %setup -q -c
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
54
55 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc %{_pearname}-%{version}/docs/examples/*.php
63 %{php_pear_dir}/%{_class}/*.php
This page took 0.027667 seconds and 4 git commands to generate.