]> git.pld-linux.org Git - packages/php-pear-Math_Fraction.git/blame - php-pear-Math_Fraction.spec
- updated to 0.4.1
[packages/php-pear-Math_Fraction.git] / php-pear-Math_Fraction.spec
CommitLineData
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
7Summary: %{_pearname} - Classes that represent and manipulate fractions
3859640c 8Summary(pl.UTF-8): %{_pearname} - Klasy do przedstawiania i manipulowania ułamkami
dfcfa053 9Name: php-pear-%{_pearname}
2daa4150
AG
10Version: 0.4.1
11Release: 1
dfcfa053
AG
12License: PHP
13Group: Development/Languages/PHP
14Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
2daa4150 15# Source0-md5: 351f230b32ec265cb48ff08165bf9652
f2ee5ff9 16URL: http://pear.php.net/package/Math_Fraction/
d7a7159a 17BuildRequires: php-pear-PEAR
82952d4a 18BuildRequires: rpm-php-pearprov >= 4.4.2-11
5cb57c58 19BuildRequires: rpmbuild(macros) >= 1.300
dfcfa053
AG
20Requires: php-pear
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Classes that represent and manipulate fractions (x = a/b).
26
27The 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
35In PEAR status of this package is: %{_status}.
36
ccbf14b7
JR
37%description -l pl.UTF-8
38Klasy do przedstawiania i manipulowania ułamkami (x = a/b).
dfcfa053
AG
39
40Statyczna 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
48Ta klasa ma w PEAR status: %{_status}.
49
50%prep
82952d4a 51%pear_package_setup
dfcfa053
AG
52
53%install
54rm -rf $RPM_BUILD_ROOT
82952d4a
ER
55install -d $RPM_BUILD_ROOT%{php_pear_dir}
56%pear_package_install
dfcfa053
AG
57
58%clean
59rm -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
This page took 0.051703 seconds and 4 git commands to generate.