Accepting request 595105 from science
OBS-URL: https://build.opensuse.org/request/show/595105 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cadabra2?expand=0&rev=8
This commit is contained in:
commit
4cab15b2d2
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:95866f8af23ad7b166379b1db767484985a0ee87e75d5a8bc03d22708f705f1e
|
||||
size 4595561
|
3
2.2.0.tar.gz
Normal file
3
2.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4e0a408ab8fa611091bc4d776dd44efd730c2651e02e62cfd0251bd1d6b96249
|
||||
size 23915602
|
@ -1,12 +0,0 @@
|
||||
diff -ruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-cadabra2-2.1.7/CMakeLists.txt ./CMakeLists.txt
|
||||
--- ../orig-cadabra2-2.1.7/CMakeLists.txt 2017-11-19 20:27:27.000000000 +0100
|
||||
+++ ./CMakeLists.txt 2017-12-29 09:34:50.496366051 +0100
|
||||
@@ -202,7 +202,7 @@
|
||||
include(CPack)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -pthread")
|
||||
endif()
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
13
cadabra2-add-pthread-to-cxxflags.patch
Normal file
13
cadabra2-add-pthread-to-cxxflags.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: cadabra2-2.2.0/CMakeLists.txt
|
||||
===================================================================
|
||||
--- cadabra2-2.2.0.orig/CMakeLists.txt
|
||||
+++ cadabra2-2.2.0/CMakeLists.txt
|
||||
@@ -80,7 +80,7 @@ debug_message("Initial compiler flags: $
|
||||
|
||||
# GCC
|
||||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Wno-unused-but-set-variable")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Wno-unused-but-set-variable -pthread")
|
||||
endif()
|
||||
|
||||
# Clang
|
@ -1,3 +1,44 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 9 01:46:11 UTC 2018 - badshah400@gmail.com
|
||||
|
||||
- BuildRequires: libboost_date_time-devel instead of
|
||||
BuildRequires: libboost_date_time1_66_0-devel, and only for
|
||||
openSUSE > 1320; boost-devel in its entirety is already required
|
||||
for older versions.
|
||||
- gcc-c++ >= 4.9 now required.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 30 10:21:17 UTC 2018 - badshah400@gmail.com
|
||||
|
||||
- Update to version 2.2.0:
|
||||
* Experimental support for modifying the expression tree
|
||||
directly from Python (see e.g. Fourier transforms).
|
||||
* Fix for integration by parts (gh#kpeeters/cadabra2#71)
|
||||
* Fix for incorrect conversion to sympy expressions.
|
||||
* Optionally build with support for Mathematica scalar backend;
|
||||
see map_mma.
|
||||
* Many bugfixes for expression display and sympy conversion.
|
||||
* Now using pybind instead of boost.python, in preparation for
|
||||
* Windows port, and to enable building against Anaconda.
|
||||
* Copy/paste of output cells added.
|
||||
* New simplify command, which simplifies the scalar parts of
|
||||
expressions, and can be switched to use either Sympy or
|
||||
Mathematica.
|
||||
* Fix to treat derivatives with respect to explicit coordinates
|
||||
as scalars in evaluate; see this Q&A post.
|
||||
* Fix for failure to flag errors for WeightInherit property.
|
||||
* Fixed: vary on single-term expressions
|
||||
* (gh#kpeeters/cadabra2#57)
|
||||
* Fixed: evaluate with dense factors and no 'values' property on
|
||||
indices (gh#kpeeters/cadabra2#68)
|
||||
- Rename and rebase cadabra2-2.1.7.patch to
|
||||
cadabra2-add-pthread-to-cxxflags.patch.
|
||||
- Add BuildRequires: libboost_date_time1_66_0-devel, new
|
||||
dependency with version 2.2.0.
|
||||
- All python bindings are now required to be installed in
|
||||
_datadir.
|
||||
- New binary cadabra2cadabra.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 2 21:21:57 UTC 2018 - stefan.bruens@rwth-aachen.de
|
||||
|
||||
|
@ -17,21 +17,21 @@
|
||||
|
||||
|
||||
Name: cadabra2
|
||||
Version: 2.1.7
|
||||
Version: 2.2.0
|
||||
Release: 0
|
||||
Summary: A computer algebra system for solving problems in field theory
|
||||
License: GPL-3.0+
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Scientific/Math
|
||||
Url: http://cadabra.science/
|
||||
Source0: https://github.com/kpeeters/cadabra2/archive/%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
Source2: %{name}-gtk.appdata.xml
|
||||
# PATCH-FIX-OPENSUSE add -pthread to CMAKE_CXX_FLAGS (as adivised in https://github.com/potree/PotreeConverter/issues/136) kkaempf@suse.de
|
||||
Patch1: cadabra2-2.1.7.patch
|
||||
Patch1: cadabra2-add-pthread-to-cxxflags.patch
|
||||
BuildRequires: appstream-glib
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-c++ >= 4.9
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libuuid-devel
|
||||
@ -76,6 +76,7 @@ Recommends: %{name}-doc
|
||||
Recommends: %{name}-examples
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1320
|
||||
BuildRequires: libboost_date_time-devel
|
||||
BuildRequires: libboost_filesystem-devel
|
||||
BuildRequires: libboost_headers-devel
|
||||
BuildRequires: libboost_program_options-devel
|
||||
@ -199,6 +200,11 @@ install -D -m0644 %{S:2} %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xm
|
||||
# Replace "/usr/bin/env python3" hashbang by "/usr/bin/python3"
|
||||
sed -E -i "s|^#!/usr/bin/env python3|#!/usr/bin/python3|" %{buildroot}%{_bindir}/cadabra2
|
||||
|
||||
rm %{buildroot}%{_libexecdir}/*.a
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/cadabra2/
|
||||
ln %{buildroot}%{_datadir}/cadabra2/latex/* %{buildroot}%{_datadir}/texmf/tex/latex/cadabra2/
|
||||
|
||||
%post
|
||||
# FIXME: ENABLE WHEN LATEX DOC BUILDING IS FIXED
|
||||
#%{_bindir}/texhash
|
||||
@ -222,21 +228,12 @@ sed -E -i "s|^#!/usr/bin/env python3|#!/usr/bin/python3|" %{buildroot}%{_bindir}
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.rst doc/license.txt
|
||||
%{_bindir}/cadabra2cadabra
|
||||
%{_bindir}/cadabra-server
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}python
|
||||
%{_bindir}/%{name}html
|
||||
%if 0%{?suse_version} > 1320
|
||||
%{python3_sitearch}/cdb
|
||||
%{python3_sitearch}/cadabra2.so
|
||||
%{python3_sitearch}/cadabra2_defaults.py
|
||||
%else
|
||||
%{python_sitearch}/cdb
|
||||
%{python_sitearch}/cadabra2.so
|
||||
%{python_sitearch}/cadabra2_defaults.py
|
||||
%endif
|
||||
%{_datadir}/%{name}/
|
||||
%{_libexecdir}/*.so
|
||||
%{_datadir}/texmf/tex/latex/cadabra2/
|
||||
|
||||
%files gui
|
||||
|
Loading…
Reference in New Issue
Block a user