Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37037800
en ru br
ALT Linux repositórios
5.0: 24.2-alt1.1
4.1: 24.2-alt1.1
4.0: 24.2-alt1
3.0: 23.7-alt1

Group :: Desenvolvimento/Python
RPM: python-module-Numeric

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define name numeric
%define version 24.2
%define release alt1
%setup_python_module Numeric

Summary: Numerical Extension to Python
Name: %{packagename}
Version: %{version}
Release: %{release}.1
Source0: Numeric-%{version}.tar.gz
Source1: numpy.pdf.bz2
License: Python License
Group: Development/Python
BuildRoot: %{_tmppath}/%{name}-buildroot
Packager: Andrey Khavryuchenko <akhavr at altlinux.ru>

Prefix: %{_prefix}
Vendor: Numerical Python Developers <numpy-developers at lists.sourceforge.net>
Provides: python-numeric python-Numeric
Obsoletes: python-Numeric
Url: http://www.pfdubois.com/numpy/

Patch0: Numeric-system-lapack.patch

Requires: python

# Automatically added by buildreq on Tue Jul 18 2006

BuildRequires: liblapack-devel python-devel python-modules
BuildRequires: python-modules-compiler python-modules-encodings

%description

NumPy is a collection of extension modules to provide high-performance
multidimensional numeric arrays to the Python programming language.
Numerical Extension to Python with subpackages.

The authors and maintainers of the subpackages are:

FFTPACK-3.1
       maintainer = "Numerical Python Developers"
       maintainer_email = "numpy-discussion at lists.sourceforge.net"
       description = "Fast Fourier Transforms"
       url = "http://numpy.sourceforge.net"

MA-12.2.0
       author = "Paul F. Dubois"
       description = "Masked Array facility"
       maintainer = "Paul F. Dubois"
       maintainer_email = "dubois at users.sf.net"
       url = "http://sourceforge.net/projects/numpy"

RNG-3.1
       author = "Lee Busby, Paul F. Dubois, Fred Fritsch"
       maintainer = "Paul F. Dubois"
       maintainer_email = "dubois at users.sf.net"
       description = "Cray-like Random number package."

%package devel
Group: Development/Python
Summary: Python numerical facilities
Requires: %name = %version-%release

Provides: python-numeric-devel python-Numeric-devel
Provides: python-numpy-devel

Obsoletes: python-numpy-devel python-numeric-devel

%description devel
A collection of extension modules to provide high-performance multidimensional
numeric arrays to the Python programming language.
Development files.

%package demo
Group: Development/Python
Summary: Python numerical facilities - demo

%description demo
A collection of extension modules to provide high-performance multidimensional
numeric arrays to the Python programming language.

Demonstartion and testing utilites

%define python_libdir %_libdir/python%__python_version
%define python_site_packages_dir %python_libdir/site-packages
%define python_includedir %_includedir/python%__python_version

%prep
%setup -q -n Numeric-%version
bzcat %SOURCE1 >numpy.pdf

%patch0 -p 1

%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build

%install
%__python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES

#find $RPM_BUILD_ROOT -type f | sed -e "s|$RPM_BUILD_ROOT||g" >>INSTALLED_FILES


%__mkdir_p %buildroot%_sysconfdir/buildreqs/files/ignore.d
%__cat > %buildroot%_sysconfdir/buildreqs/files/ignore.d/%name << EOF
^/usr/lib/python[^/]*/site-packages/Numeric$
EOF

install -d $RPM_BUILD_ROOT/%python_libdir/tools/numeric
install -d $RPM_BUILD_ROOT/%python_libdir/tools/numeric/NumTut
install -D -m 755 Demo/*py $RPM_BUILD_ROOT/%python_libdir/tools/numeric
install -D -m 644 Demo/NumTut/* $RPM_BUILD_ROOT/%python_libdir/tools/numeric/NumTut
install -D -m 755 Test/*test.py $RPM_BUILD_ROOT/%python_libdir/tools/numeric

%add_python_lib_path  %_libdir/python%__python_version/site-packages/Numeric

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%config %_sysconfdir/buildreqs/files/ignore.d/%name
%doc MANIFEST *README PKG-INFO

%files devel
%dir %python_includedir/Numeric
%python_includedir/Numeric/*
%doc numpy.pdf

%files demo
%python_libdir/tools/numeric

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009