File cadabra.spec of Package cadabra

#
# spec file for package cadabra
#
# Copyright (c) 2014 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:           cadabra
Version:        1.41
Release:        0
Summary:        A computer algebra system for solving problems in field theory
License:        GPL-3.0+
Group:          Productivity/Scientific/Math
Url:            http://cadabra.phi-sci.com
Source:         http://cadabra.phi-sci.com/%{name}-%{version}.tar.gz
BuildRequires:  LiE
BuildRequires:  gcc-c++
BuildRequires:  gmp-devel
BuildRequires:  pcre-devel
BuildRequires:  pkg-config
BuildRequires:  texlive-dvipng
BuildRequires:  texlive-dvipng-bin
BuildRequires:  texlive-latex-bin
BuildRequires:  texlive-mh
BuildRequires:  pkgconfig(glibmm-2.4)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtkmm-2.4)
BuildRequires:  pkgconfig(modglue)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(pangomm-1.4)
Requires:       LiE
Requires:       texlive-dvipng-bin
Requires:       texlive-latex-bin
Requires:       texlive-mh
Requires:       texlive-tableaux
Requires(post): texlive-kpathsea-bin
Requires(postun): texlive-kpathsea-bin
Recommends:     %{name}-doc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Cadabra is a computer algebra system (CAS) designed specifically for
the solution of problems encountered in field theory. It has extensive
functionality for tensor computer algebra, tensor polynomial
simplification including multi-term symmetries, fermions and
anti-commuting variables, Clifford algebras and Fierz transformations,
implicit coordinate dependence, multiple index types and many more.
The input format is a subset of TeX. Both a command-line and a
graphical interface are available.

Key features of Cadabra:
- Input and output using TeX notation.
- Designed for field-theory problems, with handling of anti-commuting
  and non-commuting objects without special notations for their
  products, gamma matrix algebra, Fierz identities, Dirac conjugation,
  vielbeine, flat and curved, covariant and contravariant indices,
  implicit dependence of tensors on coordinates, partial and covariant
  derivatives...
- Powerful tensor simplification algorithms, not just for mono-term
  symmetries but also for multi-terms symmetries like the Bianchi
  identity, or dimensionally-dependent symmetries like the Schouten
  identity.


%package doc
Summary:        A computer algebra system for solving problems in field theory
Group:          Documentation/Other

%description doc
Cadabra is a computer algebra system (CAS) designed specifically for
the solution of problems encountered in field theory. It has extensive
functionality for tensor computer algebra, tensor polynomial
simplification including multi-term symmetries, fermions and
anti-commuting variables, Clifford algebras and Fierz transformations,
implicit coordinate dependence, multiple index types and many more.
The input format is a subset of TeX. Both a command-line and a
graphical interface are available.

This package provides the documentation for %{name}.

%prep
%setup -q

%build
%configure --enable-gui
make %{?_smp_mflags}

%install
%make_install

%post
/usr/bin/texhash

%postun
/usr/bin/texhash

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%{_bindir}/%{name}
%{_bindir}/x%{name}
%dir %{_datadir}/TeXmacs
%dir %{_datadir}/TeXmacs/plugins
%{_datadir}/TeXmacs/plugins/%{name}/
%{_datadir}/texmf/tex/latex/%{name}/
%{_datadir}/pixmaps/cadabra.png
%{_datadir}/applications/cadabra.desktop
%{_mandir}/man1/*cadabra*.gz

%files doc
%defattr(-,root,root)
%{_datadir}/doc/%{name}/

%changelog