54 lines
1.8 KiB
RPMSpec
54 lines
1.8 KiB
RPMSpec
|
Name: python-fpconst
|
||
|
Version: 0.7.2
|
||
|
Release: 3mamba
|
||
|
Summary: Utilities for handling IEEE 754 floating point special values
|
||
|
Group: System/Libraries/Python
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
||
|
URL: http://www.analytics.washington.edu/statcomp/projects/rzope/fpconst/
|
||
|
Source: http://pypi.python.org/packages/source/f/fpconst/fpconst-%{version}.tar.gz
|
||
|
License: BSD
|
||
|
Requires: python >= %python_version
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: libpython-devel >= %python_version
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
This module provides constants and functions for handling IEEE754 floating point infinite and NaN values.
|
||
|
|
||
|
This works on any python that uses IEEE754 double values for its float type (whether big- or little-endian). Although this is not required, it's unlikely any python would fail to meet this requirement (the code in both the standard and JPython interpreters assumes IEEE754 double all over the place).
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n fpconst-%{version}
|
||
|
|
||
|
%build
|
||
|
python setup.py build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%{__python} setup.py install \
|
||
|
--root="%{buildroot}" \
|
||
|
--install-headers=%{_includedir}/python \
|
||
|
--install-lib=%{python_sitearch}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{python_sitearch}/fpconst.py
|
||
|
%{python_sitearch}/fpconst.pyc
|
||
|
%{python_sitearch}/fpconst-%{version}-py*.egg-info
|
||
|
|
||
|
%changelog
|
||
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.2-3mamba
|
||
|
- python 2.7 mass rebuild
|
||
|
|
||
|
* Mon May 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.2-2mamba
|
||
|
- rebuilt with python 2.6
|
||
|
|
||
|
* Mon Aug 18 2008 gil <puntogil@libero.it> 0.7.2-1mamba
|
||
|
- package created by autospec
|