File python-pyMinuit2.spec of Package python-pyMinuit2

#
# spec file for package python-pyMinuit2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define modname pyMinuit2
Summary:        Python wrapper for NVIDIA's CUDA API
License:        MIT
Group:          Development/Libraries/Python
Name:           python-%{modname}
Version:        1.1.0
Release:        0
Source0:        http://pyminuit2.googlecode.com/files/pyminuit2-1.1.0.tar.gz
Url:            http://code.google.com/p/pyminuit2/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-numpy
%if 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
BuildRequires:  gcc-c++
BuildRequires:  libroot-core-devel
BuildRequires:  libroot-graf2d-graf-devel
BuildRequires:  libroot-hist-devel
BuildRequires:  libroot-io-devel
BuildRequires:  libroot-math-mathcore-devel
BuildRequires:  libroot-math-matrix-devel
BuildRequires:  libroot-net-devel
BuildRequires:  python-devel
BuildRequires:  python-numpy-devel
BuildRequires:  python-setuptools
BuildRequires:  root-plugin-math-minuit2-devel

%description
PyMinuit2 is an extension module for Python that passes low-level Minuit
functionality to Python functions.

Minuit has been the standard package for minimizing general N-dimensional
functions in high-energy physics since its introduction in 1972. It features
a robust set of algorithms for optimizing the search, correcting mistakes,
and measuring non-linear error bounds. It is the minimization engine used
behind-the-scenes in most high-energy physics curve fitting applications.


%prep
%setup -q -n pyminuit2-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README.rst test/
%{python_sitearch}/minuit2.so
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by