Compare commits
63 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1baf85d396 | |||
| f323c30a3c | |||
| 1b9b80480a | |||
| 321fa43a0e | |||
| fe698bdf4d | |||
| 0f6a2a808d | |||
| 7b07fcfc90 | |||
| c9a32aef84 | |||
| f4a008f057 | |||
| 7c53f840b0 | |||
| 95bdddb8b4 | |||
| 3ee93377b9 | |||
| 4a437a9439 | |||
| ae4fc2659b | |||
| 6169922e17 | |||
| de16f9bb5f | |||
| 0f7e19f3e1 | |||
| 385e319de7 | |||
|
|
3ad08d3ede | ||
|
|
955d082677 | ||
| 12be948839 | |||
| 16fd147285 | |||
| af0b2eaf73 | |||
| b7572b305c | |||
| a0638c4e7a | |||
| e6b2a75580 | |||
| 4da690b85d | |||
| 36ede670d8 | |||
|
|
634885118b | ||
|
|
a86de127cc | ||
| 8ea9c3804a | |||
| e7a3601a9e | |||
|
|
7c1013515b | ||
| 6ab1bbe323 | |||
|
|
7a978a052c | ||
| b5b7aad6c0 | |||
|
|
140e82b749 | ||
| 3ddd561225 | |||
| 31d6d121fb | |||
| 5743104487 | |||
| 70f5fa0cfd | |||
| 500ca4646f | |||
| e443cb25ce | |||
| 073d1db5df | |||
| c7706666d5 | |||
| 969fb363c0 | |||
| 92196de4e5 | |||
|
|
0549f8d879 | ||
|
|
5349a2b06e | ||
|
|
3e1be5ad88 | ||
|
|
fd0549375d | ||
|
|
5f65058589 | ||
|
|
ac3fa4a3bf | ||
|
|
6e31184b44 | ||
|
|
874e9bce95 | ||
|
|
e4f351683b | ||
|
|
d945adbbe6 | ||
|
|
bf436d7d35 | ||
|
|
f38b06a12c | ||
|
|
405d5225e7 | ||
|
|
47e6afb2df | ||
|
|
bc7b7c348a | ||
|
|
3618338923 |
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>doc</package>
|
||||
</multibuild>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a482f15bfb89f1a350e06ac7d55f173976d873bcc4900bcb52a37627da066f8
|
||||
size 972922
|
||||
3
ginac-1.8.9.tar.bz2
Normal file
3
ginac-1.8.9.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6cfd46cf4e373690e12d16b772d7aed0f5c433da8c7ecd2477f2e736483bb439
|
||||
size 1173214
|
||||
64
ginac-cmake-install-doc.patch
Normal file
64
ginac-cmake-install-doc.patch
Normal file
@@ -0,0 +1,64 @@
|
||||
Index: ginac-1.7.11.git20200829/tools/CMakeLists.txt
|
||||
===================================================================
|
||||
--- ginac-1.7.11.git20200829.orig/tools/CMakeLists.txt
|
||||
+++ ginac-1.7.11.git20200829/tools/CMakeLists.txt
|
||||
@@ -2,6 +2,8 @@
|
||||
add_executable(viewgar viewgar.cpp)
|
||||
target_link_libraries(viewgar ginac::ginac)
|
||||
install(TARGETS viewgar RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/viewgar.1.in ${CMAKE_CURRENT_SOURCE_DIR}/viewgar.1)
|
||||
+install(FILES viewgar.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCC)
|
||||
set (CC gcc)
|
||||
Index: ginac-1.7.11.git20200829/ginsh/CMakeLists.txt
|
||||
===================================================================
|
||||
--- ginac-1.7.11.git20200829.orig/ginsh/CMakeLists.txt
|
||||
+++ ginac-1.7.11.git20200829/ginsh/CMakeLists.txt
|
||||
@@ -60,3 +60,6 @@ target_link_libraries(ginsh ginac::ginac
|
||||
target_include_directories(ginsh PRIVATE ${ginsh_include_directories})
|
||||
target_compile_definitions(ginsh PRIVATE HAVE_CONFIG_H)
|
||||
install(TARGETS ginsh RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
+
|
||||
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ginsh.1.in ${CMAKE_CURRENT_SOURCE_DIR}/ginsh.1)
|
||||
+install(FILES ginsh.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
|
||||
Index: ginac-1.7.11.git20200829/doc/reference/CMakeLists.txt
|
||||
===================================================================
|
||||
--- ginac-1.7.11.git20200829.orig/doc/reference/CMakeLists.txt
|
||||
+++ ginac-1.7.11.git20200829/doc/reference/CMakeLists.txt
|
||||
@@ -14,7 +14,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DI
|
||||
${CMAKE_CURRENT_BINARY_DIR}/Doxyfooter
|
||||
@ONLY)
|
||||
|
||||
-add_custom_target(html_dox
|
||||
+add_custom_target(html_dox ALL
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/DoxyfileHTML
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "DOXYGEN DoxyfileHTML")
|
||||
@@ -33,8 +33,11 @@ add_custom_command(
|
||||
|
||||
if (LATEX_FOUND)
|
||||
pdflatex_process(${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.tex)
|
||||
- add_custom_target(pdf_dox DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.pdf)
|
||||
+ add_custom_target(pdf_dox ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.pdf)
|
||||
add_dependencies(pdf pdf_dox)
|
||||
endif()
|
||||
|
||||
-
|
||||
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html_files/ DESTINATION ${CMAKE_INSTALL_DOCDIR}/html)
|
||||
+if (LATEX_FOUND)
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.pdf DESTINATION ${CMAKE_INSTALL_DOCDIR})
|
||||
+endif()
|
||||
Index: ginac-1.7.11.git20200829/doc/tutorial/CMakeLists.txt
|
||||
===================================================================
|
||||
--- ginac-1.7.11.git20200829.orig/doc/tutorial/CMakeLists.txt
|
||||
+++ ginac-1.7.11.git20200829/doc/tutorial/CMakeLists.txt
|
||||
@@ -43,7 +43,7 @@ macro(add_doc_format src fmt)
|
||||
DEPENDS ${_src} ${_${src}_tutorial_figures_${fmt}}
|
||||
COMMENT "TEXI2DVI ${src}.texi => ${src}.${fmt}"
|
||||
VERBATIM)
|
||||
- add_custom_target(${fmt}_${src}_tutorial DEPENDS ${_out})
|
||||
+ add_custom_target(${fmt}_${src}_tutorial ALL DEPENDS ${_out})
|
||||
add_dependencies(${fmt} ${fmt}_${src}_tutorial)
|
||||
endmacro()
|
||||
|
||||
13
ginac-fix-makeindex.patch
Normal file
13
ginac-fix-makeindex.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: ginac-1.7.11.git20200829/doc/CMakeLists.txt
|
||||
===================================================================
|
||||
--- ginac-1.7.11.git20200829.orig/doc/CMakeLists.txt
|
||||
+++ ginac-1.7.11.git20200829/doc/CMakeLists.txt
|
||||
@@ -32,7 +32,7 @@ endmacro()
|
||||
macro(pdflatex_process texfile)
|
||||
get_filename_component(_dirname "${texfile}" PATH)
|
||||
get_filename_component(_basename "${texfile}" NAME_WE)
|
||||
- set(_idx ${_dirname}/${_basename}.idx)
|
||||
+ set(_idx ${_basename}.idx)
|
||||
set(_ind ${_dirname}/${_basename}.ind)
|
||||
set(_pdf ${_dirname}/${_basename}.pdf)
|
||||
add_custom_command(
|
||||
309
ginac.changes
309
ginac.changes
@@ -1,3 +1,312 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 16 06:24:40 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.9:
|
||||
* Fix compilation with gcc 15.
|
||||
- Changes from version 1.8.7:
|
||||
* Fix a compilation-dependent crash in the built-in expression
|
||||
parser.
|
||||
* Work around weird C++ RTTI behaviour on MacOS (like on Win32).
|
||||
* Symbol assignment in ginsh recurses into other assigned
|
||||
symbols (again).
|
||||
- Bump so version in shlib package name in line with upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 28 08:36:20 UTC 2023 - jun wang <junguo.wang@suse.com>
|
||||
|
||||
- Update to version 1.8.7
|
||||
* Fix series expansion of polynomial(x)^n for small and large n.
|
||||
* Fix bugs in internal parser from strings.
|
||||
* Make ginsh evaluate line-by-line in non-interactive mode.
|
||||
* Several build fixes.
|
||||
* remove obsolete patch ginac-doc-latex-symbol-error.patch
|
||||
becuase it has applied into source code
|
||||
* update patch ginac-fix-makeindex.patch because one line
|
||||
changed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 12 04:20:35 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.6:
|
||||
* Fix wrong numeric info on transcendental functions.
|
||||
* Fix crash of evaluation of binomial(n, k) with negative
|
||||
integer n, k.
|
||||
- Add ginac-doc-latex-symbol-error.patch: Change a math symbol to
|
||||
get pdflatex to build reference.pdf correctly; upstream commit.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 8 03:35:32 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Make documentation build reproducible:
|
||||
* Use SVGs for HTML API reference documentation
|
||||
* Use dot to generate PDFs, instead of relying on ghostscript
|
||||
to convert EPS to PDF
|
||||
- Disable PDF API reference on Leap/SLE 15.x, fails to build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 4 14:44:55 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Update to version 1.8.5:
|
||||
* Speed up multivariate polynomial factorization
|
||||
* fix it in some rare corner cases where it didn't previously
|
||||
terminate.
|
||||
- Move graphviz build dependency to doc flavor package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 21 12:58:42 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.4:
|
||||
* Complete the support for sqrfree_parfrac().
|
||||
* Add info methods for transcendental functions.
|
||||
- Move BuildArch: noarch tag to relevant subpackages to calm
|
||||
rpmlint down.
|
||||
- Run fdupes for doc-html package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 24 11:04:31 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.3:
|
||||
* series_to_poly() can be used from ginsh.
|
||||
* Fix power::to_polynomial() for posint exponents.
|
||||
* Fix power::subs() in some special cases.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 1 20:41:15 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.2:
|
||||
* Fix elusive bug in comparing relational objects.
|
||||
* Ensure modular_form_kernel::series() includes an Order term.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 21 09:30:26 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Explicitly BuildRequire tex(enumitem.sty) and tex(alphalph.sty)
|
||||
for doc flavor.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 9 19:47:00 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.1:
|
||||
* Add method relational::canonical() and improve conversion of
|
||||
relational to Boolean (it now works on many simple symbolic
|
||||
cases).
|
||||
* Improve normalization of negative exponents.
|
||||
* Fix indexing multiply referenced objects with ex::operator[].
|
||||
* Make functions evalf() their arguments before doing own
|
||||
evalf().
|
||||
* Fix bugs in H_evalf() and in evaluation of iterated integrals.
|
||||
* Several portability improvements and compiler warning fixes.
|
||||
- New BuildRequires for doc flavour: tex(fancyvrb.sty).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 15 21:25:16 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.8.0
|
||||
* New routines for the numerical evaluation of iterated
|
||||
integrals like elliptic multiple polylogarithms or iterated
|
||||
integrals of modular forms.
|
||||
* Stronger normalization methods for expressions with powers.
|
||||
Where this is safe, GiNaC now tries replacing various kinds of
|
||||
powers in order to find and cancel common subexpressions.
|
||||
* Improved CMake build.
|
||||
- Drop _service file and go back to using full URL for Source.
|
||||
- Update so version in keeping with upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 11 15:27:09 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Use multibuild to split off documentation building from main
|
||||
package, whereby we build only the reference documentation and
|
||||
tutorial pdf for the "doc" flavour and the main libraries and
|
||||
binaries for the unflavoured pkg.
|
||||
- Move ginac.pdf from the -devel pkg into separate -doc-tutorial
|
||||
package as it requires texinfo and texlive to build, and bloats
|
||||
the main pkg BuildRequires; add Recommends: ginac-doc-tutorial
|
||||
for ginac-devel.
|
||||
- BuildRequires: python3-base instead of python3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 23:51:31 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Add _service file to use git version at commit 9b53600 as it
|
||||
includes various build related fixes over latest tagged version
|
||||
1.7.11.
|
||||
- Add patches to fix/improve builds when using cmake:
|
||||
* ginac-fix-makeindex.patch: Fix input file path when running
|
||||
`makeindex` which does not like absolute paths.
|
||||
* ginac-cmake-install-doc.patch: Install man and other
|
||||
documentation files when cmake is used for building.
|
||||
- Drop ginac-check-for-python3.patch: incorporated upstream.
|
||||
- Use cmake for build (Add BuildRequires: cmake and drop libtool).
|
||||
- Build API documentation in PDF and HTML formats and package as
|
||||
part of new %{name}-doc-pdf and %{name}-doc-html packages
|
||||
respectively (add appropriate BuildRequires).
|
||||
- Drop Group tags from packages.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 10:14:06 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.7.11:
|
||||
* Fix elusive bugs in factor() and in expand().
|
||||
- Changes from version 1.7.10:
|
||||
* Fix collect_common_factors() for hidden zero arguments.
|
||||
* Fix build on modern systems (C++20 and Python3).
|
||||
- Changes from version 1.7.9:
|
||||
* Fix unarchiving of overloaded functions.
|
||||
* Fix MinGW64 build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 21 12:05:39 UTC 2020 - Cristian Rodríguez <crrodriguez@opensuse.org>
|
||||
|
||||
- Fail to build if there are undefined symbols in the shared library
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 6 11:01:07 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 1.7.8
|
||||
* Fix pseries::evalf(), broken since 1.7.0.
|
||||
* Fix a corner-case bug in H_evalf().
|
||||
- Changes from version 1.7.4 to 1.7.7: See
|
||||
%{_docdir}/ginac-devel/NEWS file.
|
||||
- Use python3 instead of python(2) for building.
|
||||
- Add ginac-check-for-python3.patch to check for python3 during
|
||||
configure; requires running autoreconf before configure.
|
||||
- Rename devel file to ginac-devel, instead of libginac-devel,
|
||||
according to recommended naming guidelines.
|
||||
- Build and package API documentation and examples in html format;
|
||||
add BuildRequires necessary for this.
|
||||
- Use Requires(post) and Requires(preun) instead of PreReq.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 6 10:53:23 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Drop baselibs.conf completely: This was introdcued two years ago
|
||||
but in this entire time, nobody cared that the resulting -32bit
|
||||
library was not installable due to missing dependencies. So it
|
||||
is obvioulsy not used.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 4 07:53:46 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Drop ginac-devel from baselibs: baselibs was produced in 2016,
|
||||
but the deps for it where never in place, which means
|
||||
ginac-devel-32bit was never installable, and nobody cared.
|
||||
Clearly this -32bit package is not used (for -devel there is
|
||||
rarely a need for a -32bit package).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 11 22:53:20 UTC 2018 - badshah400@gmail.com
|
||||
|
||||
- Update to version 1.7.4:
|
||||
* Fix ABI compatibility with 1.7.[0-2] (broken unintentionally
|
||||
in 1.7.3).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 4 09:48:48 UTC 2018 - jengelh@inai.de
|
||||
|
||||
- Remove --with-pic which has no effect with --disable-static.
|
||||
- Fix the shlib package's RPM groups.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 3 16:59:16 UTC 2018 - avindra@opensuse.org
|
||||
|
||||
- Update to 1.7.3:
|
||||
* Speed up some corner cases of polynomial factorization.
|
||||
* Speed up some corner cases of gcd computation.
|
||||
* Speed up factorization of pre-factored polynomials.
|
||||
* Make matrix::solve() work with hidden (non-normal) zeros.
|
||||
* Fix bug in evaluation of real and imaginary parts of powers.
|
||||
* Fix some LaTeX output, add new function symbol::get_TeX_name().
|
||||
- cleanup with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 30 08:01:59 UTC 2017 - badshah400@gmail.com
|
||||
|
||||
- Update to version 1.7.2:
|
||||
* Fix memory leak in operators returning relationals, introduced
|
||||
in 1.7.0.
|
||||
* Make macro GINAC_DECLARE_REGISTERED_CLASS() work outside
|
||||
namespace GiNaC.
|
||||
* Fix some build issues.
|
||||
- Drop ginac-replace-mktemp-with-mkstemp.patch: incorporated
|
||||
upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 25 22:44:57 UTC 2016 - badshah400@gmail.com
|
||||
|
||||
- Fix baselibs.conf file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 21 10:09:16 UTC 2016 - badshah400@gmail.com
|
||||
|
||||
- Add ginac-replace-mktemp-with-mkstemp.patch: Replace unsafe and
|
||||
deprecated mktemp by its safe variant mkstemp; patch taken from
|
||||
upstream git and fixes an rpmlint warning.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 21 01:16:20 UTC 2016 - badshah400@gmail.com
|
||||
|
||||
- Update to version 1.7.1:
|
||||
* Fix crash in basic::subs(), visible in classes which don't
|
||||
override it.
|
||||
* Fix convergence failure in Li_projection.
|
||||
* Fix cliffor_bar() and clifford_star().
|
||||
* Improve performance of clifford_to_lst().
|
||||
* Fix compilation issues, reduce compiler warnings.
|
||||
- Changes from version 1.7.0:
|
||||
* Make use of C++11 features:
|
||||
- Use new language features 'auto', 'nullptr', 'constexpr',
|
||||
range-based for loops, the contextual keyword 'override',
|
||||
static 'noexcept' operator, etc.
|
||||
- Add initializer list ctors for container<>, lst and nested
|
||||
initializer lists ctor for class matrix.
|
||||
- Add many rvalue reference overloads for ctors from std
|
||||
containers. (Note that whether they really speed up things
|
||||
depends on whether evaluation leaves the container unchanged
|
||||
or not.)
|
||||
- Rvalue reference overloads for ctors from std containers
|
||||
made it possible to remove the manual 'discardable' hack and
|
||||
std::auto_ptr<T> for good.
|
||||
- New dynallocate<T>(args...) helper functions obsolete manual
|
||||
allocation on the heap and setting the dynallocated status
|
||||
flag.
|
||||
- Got rid of C++98ish algorithm features (bind2nd, etc.) and
|
||||
replaced them with lambdas.
|
||||
* Make add::eval(), mul::eval() more careful so they return an
|
||||
evaluated, canonical expression without compromise.
|
||||
* Remove 'level' argument of all .eval() methods.
|
||||
* Remove 'level' arguments of all .evalf() and .normal()
|
||||
methods. They were modeled after the .eval() methods.
|
||||
* Make relational::rhs() and lhs() nonvirtual.
|
||||
* Add support for power::info(info_flags::real).
|
||||
* Add fderivative::derivatives() method.
|
||||
* Remove broken info_flags::algebraic.
|
||||
* Remove unmaintained support for Cint.
|
||||
* Remove unfinished code for hash table-based expairseq.
|
||||
* Remove deprecated ex::to_rational(lst) and
|
||||
ex::to_polynomial(lst).
|
||||
* ginac-excompiler installs in $LIBEXECDIR now, not in $BINDIR.
|
||||
* Many minor performance enhancements.
|
||||
- Changes from previous versions 1.6.3 through 1.6.7: See
|
||||
http://www.ginac.de/News.html.
|
||||
- Add a baselibs.conf file.
|
||||
- Drop ginac-return-in-nonvoid.patch, no longer required.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 09:49:22 UTC 2011 - pgajdos@suse.com
|
||||
|
||||
- added libtool into explicit build requires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 19 17:14:18 UTC 2011 - werner.ho@gmx.de
|
||||
|
||||
- new version 1.6.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 23 23:08:17 UTC 2011 - arun@gmx.de
|
||||
|
||||
- added patch (git commit 265e5f9537)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 24 13:55:34 UTC 2011 - pgajdos@novell.com
|
||||
|
||||
|
||||
286
ginac.spec
286
ginac.spec
@@ -1,98 +1,270 @@
|
||||
#norootforbuild
|
||||
#
|
||||
# spec file for package ginac
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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.
|
||||
|
||||
Summary: C++ library for symbolic calculations
|
||||
Name: ginac
|
||||
Version: 1.6.0
|
||||
%define library_version 2
|
||||
Release: 0
|
||||
License: GPL
|
||||
Group: System/Libraries/C and C++
|
||||
Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2
|
||||
Url: http://www.ginac.de/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: cln-devel gcc-c++ readline-devel gmp-devel pkgconfig
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
|
||||
%global srcname ginac
|
||||
|
||||
%if "%{flavor}" == "doc"
|
||||
%bcond_without doc
|
||||
%define pkg_suffix -doc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == ""
|
||||
%bcond_with doc
|
||||
%endif
|
||||
|
||||
# Latex fails on Leap/SLE 15.x
|
||||
%if 0%{?suse_version} < 1550
|
||||
%bcond_with apiref_pdf
|
||||
%else
|
||||
%bcond_without apiref_pdf
|
||||
%endif
|
||||
|
||||
%define library_version 13
|
||||
Name: %{srcname}%{?pkg_suffix}
|
||||
Version: 1.8.9
|
||||
Release: 0
|
||||
Summary: C++ library for symbolic calculations
|
||||
License: GPL-2.0-only
|
||||
URL: https://www.ginac.de/
|
||||
Source0: https://www.ginac.de/%{srcname}-%{version}.tar.bz2
|
||||
# PATCH-FIX-UPSTREAM ginac-fix-makeindex.patch badshah400@gmail.com -- Fix input file path when running makeindex which does not like absolute paths
|
||||
Patch0: ginac-fix-makeindex.patch
|
||||
# PATCH-FIX-UPSTREAM ginac-cmake-install-doc.patch badshah400@gmail.com -- Install man and other documentation files when cmake is used for building
|
||||
Patch1: ginac-cmake-install-doc.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: cln-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: makeinfo
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-base
|
||||
BuildRequires: readline-devel
|
||||
# SECTION Requirements for building documentation
|
||||
%if %{with doc}
|
||||
#!BuildIgnore: texlive-tex4ht
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: graphviz-gnome
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: texlive-dvips
|
||||
BuildRequires: texlive-latex
|
||||
BuildRequires: texlive-pdftex
|
||||
BuildRequires: transfig
|
||||
BuildRequires: tex(float.sty)
|
||||
BuildRequires: tex(newunicodechar.sty)
|
||||
BuildRequires: tex(xcolor.sty)
|
||||
%if %{with apiref_pdf}
|
||||
BuildRequires: texlive-courier
|
||||
BuildRequires: texlive-helvetic
|
||||
BuildRequires: texlive-wasy
|
||||
BuildRequires: tex(8r.enc)
|
||||
BuildRequires: tex(adjustbox.sty)
|
||||
BuildRequires: tex(alphalph.sty)
|
||||
BuildRequires: tex(caption.sty)
|
||||
BuildRequires: tex(changepage.sty)
|
||||
BuildRequires: tex(colortbl.sty)
|
||||
BuildRequires: tex(enumitem.sty)
|
||||
BuildRequires: tex(etoc.sty)
|
||||
BuildRequires: tex(fancyhdr.sty)
|
||||
BuildRequires: tex(fancyvrb.sty)
|
||||
BuildRequires: tex(hanging.sty)
|
||||
BuildRequires: tex(helvet.sty)
|
||||
BuildRequires: tex(multirow.sty)
|
||||
BuildRequires: tex(natbib.sty)
|
||||
BuildRequires: tex(sectsty.sty)
|
||||
BuildRequires: tex(stackengine.sty)
|
||||
BuildRequires: tex(tabu.sty)
|
||||
BuildRequires: tex(tocloft.sty)
|
||||
BuildRequires: tex(ulem.sty)
|
||||
BuildRequires: tex(wasysym.sty)
|
||||
%endif
|
||||
%endif
|
||||
# /SECTION
|
||||
|
||||
%description
|
||||
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
||||
open framework for symbolic computation within the C++ programming language.
|
||||
|
||||
%package -n libginac-%{library_version}
|
||||
Summary: C++ library for symbolic calculations
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n libginac-%{library_version}
|
||||
%package -n libginac%{library_version}
|
||||
Summary: C++ library for symbolic calculations
|
||||
|
||||
%description -n libginac%{library_version}
|
||||
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
||||
open framework for symbolic computation within the C++ programming language.
|
||||
|
||||
%package -n libginac-devel
|
||||
Summary: GiNaC development libraries and header files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libginac-%{library_version} = %{version} cln-devel
|
||||
PreReq: %install_info_prereq
|
||||
%package devel
|
||||
Summary: GiNaC development libraries and header files
|
||||
Requires: cln-devel
|
||||
Requires: libginac%{library_version} = %{version}
|
||||
Provides: lib%{name}-devel = %{version}
|
||||
Obsoletes: lib%{name}-devel < %{version}
|
||||
%if 0%{?suse_version} < 1550
|
||||
Requires(pre): %{install_info_prereq}
|
||||
Requires(preun): %{install_info_prereq}
|
||||
%endif
|
||||
Recommends: ginac-doc-tutorial
|
||||
|
||||
%description -n libginac-devel
|
||||
%description devel
|
||||
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
||||
open framework for symbolic computation within the C++ programming language.
|
||||
|
||||
This package contains the libraries, include files and other resources you
|
||||
use to develop GiNaC applications.
|
||||
|
||||
%if "%{flavor}" == "doc"
|
||||
%package pdf
|
||||
Summary: API documentation for GiNaC in PDF format
|
||||
BuildArch: noarch
|
||||
|
||||
%description pdf
|
||||
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
||||
open framework for symbolic computation within the C++ programming language.
|
||||
|
||||
This package provides the API documentation for GiNaC in PDF format.
|
||||
|
||||
%package html
|
||||
Summary: API documentation for GiNaC in HTML format
|
||||
BuildArch: noarch
|
||||
|
||||
%description html
|
||||
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
||||
open framework for symbolic computation within the C++ programming language.
|
||||
|
||||
This package provides the API documentation for GiNaC in HTML format.
|
||||
|
||||
%package tutorial
|
||||
Summary: The GiNaC tutorial in PDF format
|
||||
BuildArch: noarch
|
||||
|
||||
%description tutorial
|
||||
GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
|
||||
open framework for symbolic computation within the C++ programming language.
|
||||
|
||||
This package provides a tutorial file for GiNaC in PDF format.
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1 -n %{srcname}-%{version}
|
||||
|
||||
# Use dot to generate class diagrams. Otherwise, ghostscript is used
|
||||
# to convert EPS to PDF, which embeds the current time
|
||||
sed -i -e '/HAVE_DOT/ s/=.*NO/= YES/' doc/reference/DoxyfilePDF.in
|
||||
# PNG files rendered with cairo are nonreproducible depending on
|
||||
# CPU features and architecture
|
||||
sed -i -e '/DOT_IMAGE_FORMAT/ s/=.*png/= svg/' doc/reference/DoxyfileHTML.in
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --disable-static --with-pic --disable-rpath
|
||||
export LDFLAGS="-Wl,--no-undefined"
|
||||
%cmake -DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
|
||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
|
||||
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
|
||||
%check
|
||||
|
||||
export MALLOC_CHECK_=2
|
||||
|
||||
%{__make} check
|
||||
|
||||
unset MALLOC_CHECK_
|
||||
%if "%{flavor}" == "doc"
|
||||
# Build just the reference doc for the "doc" flavour
|
||||
pushd doc/reference
|
||||
%if %{with apiref_pdf}
|
||||
%cmake_build pdf_dox
|
||||
%endif
|
||||
%cmake_build html_dox
|
||||
popd
|
||||
pushd doc/tutorial
|
||||
%cmake_build pdf_ginac_tutorial
|
||||
popd
|
||||
%else
|
||||
%cmake_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
%if "%{flavor}" == "doc"
|
||||
install -d -m 755 %{buildroot}%{_docdir}/%{name}/html
|
||||
cp -R -t %{buildroot}%{_docdir}/%{name}/html/ %{__builddir}/doc/reference/html_files/*
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
%if %{with apiref_pdf}
|
||||
install -m 644 -t %{buildroot}%{_docdir}/%{name}/ %{__builddir}/doc/reference/pdflatex/reference.pdf
|
||||
%endif
|
||||
%else
|
||||
%cmake_install
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%post -n libginac-%{library_version} -p /sbin/ldconfig
|
||||
%fdupes %{buildroot}%{_docdir}/%{name}/html/
|
||||
|
||||
%postun -n libginac-%{library_version} -p /sbin/ldconfig
|
||||
# SECTION Unflavoured Pkg
|
||||
%if "%{flavor}" == ""
|
||||
%check
|
||||
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
||||
%cmake_build check
|
||||
|
||||
%post -n libginac-devel
|
||||
%ldconfig_scriptlets -n libginac%{library_version}
|
||||
|
||||
%if 0%{?suse_version} < 1550
|
||||
%post devel
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/ginac.info.gz
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/ginac-examples.info.gz
|
||||
|
||||
%postun -n libginac-devel
|
||||
%preun devel
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ginac.info.gz
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ginac-examples.info.gz
|
||||
%endif
|
||||
|
||||
%files -n libginac%{library_version}
|
||||
%{_libdir}/libginac.so.%{library_version}*
|
||||
|
||||
%files -n libginac-%{library_version}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libginac.so.2*
|
||||
|
||||
%files -n libginac-devel
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||
%files devel
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog NEWS README
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/ginac.pc
|
||||
%dir %{_includedir}/ginac
|
||||
%{_includedir}/ginac/*.h
|
||||
%{_infodir}/*.info*
|
||||
%{_libdir}/cmake/ginac/
|
||||
%{_includedir}/ginac/
|
||||
%{_infodir}/*.info%{?ext_info}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/ginsh
|
||||
%{_bindir}/viewgar
|
||||
%{_bindir}/ginac-excompiler
|
||||
%{_mandir}/man1/ginsh.1*
|
||||
%{_mandir}/man1/viewgar.1*
|
||||
%{_libexecdir}/ginac-excompiler
|
||||
%{_mandir}/man1/ginsh.1%{?ext_man}
|
||||
%{_mandir}/man1/viewgar.1%{?ext_man}
|
||||
%endif
|
||||
# /SECTION
|
||||
|
||||
# SECTION doc flavoured pkg
|
||||
%if "%{flavor}" == "doc"
|
||||
%if %{with apiref_pdf}
|
||||
%files pdf
|
||||
%dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/reference.pdf
|
||||
%endif
|
||||
|
||||
%files html
|
||||
%dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/html/
|
||||
|
||||
%files tutorial
|
||||
%doc %__builddir/doc/tutorial/ginac.pdf
|
||||
%endif
|
||||
# /SECTION
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user