SHA256
1
0
forked from pool/cadabra2

Accepting request 685427 from home:badshah400:branches:science

- 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.

OBS-URL: https://build.opensuse.org/request/show/685427
OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=26
This commit is contained in:
Atri Bhattacharya 2019-03-19 13:51:22 +00:00 committed by Git OBS Bridge
parent 778b0ba166
commit 8f4213d8e2
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.5.orig/CMakeLists.txt
+++ cadabra2-2.2.4/CMakeLists.txt +++ cadabra2-2.2.5/CMakeLists.txt
@@ -102,7 +102,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMP @@ -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.") 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()
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 Fri Jan 25 08:44:42 UTC 2019 - badshah400@gmail.com

View File

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