Dnia piątek, 10 lutego 2006 00:19, Jakub Piotr Cłapa napisał: > AFAIR wlasnie tak jest. Numeric jest depreciated i winno byc numpy. > Proponuje podbic epoch i jechac juz z prawidlowym pakietem w prawidlowej > paczce, a Numerica olac.
Ok a więc skrobnąłem nowego speca dla numpy-0.9.4 Nie commituje bo nawet nie wiem jak go nazwać, czy usunąć stare spece, czy może przesłać go jako DEVEL. (Brak doświadczenia) Z opisu: NumPy is a collection of extension modules to provide high-performance multidimensional numeric arrays to the Python programming language. - numpy.distutils - extension to Python distutils - numpy.f2py - a tool to bind Fortran/C codes to Python - numpy.core - future replacement of Numeric and numarray packages - numpy.lib - extra utility functions - numpy.testing - numpy-style tools for unit testing wynika, że zastępuje on numerica, numarray a także f2py. W specu wyodrębniłem jednak tylko f2py bo jest on często używany i nie zależy od pozostałych modułów. Gdyby ktoś bardziej doświadczony zerkną okiem, przerobił i wrzucił do cvs-u to będę wdzięczny. Dodam, że jeszcze nie sprawdziłem działania pakietu w praktyce. -- ___________________________ Linux is like Wigwam. No Gates, No Windows, Apache Inside !!!
%define module numpy Summary: Python numerical facilities Summary(pl): Modu�y do oblicze� numerycznych dla j�zyka Python Name: python-%{module} Version: 0.9.4 Release: 0.1 License: distributable Group: Libraries/Python Source0: http://dl.sourceforge.net/numpy/%{module}-%{version}.tar.gz # Source0-md5: 104ef1beb4b0182be52e2c0849305427 URL: http://sourceforge.net/projects/numpy/ BuildRequires: python-devel >= 1:2.4 %pyrequires_eq python-libs BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description NumPy is a collection of extension modules to provide high-performance multidimensional numeric arrays to the Python programming language. - numpy/distutils - extension to Python distutils - numpy/core - future replacement of Numeric and numarray packages - numpy/lib - extra utility functions - numpy/testing - numpy-style tools for unit testing %description -l pl Pakiet umo�liwia wydajne obliczenia numeryczne na macierzach wielowymiarowych. - numpy/distutils - rozszerzenia dla Pythona - numpy/core - nast�pca pakiet�w Numeric i numarray - numpy/lib - dodatkowe funkcje - numpy/testing - narz�dzia do testowania %package devel Summary: C header files for numerical modules Summary(pl): Pliki nag��wkowe j�zyka C modu��w numerycznych Group: Development/Languages/Python %pyrequires_eq python-devel Requires: %{name} = %{version}-%{release} %description devel C header files for numerical modules. %description devel -l pl Pliki nag��wkowe j�zyka C modu��w numerycznych. %package f2py Summary: Fortran to Python interface generator Summary(pl): Generator interfejs�w z Fortranu do Pythona Group: Libraries/Python %pyrequires_eq python-libs Requires: %{name} = %{version}-%{release} %description f2py Fortran to Python interface generator. %description f2py -l pl Generator interfejs�w z Fortranu do Pythona. %package f2py-devel Summary: C header files for f2py Summary(pl): Pliki nag��wkowe j�zyka C modu�u f2py Group: Development/Languages/Python %pyrequires_eq python-devel Requires: %{name} = %{version}-%{release} %description f2py-devel C header files for f2py. %description f2py-devel -l pl Pliki nag��wkowe j�zyka C modu�u f2py. %prep %setup -q -n %{module}-%{version} %build CC="%{__cc}"; export CC CFLAGS="%{rpmcflags}"; export CFLAGS python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install \ --root=$RPM_BUILD_ROOT \ --record=INSTALLED_FILES \ --optimize=2 install -d $RPM_BUILD_ROOT%{py_incdir}/{%{module},f2py} mv $RPM_BUILD_ROOT%{py_sitedir}/%{module}/core/include/numpy/*.h $RPM_BUILD_ROOT%{py_incdir}/%{module} mv $RPM_BUILD_ROOT%{py_sitedir}/%{module}/f2py/src/fortranobject.c $RPM_BUILD_ROOT%{py_incdir}/f2py mv $RPM_BUILD_ROOT%{py_sitedir}/%{module}/f2py/src/fortranobject.h $RPM_BUILD_ROOT%{py_incdir}/f2py %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_comp $RPM_BUILD_ROOT%{py_sitedir} find $RPM_BUILD_ROOT%{py_sitedir}/%{module} -name "*.py" | xargs rm %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{py_sitedir}/%{module}/core/*.so %attr(755,root,root) %{py_sitedir}/%{module}/lib/*.so %attr(755,root,root) %{py_sitedir}/%{module}/dft/*.so %attr(755,root,root) %{py_sitedir}/%{module}/linalg/*.so %attr(755,root,root) %{py_sitedir}/%{module}/random/*.so %doc %{py_sitedir}/%{module}/doc/*.txt %dir %{py_sitedir}/%{module} %{py_sitedir}/%{module}/core/*.py[co] %{py_sitedir}/%{module}/core/tests/*.py[co] %{py_sitedir}/%{module}/core/tests/testdata.fits %{py_sitedir}/%{module}/lib/*.py[co] %{py_sitedir}/%{module}/lib/tests/*.py[co] %{py_sitedir}/%{module}/dft/*.py[co] %{py_sitedir}/%{module}/dft/tests/*.py[co] %{py_sitedir}/%{module}/linalg/*.py[co] %{py_sitedir}/%{module}/*.py[co] %{py_sitedir}/%{module}/random/*.py[co] %{py_sitedir}/%{module}/testing/*.py[co] %{py_sitedir}/%{module}/distutils %files devel %defattr(644,root,root,755) %{py_incdir}/%{module} %files f2py %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/f2py %{py_sitedir}/%{module}/f2py %files f2py-devel %defattr(644,root,root,755) %{py_incdir}/f2py %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[EMAIL PROTECTED]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log: python-numpy.spec,v $
_______________________________________________ pld-devel-pl mailing list pld-devel-pl@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl