packages python-numeric.spec
      Pages: < 1 >  DOWNLOAD      
Name:          python-numeric
Version:       24.2
Release:       3mamba
Summary:       Numerical Extension to Python
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://numpy.scipy.org/
Source0:       http://downloads.sourceforge.net/project/numpy/Old_Numeric/24.2/Numeric-%{version}.tar.gz
Patch:         Numeric-23.6-use-allinone-libraries.patch
License:       OSI Approved
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
%py_requires
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Numerical Python adds a fast, compact, multidimensional array language facility to Python.

%package devel
Group:         Development/Libraries
Summary:       Static libraries and headers for %{name}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
Numerical Python adds a fast, compact, multidimensional array language facility to Python.
This package contains static libraries and header files need for development.

%prep
%setup -q -n Numeric-%{version}

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}

%{__python} setup.py install \
   -O1 --skip-build \
   --root="%{buildroot}" \
   --install-headers=%{_includedir}/python/Numeric \
   --install-lib=%{python_sitearch}

%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir %{python_sitearch}/Numeric
%{python_sitearch}/Numeric.pth
%{python_sitearch}/Numeric/*.py*
%{python_sitearch}/Numeric/*.so
%{python_sitearch}/Numeric/FFT
%{python_sitearch}/Numeric/MA
%{python_sitearch}/Numeric/RNG
%{python_sitearch}/Numeric/Numeric-%{version}-py%{python_version}.egg-info
%{python_sitearch}/Numeric/Numeric_headers/Numeric/*.h
%{python_sitearch}/Numeric/Numeric_headers/__init__.py*
%doc README MANIFEST changes.txt

%files devel
%defattr(-,root,root)
%dir %{_includedir}/python/Numeric
%{_includedir}/python/Numeric/*.h
%doc Demo Test

%changelog
* Fri May 17 2013 Silvan Calarco <silvan.calarco@...> 24.2-3mamba
- python 2.7 mass rebuild

* Tue Nov 30 2010 Davide Madrisan <davide.madrisan@...> 24.2-2mamba
- rebuild to fix 'Python C API version mismatch for module _numpy' error
- update specfile
- own %{_includedir}/python/Numeric

* Fri Oct 03 2008 gil <puntogil@...> 24.2-1mamba
- update to 24.2

* Tue Aug 09 2005 Silvan Calarco <silvan.calarco@...> 23.8-1qilnx
- update to version 23.8 by autospec

* Mon Dec 20 2004 Massimo Pintore <massimo.pintore@...> 23.6-1qilnx
- package created by autospec