]>
Commit | Line | Data |
---|---|---|
89c34ee1 | 1 | |
c1917e48 | 2 | %define module fpconst |
89c34ee1 AM |
3 | |
4 | Summary: IEEE 754 floating point special handling | |
b7462b49 | 5 | Summary(pl.UTF-8): Specjalna obsługa liczb zmiennoprzecinkowych IEEE 754 |
89c34ee1 | 6 | Name: python-%{module} |
586ddf03 | 7 | Version: 0.7.2 |
6ade7cb4 | 8 | Release: 6 |
381b4561 | 9 | License: Apache v2.0 |
89c34ee1 | 10 | Group: Libraries/Python |
586ddf03 AF |
11 | Source0: http://cheeseshop.python.org/packages/source/f/fpconst/fpconst-%{version}.tar.gz |
12 | # Source0-md5: 10ba9e04129af23108d24c22c3a698b1 | |
13 | URL: http://research.warnes.net/projects/RStatServer/fpconst/index_html | |
53c4b066 | 14 | BuildRequires: rpmbuild(macros) >= 1.710 |
ea4230a8 | 15 | BuildRequires: python >= 1:2.5 |
1317091e | 16 | BuildRequires: python-modules |
17 | BuildRequires: rpm-pythonprov | |
691777ff | 18 | %pyrequires_eq python-modules |
640433c7 | 19 | BuildArch: noarch |
89c34ee1 AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
622fc02a JB |
23 | This python module implements constants and functions for working with |
24 | IEEE 754 double-precision special values. It provides constants for | |
25 | Not-a-Number (NaN), Positive Infinity (Inf), and Negative Infinity | |
26 | (-Inf), as well as functions to test for these values. | |
27 | ||
af7e5360 JR |
28 | %description -l pl.UTF-8 |
29 | Ten moduł Pythona jest implementacją stałych i funkcji do pracy z | |
30 | wartościami specjalnymi liczb podwójnej precyzji zgodnymi z IEEE 754. | |
31 | Udostępnia stałe dla nie-liczb (NaN, czyli Not-a-Number), dodatniej | |
32 | nieskończoności (Inf) i ujemnej nieskończoności (-Inf), a także | |
33 | funkcje do porównywania z tymi wartościami. | |
89c34ee1 AM |
34 | |
35 | %prep | |
36 | %setup -q -n %{module}-%{version} | |
37 | ||
38 | %build | |
5167edbb | 39 | %py_build |
89c34ee1 AM |
40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
640433c7 | 43 | install -d $RPM_BUILD_ROOT%{py_sitescriptdir} |
89c34ee1 | 44 | |
5167edbb | 45 | %py_install |
89c34ee1 AM |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
ecfa14cd | 52 | %doc README |
381b4561 | 53 | %{py_sitescriptdir}/*.py[co] |
586ddf03 | 54 | %{py_sitescriptdir}/*.egg-info |