File glucat.spec of Package glucat

#
# spec file for package glucat
#
# 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/
#


Name:           glucat
Version:        0.7.1
Release:        0
Summary:        Library of C++ templates implementing universal Clifford algebras
License:        LGPL-3.0
Group:          Development/Libraries/C and C++
Url:            http://glucat.sourceforge.net/
Source:         http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         glucat-fix-i586-build.patch
BuildRequires:  boost-devel
BuildRequires:  gcc-c++
BuildRequires:  python-Cython
BuildRequires:  python-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GluCat is a library of template classes which model the universal
Clifford algebras over the field of real numbers, with arbitrary
dimension and arbitrary signature. GluCat implements a model of each
Clifford algebra corresponding to each non-degenerate quadratic form
up to a maximum number of dimensions.


%package devel
Summary:        Library of C++ templates implementing universal Clifford algebras
Group:          Development/Libraries/C and C++

%description devel
GluCat is a library of template classes which model the universal
Clifford algebras over the field of real numbers, with arbitrary
dimension and arbitrary signature. GluCat implements a model of each
Clifford algebra corresponding to each non-degenerate quadratic form
up to a maximum number of dimensions.

This package contains the header files required for developing
applications using the glucat library.

%package -n python-glucat
Summary:        Library of C++ templates implementing universal Clifford algebras
Group:          Development/Libraries/C and C++
Requires:       python-base = %{py_ver}

%description -n python-glucat
GluCat is a library of template classes which model the universal
Clifford algebras over the field of real numbers, with arbitrary
dimension and arbitrary signature. GluCat implements a model of each
Clifford algebra corresponding to each non-degenerate quadratic form
up to a maximum number of dimensions.

This package contains the python-bindings for the package.

%prep
%setup -q -n %{name}-%{version}
%ifarch i586
%patch0 -p1
%endif
%build
# Parallel make fails for openSUSE 11.4 and lower
%configure --prefix=%{buildroot}%{_prefix}/

%if 0%{?suse_version} >= 1210
make %{?_smp_mflags}
%else
make
%endif

%install
make DESTDIR=%{buildroot} install

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%doc AUTHORS ChangeLog README COPYING TODO

%files -n python-glucat
%defattr(-,root,root)
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by