Dominique Leuenberger 2019-03-26 21:31:20 +00:00 committed by Git OBS Bridge
commit 3307dd0c7b
5 changed files with 29 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e75e5bf1763e55d795eb876bff61e1b5b359488a8b5db0b45eabd0d04df92c9
size 23960964

3
2.2.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4e96d413b71736a304f2b6b035e118d72017b5c6ecc019914e47f174055095c1
size 24064420

View File

@ -1,8 +1,8 @@
Index: cadabra2-2.2.4/CMakeLists.txt
Index: cadabra2-2.2.5/CMakeLists.txt
===================================================================
--- cadabra2-2.2.4.orig/CMakeLists.txt
+++ cadabra2-2.2.4/CMakeLists.txt
@@ -102,7 +102,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMP
--- cadabra2-2.2.5.orig/CMakeLists.txt
+++ cadabra2-2.2.5/CMakeLists.txt
@@ -104,7 +104,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMP
message(FATAL_ERROR "GCC version must be at least 4.9 for regex support! See http://askubuntu.com/questions/428198/getting-installing-gcc-g-4-9-on-ubuntu and then set the environment variables CXX to g++-4.9 and CC to gcc-4.9. You may have to erase the build directory before re-running cmake.")
endif()
endif()

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Mar 15 14:17:41 UTC 2019 - Atri B <badshah400@gmail.com>
- Update to version 2.2.5:
* Interim bug fix release with fixes for upcoming Debian as well
as the new explicit_indices algorithm.
- Move man files to the correct _mandir.
- Minor cleanups using spec-cleaner.
-------------------------------------------------------------------
Fri Jan 25 08:44:42 UTC 2019 - badshah400@gmail.com

View File

@ -17,7 +17,7 @@
Name: cadabra2
Version: 2.2.4
Version: 2.2.5
Release: 0
Summary: A computer algebra system for solving problems in field theory
License: GPL-3.0-or-later
@ -155,12 +155,15 @@ This package provides html documentation for %{name}.
%prep
%setup -q
%patch1 -p1
rm examples/.gitignore
%build
# FIXME: you should use %%cmake macro but it doesn't work
mkdir build && pushd build
cmake \\\
-DCMAKE_INSTALL_PREFIX=%{_prefix} \\\
-DCMAKE_MANDIR=%{_mandir} \\\
-DPACKAGING_MODE=ON \\\
%if 0%{?suse_version} <= 1320
-DUSE_PYTHON_3=OFF \\\
@ -185,16 +188,16 @@ 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
/sbin/ldconfig
# Move man files to proper %%_mandir
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_prefix}/man/man1/* %{buildroot}%{_mandir}/man1/
%postun
/sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%if 0%{?suse_version} <= 1320
%post gui
@ -207,8 +210,8 @@ ln %{buildroot}%{_datadir}/cadabra2/latex/* %{buildroot}%{_datadir}/texmf/tex/la
%endif
%files
%defattr(-,root,root)
%doc README.rst doc/license.txt
%doc README.rst
%license doc/license.txt
%{_bindir}/cadabra2cadabra
%{_bindir}/cadabra-server
%{_bindir}/%{name}
@ -216,9 +219,9 @@ ln %{buildroot}%{_datadir}/cadabra2/latex/* %{buildroot}%{_datadir}/texmf/tex/la
%{_bindir}/%{name}html
%{_datadir}/%{name}/
%{_datadir}/texmf/tex/latex/cadabra2/
%{_mandir}/man1/cadabra*.1%{?ext_man}
%files gui
%defattr(-,root,root)
%{_bindir}/%{name}-gtk
%{_datadir}/icons/hicolor/*/apps/cadabra2-gtk.*
%{_datadir}/applications/cadabra2-gtk.desktop
@ -226,11 +229,9 @@ ln %{buildroot}%{_datadir}/cadabra2/latex/* %{buildroot}%{_datadir}/texmf/tex/la
%{_datadir}/metainfo/*.appdata.xml
%files examples
%defattr(-,root,root)
%doc examples/
%files doc
%defattr(-,root,root)
%doc doxygen/html
%changelog