rpms/ScientificPython/devel ScientificPython-netcdf-location.patch, NONE, 1.1 ScientificPython.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jef Spaleta (jspaleta) fedora-extras-commits at redhat.com
Sun Dec 31 03:16:15 UTC 2006


Author: jspaleta

Update of /cvs/extras/rpms/ScientificPython/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19574/devel

Modified Files:
	.cvsignore sources 
Added Files:
	ScientificPython-netcdf-location.patch ScientificPython.spec 
Log Message:
auto-import ScientificPython-2.6-5 on branch devel from ScientificPython-2.6-5.src.rpm

ScientificPython-netcdf-location.patch:

--- NEW FILE ScientificPython-netcdf-location.patch ---
--- ScientificPython-2.6-BAD/setup.py	2006-10-06 05:38:29.000000000 -0800
+++ ScientificPython-2.6/setup.py	2006-12-25 23:17:34.000000000 -0900
@@ -12,7 +12,7 @@
 # If your netCDF installation is in a non-standard place, set the following
 # variable to the base directory, or set the environment variable
 # NETCDF_PREFIX before running setup.py
-netcdf_prefix = None
+netcdf_prefix = 'netcdf-3'
 
 class Dummy:
     pass
@@ -43,8 +43,8 @@
     ext_modules = []
 else:
     print "Using netCDF installation in ", netcdf_prefix
