Accepting request 981461 from devel:languages:misc

- Add patch racket-amsmath-mathabx.patch
  * Avoid conflict between modern amsmath and mathabx LaTeX styles to
    get e.g. scsh build again (forwarded request 981449 from WernerFink)

OBS-URL: https://build.opensuse.org/request/show/981461
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/racket?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2022-06-09 12:12:02 +00:00 committed by Git OBS Bridge
commit 61e37725a2
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,16 @@
---
share/pkgs/scribble-lib/scribble/scribble-load.tex | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- share/pkgs/scribble-lib/scribble/scribble-load.tex
+++ share/pkgs/scribble-lib/scribble/scribble-load.tex 2022-06-09 06:57:39.433303456 +0000
@@ -8,7 +8,8 @@
% would load amsmath *after* mathabx and wasysym,
% causing command redefinition issues.
\newcommand{\packageAmsmath}{\usepackage{amsmath}}
-\newcommand{\packageMathabx}{\usepackage{mathabx}}
+% Both 'mathabx' and 'amsmath' define a '\frac' command (among others).
+\newcommand{\packageMathabx}{\ifx\frac\undefined \usepackage{mathabx} \else \relax \fi}
% Avoid conflicts between "mathabx" and "wasysym",
% and between "wasysym" integrals and "amsmath" integrals (iint).
\newcommand{\packageWasysym}{

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 9 07:01:25 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Add patch racket-amsmath-mathabx.patch
* Avoid conflict between modern amsmath and mathabx LaTeX styles to
get e.g. scsh build again
-------------------------------------------------------------------------
Sun May 8 18:26:11 UTC 2022 - Fred Fu <moonsolo@gmail.com>
- Update to 8.5:

View File

@ -28,6 +28,7 @@ Source0: http://download.racket-lang.org/installers/%{version}/%{name}-%{
Source2: racket-completion.bash
Source3: racket-rpmlintrc
Patch0: racket-doc.patch
Patch1: racket-amsmath-mathabx.patch
BuildRequires: ImageMagick
BuildRequires: ca-certificates
BuildRequires: chrpath
@ -122,6 +123,7 @@ compile and link programs which use Racket.
%prep
%setup -q
%patch0 -p0
%patch1 -p0
cp -p %{SOURCE2} src/