diff --git a/labltk-8.06.0-enable-debugging.patch b/labltk-8.06.0-enable-debugging.patch deleted file mode 100644 index 7e96811..0000000 --- a/labltk-8.06.0-enable-debugging.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- labltk-8.06.0.old/support/Makefile.common 2014-09-18 05:08:33.000000000 +0100 -+++ labltk-8.06.0/support/Makefile.common 2015-02-16 15:11:30.157186457 +0000 -@@ -21,17 +21,17 @@ - ## Tools from the OCaml distribution - - CAMLRUN=$(BINDIR)/ocamlrun --CAMLC=$(BINDIR)/ocamlc$(OPT) --CAMLOPT=$(BINDIR)/ocamlopt$(OPT) --CAMLCB=$(BINDIR)/ocamlc --CAMLOPTB=$(BINDIR)/ocamlopt --CAMLCOMP=$(CAMLC) -c -warn-error A-3 -+CAMLC=$(BINDIR)/ocamlc$(OPT) -g -+CAMLOPT=$(BINDIR)/ocamlopt$(OPT) -g -+CAMLCB=$(BINDIR)/ocamlc -g -+CAMLOPTB=$(BINDIR)/ocamlopt -g -+CAMLCOMP=$(CAMLC) -c -warn-error A-3 -g - CAMLYACC=$(BINDIR)/ocamlyacc -v - CAMLLEX=$(BINDIR)/ocamllex --CAMLLIBR=$(CAMLC) -a -+CAMLLIBR=$(CAMLC) -a -g - CAMLDEP=$(BINDIR)/ocamldep - COMPFLAGS=-g - LINKFLAGS= --CAMLOPTLIBR=$(CAMLOPT) -a --MKLIB=$(BINDIR)/ocamlmklib -+CAMLOPTLIBR=$(CAMLOPT) -a -g -+MKLIB=$(BINDIR)/ocamlmklib -g - CAMLRUNGEN=$(BINDIR)/ocamlrun diff --git a/labltk-8.06.11-enable-debugging.patch b/labltk-8.06.11-enable-debugging.patch new file mode 100644 index 0000000..71d64a5 --- /dev/null +++ b/labltk-8.06.11-enable-debugging.patch @@ -0,0 +1,41 @@ +diff -ur labltk-8.06.11.old/support/Makefile labltk-8.06.11/support/Makefile +--- labltk-8.06.11.old/support/Makefile 2021-10-04 19:10:57.000196523 +0100 ++++ labltk-8.06.11/support/Makefile 2021-10-04 19:18:06.263137991 +0100 +@@ -28,7 +28,7 @@ + cltkFile.$(O) cltkMain.$(O) cltkMisc.$(O) cltkTimer.$(O) \ + cltkVar.$(O) cltkWait.$(O) cltkImg.$(O) + +-CCFLAGS=-I$(LIBDIR)/caml $(TK_DEFS) $(SHAREDCCCOMPOPTS) ++CCFLAGS=-I$(LIBDIR)/caml $(TK_DEFS) $(SHAREDCCCOMPOPTS) -g + + COMPFLAGS= + THFLAGS=-I +threads -I vmthreads +diff -ur labltk-8.06.11.old/support/Makefile.common labltk-8.06.11/support/Makefile.common +--- labltk-8.06.11.old/support/Makefile.common 2021-10-04 19:10:56.990196618 +0100 ++++ labltk-8.06.11/support/Makefile.common 2021-10-04 19:18:06.264137981 +0100 +@@ -21,17 +21,17 @@ + ## Tools from the OCaml distribution + + CAMLRUN=$(BINDIR)/ocamlrun +-CAMLC=$(BINDIR)/ocamlc$(OPT) +-CAMLOPT=$(BINDIR)/ocamlopt$(OPT) $(WARNERR) +-CAMLCB=$(BINDIR)/ocamlc +-CAMLOPTB=$(BINDIR)/ocamlopt +-CAMLCOMP=$(CAMLC) -c $(WARNERR) ++CAMLC=$(BINDIR)/ocamlc$(OPT) -g ++CAMLOPT=$(BINDIR)/ocamlopt$(OPT) $(WARNERR) -g ++CAMLCB=$(BINDIR)/ocamlc -g ++CAMLOPTB=$(BINDIR)/ocamlopt -g ++CAMLCOMP=$(CAMLC) -c $(WARNERR) -g + CAMLYACC=$(BINDIR)/ocamlyacc -v + CAMLLEX=$(BINDIR)/ocamllex +-CAMLLIBR=$(CAMLC) -a ++CAMLLIBR=$(CAMLC) -a -g + CAMLDEP=$(BINDIR)/ocamldep + COMPFLAGS=-g + LINKFLAGS= +-CAMLOPTLIBR=$(CAMLOPT) -a +-MKLIB=$(BINDIR)/ocamlmklib ++CAMLOPTLIBR=$(CAMLOPT) -a -g ++MKLIB=$(BINDIR)/ocamlmklib -g + CAMLRUNGEN=$(BINDIR)/ocamlrun diff --git a/labltk-8.06.11.tar.gz b/labltk-8.06.11.tar.gz new file mode 100644 index 0000000..90fbccb Binary files /dev/null and b/labltk-8.06.11.tar.gz differ diff --git a/labltk-8.06.4-enable-more-debugging.patch b/labltk-8.06.4-enable-more-debugging.patch deleted file mode 100644 index f2a02e4..0000000 --- a/labltk-8.06.4-enable-more-debugging.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- labltk-8.06.4.old/support/Makefile 2017-10-30 09:19:07.000000000 +0000 -+++ labltk-8.06.4/support/Makefile 2017-11-07 21:24:58.244605912 +0000 -@@ -28,7 +28,7 @@ - cltkFile.$(O) cltkMain.$(O) cltkMisc.$(O) cltkTimer.$(O) \ - cltkVar.$(O) cltkWait.$(O) cltkImg.$(O) - --CCFLAGS=-I$(LIBDIR)/caml $(TK_DEFS) $(SHAREDCCCOMPOPTS) -+CCFLAGS=-I$(LIBDIR)/caml $(TK_DEFS) $(SHAREDCCCOMPOPTS) -g - - COMPFLAGS= - THFLAGS=-I +threads -I vmthreads diff --git a/labltk-8.06.4.tar.gz b/labltk-8.06.4.tar.gz deleted file mode 100644 index 70059a9..0000000 Binary files a/labltk-8.06.4.tar.gz and /dev/null differ diff --git a/labltk.spec b/labltk.spec index c5bb68e..218a142 100644 --- a/labltk.spec +++ b/labltk.spec @@ -4,16 +4,15 @@ %global native_compiler 0 %endif Name: ocaml-labltk -Version: 8.06.4 -Release: 2 +Version: 8.06.11 +Release: 1 Summary: Tcl/Tk interface for OCaml License: LGPLv2+ with exceptions URL: https://github.com/garrigue/labltk -Source0: https://github.com/garrigue/labltk/archive/labltk-%{version}/labltk-%{version}.tar.gz +Source0: https://github.com/garrigue/labltk/archive/%{version}/labltk-%{version}.tar.gz # This adds debugging (-g) everywhere. -Patch1: labltk-8.06.0-enable-debugging.patch -Patch2: labltk-8.06.4-enable-more-debugging.patch -Patch3: add_sp.patch +Patch1: labltk-8.06.11-enable-debugging.patch +Patch2: add_sp.patch BuildRequires: ocaml tcl-devel tk-devel %description labltk or mlTk is a library for interfacing OCaml with the scripting @@ -28,10 +27,9 @@ language Tcl/Tk (all versions since 8.0.3, but no betas). This package contains the development files. %prep -%setup -q -n labltk-labltk-%{version} +%setup -q -n labltk-%{version} %patch1 -p1 %patch2 -p1 -%patch3 -p1 find -name .gitignore -delete find -type f | xargs sed -i -e 's/-warn-error/-w/g' @@ -41,7 +39,7 @@ unset MAKEFLAGS %if !%{native_compiler} make byte %else -make all +make all make opt %endif @@ -83,7 +81,10 @@ install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk %{_libdir}/ocaml/labltk/*.mli %changelog -* Thur Sept 9 2021 gongzhengtang - 8.06.4-2 +* Fri Apr 15 2022 wangkai -8.06.11-1 +- update to 8.06.11 + +* Thu Sep 9 2021 gongzhengtang - 8.06.4-2 - fix sp * Fri Oct 9 2020 maminjie - 8.06.4-1