-    netcdf_include = os.path.join(netcdf_prefix, 'include')
-    netcdf_lib = os.path.join(netcdf_prefix, 'lib')
+    netcdf_include = os.path.join('/usr/include/',netcdf_prefix)
+    netcdf_lib = os.path.join('/usr/lib/',netcdf_prefix)
     ext_modules = [Extension('Scientific_netcdf',
                              ['Src/Scientific_netcdf.c'],
                              include_dirs=['Include', netcdf_include]


--- NEW FILE ScientificPython.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define pyver %(python -c 'import sys ; print sys.version[:3]')

Name:           ScientificPython
Version:        2.6
Release:        5%{?dist}
Summary:        A collection of Python modules that are useful for scientific computing

Group:          Development/Languages
License:        CeCILL
URL:            http://dirac.cnrs-orleans.fr/ScientificPython/
Source0:        http://sourcesup.cru.fr/frs/download.php/1034/ScientificPython-2.6.tar.gz
Patch0:         ScientificPython-netcdf-location.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel
BuildRequires:  netcdf-devel 
BuildRequires:  openmpi-devel 
BuildRequires: python-numeric
Requires: python-numeric 

%package devel
Summary:        The development files for ScientificPython
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%package tk
Summary:        The tk widgets from ScientificPython
Group:          Development/Languages
Requires:       %{name} = %{version}-%{release}
Requires:       tkinter

%package qt
Summary:        The Qt widgets from ScientificPython
Group:          Development/Languages
Requires:       %{name} = %{version}-%{release}
Requires:       PyQt

%package doc
Summary:        Documentation and examples for ScientificPython
Group:          Documentation
Requires:       %{name} = %{version}-%{release}

%description
ScientificPython is a collection of Python modules that are useful for
scientific computing.  In this collection you will find modules that cover
basic geometry (vectors, tensors, transformations, vector and tensor
fields), quaternions, automatic derivatives, (linear) interpolation,
polynomials, elementary statistics, nonlinear least-squares fits, unit
calculations, Fortran-compatible text formatting, 3D visualization via
VRML, and two Tk widgets for simple line plots and 3D wireframe models.
There are also interfaces to the netCDF library (portable structured
binary files), to MPI (Message Passing Interface, message-based parallel
programming), and to BSPlib (Bulk Synchronous Parallel programming)

%description devel
This package contains the ScientificPython header files

%description tk
This package contains the ScientificPython Tkwidgets

%description qt
This package contains the ScientificPython Qtwidgets

%description doc
Install this package if you want the developers' documentation and examples
that tell you how to program with ScientificPython.

%prep
%setup -q
%patch0 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
export PYINCLUDE="$RPM_BUILD_ROOT/%{_includedir}/python%{pyver}/"
#cp -R %{_includedir}/python%{pyver}/* $PYINCLUDE
cd Src/MPI/
cat compile.py|sed -e 's/-I/-I$PYINCLUDE -I/' > compile-new.py
%{__python} compile-new.py
mv mpipython $RPM_BUILD_ROOT/%{_bindir}/

cat <<EOF > impipython.sh
#!/bin/bash
# This is a reference script provided to show you an example of how to 
# call the interactive parallel computing python console using mpirun.
#
# Here "-np X" refers to the number of processors to use for this 
# parallel process. To use this script you should copy this file to a 
# location of youyr choosing, edit the -np argument as needed for your 
# mpi system configuration and make this file executable.
#
# This file is a filepath corrected version of the impipython reference file
# provided in the upstream source distribution so it will work as written on 
# Fedora Linux. For more information, please refer to the README.MPI
# files that comes with the ScientificPython package  and to the available 
# documentation for the mpirun executable. 

mpirun -np 2 %{_bindir}/mpipython %{python_sitearch}/Scientific/BSP/Console.py $*

EOF

cat impipython.sh

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE README Doc/CHANGELOG README.MPI README.BSP README.BSPlib Src/MPI/impipython.sh 
%dir %{python_sitearch}/Scientific/
%{python_sitearch}/Scientific/*.py*
%{python_sitearch}/Scientific/Functions
%{python_sitearch}/Scientific/Geometry
%{python_sitearch}/Scientific/IO
%{python_sitearch}/Scientific/linux2
%{python_sitearch}/Scientific/Physics
%{python_sitearch}/Scientific/Signals
%{python_sitearch}/Scientific/Statistics
%{python_sitearch}/Scientific/Threading
%{python_sitearch}/Scientific/use_numeric
%{python_sitearch}/Scientific/Visualization
%{python_sitearch}/Scientific/MPI
%{python_sitearch}/Scientific/BSP
%{_bindir}/bsp_virtual
%{_bindir}/mpipython

%files devel
%defattr(-,root,root,-)
%{_includedir}/python%{pyver}/Scientific/*.h


%files tk
%defattr(-,root,root,-)
%{python_sitearch}/Scientific/TkWidgets

%files qt
%defattr(-,root,root,-)
%{python_sitearch}/Scientific/QtWidgets

%files doc
%defattr(-,root,root,-)
%doc Doc/Reference Examples Doc/BSP_Tutorial.pdf

%changelog
* Thu Dec 28 2006 Jef Spaleta <jspaleta at gmail.com> 2.6-5
- remove mpi and bsp subpackages. On more thought, 
-   it makes more sense to have the parallel computing items
-   in the main package.
- Added inline impipython.sh reference script
-   Replaces upstreams impipython reference file
-   This will have the correct path statements generated at
-   package buildtime. Still included as a doc item

* Wed Dec 27 2006 Jef Spaleta <jspaleta at gmail.com> 2.6-4
- move impipython to docs section of mpi subpackage 
-   this is a script which must be editted by hand per system.
- Added Doc/BSP_Tutorial.pdf to docs subpackage
- Fixed description text line wrapping.

* Mon Dec 25 2006 Jef Spaleta <jspaleta at gmail.com> 2.6-3
- Add tk and qt subpackages
- Add bsp and mpi subpackages
- Requires clean-ups for all subpackages
- Patch to correctly locate netcdf.a and netcdf.h

* Mon Dec 25 2006 Jef Spaleta <jspaleta at gmail.com> 2.6-2
- Add docs subpackage

* Sun Dec 24 2006 Jef Spaleta <jspaleta at gmail.com> 2.6-1
- Initial ScientificPython Package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ScientificPython/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	31 Dec 2006 03:15:03 -0000	1.1
+++ .cvsignore	31 Dec 2006 03:15:45 -0000	1.2
@@ -0,0 +1 @@
+ScientificPython-2.6.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ScientificPython/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	31 Dec 2006 03:15:03 -0000	1.1
+++ sources	31 Dec 2006 03:15:45 -0000	1.2
@@ -0,0 +1 @@
+6ebd96fc8a4e015adab2c57826d52e9f  ScientificPython-2.6.tar.gz




More information about the scm-commits mailing list