python-numarray-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %{!?python_siteinc: %define python_siteinc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")}
  3. Name: python-numarray
  4. Version: 1.5.2
  5. Release: 2%{?_dist_release}
  6. Summary: Python array manipulation and computational library
  7. Group: Development/Languages
  8. License: BSD
  9. URL: http://www.stsci.edu/resources/software_hardware/numarray
  10. Source0: http://dl.sf.net/numpy/numarray-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: python-devel
  13. Provides: %{name}-devel = %{version}-%{release}
  14. %description
  15. Numarray provides array manipulation and computational capabilities
  16. similar to those found in IDL, Matlab, or Octave. Using numarray, it is
  17. possible to write many efficient numerical data processing applications
  18. directly in Python without using any C, C++ or Fortran code (as well as
  19. doing such analysis interactively within Python or PyRAF). For algorithms
  20. that are not well suited for efficient computation using array facilities
  21. it is possible to write C functions (and eventually Fortran) that can
  22. read and write numarray arrays that can be called from Python.
  23. %prep
  24. %setup -q -n numarray-%{version}
  25. find -name \*~ | xargs rm -f
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  31. chmod +x $RPM_BUILD_ROOT%{python_sitearch}/numarray/examples/convolve/benchmark.py
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root,-)
  36. %doc LICENSE.txt README.txt Doc/*
  37. %{python_siteinc}/numarray/
  38. %{python_sitearch}/numarray/
  39. %{python_sitearch}/numarray-*.egg-info
  40. %changelog
  41. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.2-2
  42. - rebuild with python-2.6
  43. * Fri Oct 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.5.2-1
  44. - initial build for VineSeed
  45. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.2-6
  46. - Autorebuild for GCC 4.3
  47. * Wed Jan 9 2008 - Orion Poplawski <orion@cora.nwra.com> - 1.5.2-5
  48. - Add python egg-info file
  49. * Thu Aug 23 2007 - Orion Poplawski <orion@cora.nwra.com> - 1.5.2-4
  50. - Update license tag to BSD
  51. - Rebuild for BuildID
  52. * Thu May 17 2007 - Orion Poplawski <orion@cora.nwra.com> - 1.5.2-3
  53. - Rebuild to reduce shared object sizes
  54. * Tue Dec 12 2006 - Jef Spaleta <jspaleta@gmail.com> - 1.5.2-2
  55. - Bump and release for python 2.5 rebuild
  56. * Wed Sep 6 2006 - Orion Poplawski <orion@cora.nwra.com> - 1.5.2-1
  57. - Update to 1.5.2
  58. - No longer ghost .pyo files
  59. * Tue Feb 14 2006 - Orion Poplawski <orion@cora.nwra.com> - 1.5.1-1
  60. - Update to 1.5.1
  61. * Thu Dec 22 2005 - Orion Poplawski <orion@cora.nwra.com> - 1.5.0-1
  62. - Update to 1.5.0
  63. * Thu Aug 11 2005 - Orion Poplawski <orion@cora.nwra.com> - 1.3.3-4
  64. - Use sitearch macro instead of sitelib
  65. * Thu Aug 11 2005 - Orion Poplawski <orion@cora.nwra.com> - 1.3.3-3
  66. - Properly %ghost .pyo files
  67. * Tue Aug 09 2005 - Orion Poplawski <orion@cora.nwra.com> - 1.3.3-2
  68. - Cleanup
  69. - Added -devel provides
  70. * Tue Aug 02 2005 - Orion Poplawski <orion@cora.nwra.com> - 1.3.3-1
  71. - Initial release for Fedora Extras