python-numarray-vl.spec 3.5 KB

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