File glucat.spec of Package glucat

#
# spec file for package glucat
#
# Copyright (c) 2015 SUSE LINUX 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.8.0
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
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}

%build
%configure --prefix=%{buildroot}%{_prefix}

make %{?_smp_mflags}

%install
%make_install

# INSTALLATION OF PYCLICAL MODULE IS BOTCHED, WORKAROUND UNTIL FIXED
mkdir -p %{buildroot}/%{python_sitearch}/
mv %{buildroot}/%{buildroot}/%{python_sitearch}/* %{buildroot}/%{python_sitearch}/

%check
./test/test.sh

%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