2017-05-03 18:08:41 +02:00
|
|
|
#
|
|
|
|
# spec file for package cadabra2
|
|
|
|
#
|
2020-01-04 14:47:43 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-05-03 18:08:41 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-25 14:52:03 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-05-03 18:08:41 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cadabra2
|
2020-01-04 14:47:43 +01:00
|
|
|
Version: 2.2.8
|
2017-05-03 18:08:41 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A computer algebra system for solving problems in field theory
|
2018-04-06 15:47:12 +02:00
|
|
|
License: GPL-3.0-or-later
|
2017-05-03 18:08:41 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2020-01-04 14:47:43 +01:00
|
|
|
URL: https://cadabra.science/
|
2017-05-03 18:08:41 +02:00
|
|
|
Source0: https://github.com/kpeeters/cadabra2/archive/%{version}.tar.gz
|
2020-01-04 14:47:43 +01:00
|
|
|
Source1: %{name}-gtk.appdata.xml
|
Accepting request 560498 from home:kwk:branches:science
- fix Factory build, add -pthread to CMAKE_CXX_FLAGS
- fix Leap build, use correct RPATH (lib vs lib64)
- added cadabra2-2.1.7.patch
- Update to version 2.1.7:
* Another interim release to fix bugs and sort out the build
process on new distros.
- Update to version 2.1.5:
* Interim release to get a number of bug fixes out to everyone,
and to use as basis for binary packages for several new
distributions.
- Drop cadabra2-cmake-error.patch; fixed upstream.
- Fix Group for cadabra2-doc-pdf: Documentation/PDF doesn't exist,
use Documentation/Other
- Change hashbang "/usr/bin/env python3" to "/usr/bn/python3".
- Refresh source tarball from upstream: upstream might have pushed
out a new tarball without changes to the versioning, making the
source validator service complain about the mismatch.
- Update to version 2.1.5:
* Interim release with as its main feature the map_sympy command
which makes it much easier to apply sympy algorithms to
component expressions.
- Drop cadabra2-include-functional-header.patch; fixed upstream.
- Add an appdata file and install it to /usr/share/metainfo;
BuildRequires on appstream-glib added.
- Add cadabra2-include-functional-header.patch: Explicitly include
the <functional> header in core/Functional.hh to fix building on
openSUSE > 1320; apply without conditionals as it doesn't hurt
to have this generally.
- BuildRequires: texlive-epstopdf instead of texlive-epstopdf-bin
to fix build failures on Leap 42.1.
- Update to version 2.1.4:
* Enable packages to be written using Cadabra notation, instead
of only pure Python (still experimental).
* Young tableaux properties Tableau and FilledTableau the
related algorithm lr_tensor are available again.
* Sorting Majorana spinors possible again using sort_spinors.
* Extended rename_dummies with capability to rename indices to
different set.
* Make vary work on powers of expressions with dummy indices.
* Substitution of sub-sums now available (e.g. substitute of
A+B=C in ex:=A+B+C+D).
* Improved LaTeX export to make printed notebooks look much
better.
* Many improvements to the component engine, in particular for
handling of derivatives and fractions involving tensors.
* Better line spacing for line-wrapped equations.
* Smarter scroll-to-cell behaviour of the notebook.
* Canonicalising expressions with component values for indices
now works again.
* The unwrap algorithm can now be guided about what to unwrap,
and also knows about spinors and Dirac bars.
* Experimental support to use Cadabra directly from C++ code, as
a library (see the c++lib directory).
* Fixes for using a custom post_process defined as a function
nested inside another.
* Rudimentary timing logic, try server.totals();
* Fixed: pasting text in the notebook sometimes double-pastes.
* Fixed: split_index does not work properly on left- and
right-hand side of equations.
* Fixed: sort_product does not always sort expressions.
* Fixed: eliminate_metric only acts at top level of an
expression, should have deep=True by default.
* Fixed: a bug which would lead to a segfault when using
deep=True.
- Rebase cadabra2-cmake-error.patch for version update.
- Add %{name}-rpmlintrc file to suppress warnings about the
presence of "__DATE__" and/or "__TIME__" in generated html files
for documentation (%{name}-doc).
- Initial package.
- Add cadabra2-cmake-error.patch to make sure CMakeLists.txt
invokes "execute_process" instead of "execute"; fixes build
failures.
OBS-URL: https://build.opensuse.org/request/show/560498
OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=13
2017-12-29 10:33:44 +01:00
|
|
|
# PATCH-FIX-OPENSUSE add -pthread to CMAKE_CXX_FLAGS (as adivised in https://github.com/potree/PotreeConverter/issues/136) kkaempf@suse.de
|
2018-04-06 15:47:12 +02:00
|
|
|
Patch1: cadabra2-add-pthread-to-cxxflags.patch
|
2020-01-04 14:47:43 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://github.com/kpeeters/cadabra2/commit/71a406f32a654d2037b1d011f44af3fce4d9b50d.patch
|
|
|
|
Patch2: Fix-linking-of-cadabra-module.patch
|
2017-07-31 16:09:09 +02:00
|
|
|
BuildRequires: appstream-glib
|
2017-05-03 18:08:41 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
2018-04-10 09:23:20 +02:00
|
|
|
BuildRequires: gcc-c++ >= 4.9
|
2017-05-03 18:08:41 +02:00
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: hicolor-icon-theme
|
2018-04-10 09:23:20 +02:00
|
|
|
BuildRequires: libboost_date_time-devel
|
2017-05-03 18:08:41 +02:00
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
BuildRequires: libboost_program_options-devel
|
|
|
|
BuildRequires: libboost_python3-devel
|
|
|
|
BuildRequires: libboost_regex-devel
|
|
|
|
BuildRequires: libboost_system-devel
|
2020-01-04 14:47:43 +01:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: pkgconfig
|
2017-05-03 18:08:41 +02:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-matplotlib
|
|
|
|
BuildRequires: python3-sympy
|
2020-01-04 14:47:43 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(gtkmm-3.0)
|
|
|
|
BuildRequires: pkgconfig(jsoncpp)
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
Recommends: %{name}-examples
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Cadabra2 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 Cadabra2:
|
|
|
|
- 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 gui
|
|
|
|
Summary: GUI for cadabra2: computer algebra system for problems in field theory
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Obsoletes: cadabra < 2.0
|
|
|
|
Provides: cadabra = %{version}
|
|
|
|
|
|
|
|
%description gui
|
|
|
|
Cadabra2 is a computer algebra system (CAS) designed specifically for
|
|
|
|
the solution of problems encountered in field theory.
|
|
|
|
|
|
|
|
This package provides the GUI for %{name} and it's desktop menu integration.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: A computer algebra system for solving problems in field theory
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
Cadabra2 is a computer algebra system (CAS) designed specifically for
|
|
|
|
the solution of problems encountered in field theory.
|
|
|
|
|
|
|
|
This package provides examples for %{name}.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: A computer algebra system for solving problems in field theory
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Obsoletes: cadabra-doc < 2.0
|
|
|
|
Provides: cadabra-doc = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Cadabra2 is a computer algebra system (CAS) designed specifically for
|
|
|
|
the solution of problems encountered in field theory.
|
|
|
|
|
|
|
|
This package provides html documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
Accepting request 560498 from home:kwk:branches:science
- fix Factory build, add -pthread to CMAKE_CXX_FLAGS
- fix Leap build, use correct RPATH (lib vs lib64)
- added cadabra2-2.1.7.patch
- Update to version 2.1.7:
* Another interim release to fix bugs and sort out the build
process on new distros.
- Update to version 2.1.5:
* Interim release to get a number of bug fixes out to everyone,
and to use as basis for binary packages for several new
distributions.
- Drop cadabra2-cmake-error.patch; fixed upstream.
- Fix Group for cadabra2-doc-pdf: Documentation/PDF doesn't exist,
use Documentation/Other
- Change hashbang "/usr/bin/env python3" to "/usr/bn/python3".
- Refresh source tarball from upstream: upstream might have pushed
out a new tarball without changes to the versioning, making the
source validator service complain about the mismatch.
- Update to version 2.1.5:
* Interim release with as its main feature the map_sympy command
which makes it much easier to apply sympy algorithms to
component expressions.
- Drop cadabra2-include-functional-header.patch; fixed upstream.
- Add an appdata file and install it to /usr/share/metainfo;
BuildRequires on appstream-glib added.
- Add cadabra2-include-functional-header.patch: Explicitly include
the <functional> header in core/Functional.hh to fix building on
openSUSE > 1320; apply without conditionals as it doesn't hurt
to have this generally.
- BuildRequires: texlive-epstopdf instead of texlive-epstopdf-bin
to fix build failures on Leap 42.1.
- Update to version 2.1.4:
* Enable packages to be written using Cadabra notation, instead
of only pure Python (still experimental).
* Young tableaux properties Tableau and FilledTableau the
related algorithm lr_tensor are available again.
* Sorting Majorana spinors possible again using sort_spinors.
* Extended rename_dummies with capability to rename indices to
different set.
* Make vary work on powers of expressions with dummy indices.
* Substitution of sub-sums now available (e.g. substitute of
A+B=C in ex:=A+B+C+D).
* Improved LaTeX export to make printed notebooks look much
better.
* Many improvements to the component engine, in particular for
handling of derivatives and fractions involving tensors.
* Better line spacing for line-wrapped equations.
* Smarter scroll-to-cell behaviour of the notebook.
* Canonicalising expressions with component values for indices
now works again.
* The unwrap algorithm can now be guided about what to unwrap,
and also knows about spinors and Dirac bars.
* Experimental support to use Cadabra directly from C++ code, as
a library (see the c++lib directory).
* Fixes for using a custom post_process defined as a function
nested inside another.
* Rudimentary timing logic, try server.totals();
* Fixed: pasting text in the notebook sometimes double-pastes.
* Fixed: split_index does not work properly on left- and
right-hand side of equations.
* Fixed: sort_product does not always sort expressions.
* Fixed: eliminate_metric only acts at top level of an
expression, should have deep=True by default.
* Fixed: a bug which would lead to a segfault when using
deep=True.
- Rebase cadabra2-cmake-error.patch for version update.
- Add %{name}-rpmlintrc file to suppress warnings about the
presence of "__DATE__" and/or "__TIME__" in generated html files
for documentation (%{name}-doc).
- Initial package.
- Add cadabra2-cmake-error.patch to make sure CMakeLists.txt
invokes "execute_process" instead of "execute"; fixes build
failures.
OBS-URL: https://build.opensuse.org/request/show/560498
OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=13
2017-12-29 10:33:44 +01:00
|
|
|
%patch1 -p1
|
2020-01-04 14:47:43 +01:00
|
|
|
%patch2 -p1
|
2019-03-19 14:51:22 +01:00
|
|
|
rm examples/.gitignore
|
2020-01-04 14:47:43 +01:00
|
|
|
# Remove timestamps from Doxygen HTML files
|
|
|
|
echo "HTML_TIMESTAMP = NO" >> config/Doxyfile
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%build
|
2020-01-04 14:47:43 +01:00
|
|
|
%cmake \
|
|
|
|
-DCMAKE_MANDIR=%{_mandir} \
|
|
|
|
-DPACKAGING_MODE=ON \
|
|
|
|
-DINSTALL_LATEX_DIR=%{_datadir}/texmf \
|
|
|
|
-DENABLE_FRONTEND=ON \
|
|
|
|
-DENABLE_SYSTEM_JSONPP=ON \
|
|
|
|
-DENABLE_MATHEMATICA=OFF \
|
2017-05-03 18:08:41 +02:00
|
|
|
..
|
|
|
|
|
2020-01-04 14:47:43 +01:00
|
|
|
%cmake_build
|
|
|
|
cd ..
|
2019-02-01 13:15:46 +01:00
|
|
|
make %{?_smp_mflags} doc
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%install
|
2020-01-04 14:47:43 +01:00
|
|
|
%cmake_install
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%suse_update_desktop_file cadabra2-gtk
|
|
|
|
|
2017-07-31 16:09:09 +02:00
|
|
|
# INSTALL APPDATA TO /usr/share/metainfo
|
2020-01-04 14:47:43 +01:00
|
|
|
install -D -m0644 %{S:1} %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xml
|
2017-07-31 16:09:09 +02:00
|
|
|
|
2017-11-02 13:06:49 +01:00
|
|
|
# Replace "/usr/bin/env python3" hashbang by "/usr/bin/python3"
|
|
|
|
sed -E -i "s|^#!/usr/bin/env python3|#!/usr/bin/python3|" %{buildroot}%{_bindir}/cadabra2
|
|
|
|
|
2018-04-06 15:47:12 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/cadabra2/
|
|
|
|
ln %{buildroot}%{_datadir}/cadabra2/latex/* %{buildroot}%{_datadir}/texmf/tex/latex/cadabra2/
|
|
|
|
|
2019-03-19 14:51:22 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2018-01-28 19:40:31 +01:00
|
|
|
|
2019-03-19 14:51:22 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%files
|
2019-03-19 14:51:22 +01:00
|
|
|
%doc README.rst
|
|
|
|
%license doc/license.txt
|
2018-04-06 15:47:12 +02:00
|
|
|
%{_bindir}/cadabra2cadabra
|
2020-01-04 14:47:43 +01:00
|
|
|
%{_bindir}/cadabra2latex
|
2017-05-03 18:08:41 +02:00
|
|
|
%{_bindir}/cadabra-server
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/%{name}python
|
|
|
|
%{_bindir}/%{name}html
|
|
|
|
%{_datadir}/%{name}/
|
2020-01-04 14:47:43 +01:00
|
|
|
%{_datadir}/texmf
|
2019-03-19 14:51:22 +01:00
|
|
|
%{_mandir}/man1/cadabra*.1%{?ext_man}
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%files gui
|
|
|
|
%{_bindir}/%{name}-gtk
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/cadabra2-gtk.*
|
|
|
|
%{_datadir}/applications/cadabra2-gtk.desktop
|
2017-07-31 16:09:09 +02:00
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/*.appdata.xml
|
2017-05-03 18:08:41 +02:00
|
|
|
|
|
|
|
%files examples
|
|
|
|
%doc examples/
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc doxygen/html
|
|
|
|
|
|
|
|
%changelog
|