diff --git a/dont-strip.patch b/dont-strip.patch index bcbb11a..ccaba6c 100644 --- a/dont-strip.patch +++ b/dont-strip.patch @@ -1,7 +1,19 @@ -diff -ru old/src/cfg-racket new/src/cfg-racket ---- old/src/cfg-racket 2020-08-21 15:04:58.350336921 +0200 -+++ new/src/cfg-racket 2020-08-21 15:05:24.934420798 +0200 -@@ -7011,7 +7011,7 @@ +diff -ru old/src/bc/configure new/src/bc/configure +--- old/src/bc/configure 2021-01-11 23:44:10.000000000 +0100 ++++ new/src/bc/configure 2021-04-27 13:40:11.656962958 +0200 +@@ -7052,7 +7052,7 @@ + LIBSFX=la + WXLIBS=WXLIBSDYN + ICP="${LIBTOOLPROG} --mode=install cp" +- ICP_LIB="${LIBTOOLPROG} --mode=install install -s" ++ ICP_LIB="${LIBTOOLPROG} --mode=install install" + ICP_STATIC_LIB='$(NOOP)' + MRLIBINSTALL="install-lib" + LIBFINISH="${LIBTOOLPROG} --mode=finish" +diff -ru old/src/bc/configure.ac new/src/bc/configure.ac +--- old/src/bc/configure.ac 2021-01-11 23:44:10.000000000 +0100 ++++ new/src/bc/configure.ac 2021-04-27 13:40:12.884967341 +0200 +@@ -1358,7 +1358,7 @@ LIBSFX=la WXLIBS=WXLIBSDYN ICP="${LIBTOOLPROG} --mode=install cp" @@ -11,45 +23,33 @@ diff -ru old/src/cfg-racket new/src/cfg-racket MRLIBINSTALL="install-lib" LIBFINISH="${LIBTOOLPROG} --mode=finish" diff -ru old/src/cs/c/configure new/src/cs/c/configure ---- old/src/cs/c/configure 2020-08-21 15:04:58.366336971 +0200 -+++ new/src/cs/c/configure 2020-08-21 15:05:45.366485257 +0200 -@@ -5429,7 +5429,7 @@ +--- old/src/cs/c/configure 2021-01-11 23:44:14.000000000 +0100 ++++ new/src/cs/c/configure 2021-04-27 13:40:17.672984418 +0200 +@@ -5570,7 +5570,7 @@ LTA="la" STRIP_LIB_DEBUG=":" LIBSFX=la - ICP_LIB="${LIBTOOLPROG} --mode=install install -s" + ICP_LIB="${LIBTOOLPROG} --mode=install install" + + CONFIGURE_RACKET_SO_COMPILE="env PLT_CS_MAKE_LINK_SHARED=y" else - ICP=cp - LTO="o" diff -ru old/src/cs/c/configure.ac new/src/cs/c/configure.ac ---- old/src/cs/c/configure.ac 2020-08-21 15:04:58.366336971 +0200 -+++ new/src/cs/c/configure.ac 2020-08-21 15:06:01.478536085 +0200 -@@ -658,7 +658,7 @@ +--- old/src/cs/c/configure.ac 2021-01-11 23:44:14.000000000 +0100 ++++ new/src/cs/c/configure.ac 2021-04-27 13:39:05.168699229 +0200 +@@ -688,7 +688,7 @@ LTA="la" STRIP_LIB_DEBUG=":" LIBSFX=la - ICP_LIB="${LIBTOOLPROG} --mode=install install -s" + ICP_LIB="${LIBTOOLPROG} --mode=install install" + + CONFIGURE_RACKET_SO_COMPILE="env PLT_CS_MAKE_LINK_SHARED=y" else - ICP=cp - LTO="o" -diff -ru old/src/racket/configure.ac new/src/racket/configure.ac ---- old/src/racket/configure.ac 2020-08-21 15:04:58.350336921 +0200 -+++ new/src/racket/configure.ac 2020-08-21 15:06:14.246576366 +0200 -@@ -1408,7 +1408,7 @@ - LIBSFX=la - WXLIBS=WXLIBSDYN - ICP="${LIBTOOLPROG} --mode=install cp" -- ICP_LIB="${LIBTOOLPROG} --mode=install install -s" -+ ICP_LIB="${LIBTOOLPROG} --mode=install install" - ICP_STATIC_LIB='$(NOOP)' - MRLIBINSTALL="install-lib" - LIBFINISH="${LIBTOOLPROG} --mode=finish" diff -ru old/src/rktio/configure new/src/rktio/configure ---- old/src/rktio/configure 2020-08-21 15:04:58.406337098 +0200 -+++ new/src/rktio/configure 2020-08-21 15:06:40.086657892 +0200 -@@ -4568,7 +4568,7 @@ +--- old/src/rktio/configure 2021-01-11 23:44:18.000000000 +0100 ++++ new/src/rktio/configure 2021-04-27 13:40:21.736998921 +0200 +@@ -4624,7 +4624,7 @@ LTA="la" STRIP_LIB_DEBUG=":" LIBSFX=la @@ -59,9 +59,9 @@ diff -ru old/src/rktio/configure new/src/rktio/configure ICP=cp LTO="o" diff -ru old/src/rktio/configure.ac new/src/rktio/configure.ac ---- old/src/rktio/configure.ac 2020-08-21 15:04:58.406337098 +0200 -+++ new/src/rktio/configure.ac 2020-08-21 15:06:49.942688988 +0200 -@@ -393,7 +393,7 @@ +--- old/src/rktio/configure.ac 2021-01-11 23:44:18.000000000 +0100 ++++ new/src/rktio/configure.ac 2021-04-27 13:40:22.965003300 +0200 +@@ -425,7 +425,7 @@ LTA="la" STRIP_LIB_DEBUG=":" LIBSFX=la diff --git a/racket-7.8-src.tgz b/racket-7.8-src.tgz deleted file mode 100644 index e0df860..0000000 --- a/racket-7.8-src.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:32c9f3dd5af934b3b2ef262ce1466a5c71aaeead623ea2cf112ab3e5bd6ae3a7 -size 31592600 diff --git a/racket-8.1-src.tgz b/racket-8.1-src.tgz new file mode 100644 index 0000000..0dd122b --- /dev/null +++ b/racket-8.1-src.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:688e4702d88ab98f1749f495f50a0de37fed12183fab80420b1bae485bba8f72 +size 34772779 diff --git a/racket.changes b/racket.changes index 57d62ed..f3b8d28 100644 --- a/racket.changes +++ b/racket.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Mon May 31 08:09:50 UTC 2021 - Paolo Stivanin + +- Update to 8.1: + * DrRacket tabs can be dragged, and have new close buttons. + * Racket CS supports cross-compilation using raco exe. + * Racket CS supports Android on 32-bit and 64-bit ARM processors. + * The database library supports running queries in OS threads. + * Check-Syntax arrows correctly identify the definition site of + identifiers with contracts. + * Racket CS performance has improved for structure predicates + and accessors + * Racket CS is faster at multiplying extremely large numbers + and dividing large integers. + * Racket CS allows callbacks to raise exceptions if they are + annotated with #:callback-exns?. + * New ephemeron hash tables simplify the implementation of + tables where keys can refer to values. + * Typed Racket supports for/foldr. + * The stepper works for #lang htdp/*sl. + * Struct signatures work for the ASL teaching language. + +------------------------------------------------------------------- +Tue Apr 27 11:34:54 UTC 2021 - Paolo Stivanin + +- Update to 8.0: + * Racket CS is the default implementation + (except for ppc64le and s390x) + * Racket CS has better parallel garbage collection, a 10%–30% reduction + in the size of generated code, and various targeted optimizations. + * A rewrite of the test-engine package allows the #lang versions of + teaching languages to produce linked test-failure messages. + * The release comes with a new mark-up DSL for composing text to appear + in the REPL (simple-tree-text-markup). + * Redex has an added define-overriding-judgment form and improved + error source location reporting. + * Windows scrolling speed reflects the system preference. + * The db package uses the utf8mb4 charset for MySQL connections. +- Rebase dont-strip.patch + ------------------------------------------------------------------- Fri Aug 21 13:14:06 UTC 2020 - Paolo Stivanin diff --git a/racket.spec b/racket.spec index 1e00f6b..d2d5fe9 100644 --- a/racket.spec +++ b/racket.spec @@ -1,7 +1,7 @@ # # spec file for package racket # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2012, 2013 Togan Muftuoglu toganm@opensuse.org # # All modifications and additions to the file contributed by third parties @@ -18,10 +18,10 @@ Name: racket -Version: 7.8 +Version: 8.1 Release: 0 Summary: Scheme implementation with teaching tools -License: MIT or Apache-2.0 +License: Apache-2.0 OR MIT Group: Development/Languages/Scheme URL: http://racket-lang.org Source0: http://download.racket-lang.org/installers/%{version}/%{name}-%{version}-src.tgz @@ -62,7 +62,7 @@ BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(zlib) -# The rpmbuild does not detect those! +# The rpmbuild does not detect those! Requires: libcairo2 Requires: libedit0 Requires: libglib-2_0-0 @@ -116,7 +116,6 @@ Requires: libffi-devel This package contains the symlinks, headers and object files needed to compile and link programs which use Racket. - %prep %setup -q %patch0 -p0 @@ -127,12 +126,20 @@ cp -p %{SOURCE2} src/ %build cd src/ -%add_optflags -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=500 -fno-gcse -%configure --prefix="%{_datadir}" --docdir="%{_defaultdocdir}/%{name}" --enable-shared \ - --disable-static --disable-strip --enable-places --enable-lt="%{_bindir}/libtool" \ +%add_optflags -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=500 -fno-gcse -Wno-stringop-overread +%configure \ + --prefix="%{_prefix}" \ + --docdir="%{_defaultdocdir}/%{name}" \ + --enable-shared \ +%ifarch ppc64 ppc64le s390x + --enable-bcdefault \ +%endif + --disable-static \ + --disable-strip \ + --enable-places \ + --enable-lt="%{_bindir}/libtool" \ --enable-pthread - -make %{?_smp_mflags} VERBOSE=1 +%make_build %install cd src/ @@ -146,7 +153,6 @@ install -d %{buildroot}/%{_datadir}/doc/%{name}/ %make_install # we do not need *.la and *.a files - find %{buildroot}%{_libdir} -name "*.la" -delete find %{buildroot}%{_libdir} -name "*.a" -delete find %{buildroot}%{_datadir} -name ".LOCKpkgs.rktd" -delete @@ -169,7 +175,6 @@ do sed -ri '1s@(/usr/bin/)env +@\1@p' $bin chmod 755 $bin done -chmod 755 %{buildroot}%{_datadir}/%{name}/pkgs/htdp-lib/2htdp/uchat/xrun for html in syntax/module-helpers rackunit/api reference/collects do @@ -182,8 +187,13 @@ done install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/bash_completion/completions/%{name} install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drracket.png %{buildroot}%{_datadir}/pixmaps/drracket.png -# rewrite path in .desktop files +# Remove references to buildroot +sed -i "s|%{buildroot}||g" %{buildroot}%{_docdir}/%{name}/ts-reference/Typed_Classes.html +# Remove compiled files +rm -rf %{buildroot}%{_libdir}/racket/compiled + +# rewrite path in .desktop files %suse_update_desktop_file -c drracket "DrRacket" "DrRacket is an interactive, integrated, graphical programming environment for the Racket programming languages" "%{_bindir}/drracket" "drracket" Development IDE %suse_update_desktop_file -c slideshow "Slideshow" "Slideshow is a Racket-based tool for writing slide presentations as programs" "%{_bindir}/slideshow" "drracket" Development Documentation @@ -225,13 +235,20 @@ install -m 0644 ../README %{buildroot}%{_docdir}/%{name}/README %{_bindir}/slatex %{_bindir}/slideshow %{_bindir}/swindle -%{_libdir}/libracket3m-%{version}.so -%{_libdir}/%{name}/mzdyn3m.o -%{_datadir}/%{name}/* %{_libdir}/%{name}/starter %{_libdir}/%{name}/gracket %{_libdir}/%{name}/starter-sh %{_libdir}/%{name}/*.rktd +%ifnarch ppc64 ppc64le s390x +%{_libdir}/%{name}/petite.boot +%{_libdir}/%{name}/racket.boot +%{_libdir}/%{name}/scheme.boot +%endif +%ifarch ppc64 ppc64le s390x +%{_libdir}/libracket3m* +%{_libdir}/%{name}/buildinfo +%{_libdir}/%{name}/mzdyn3m.o +%endif %{_mandir}/man1/mz* %{_mandir}/man1/racket* %{_mandir}/man1/raco* @@ -244,13 +261,13 @@ install -m 0644 ../README %{buildroot}%{_docdir}/%{name}/README %dir %{_datadir}/%{name} %dir %{_datadir}/bash_completion %dir %{_datadir}/bash_completion/completions -%dir %{_sysconfdir}/%{name} %{_datadir}/bash_completion/completions/%{name} -%config %{_sysconfdir}/%{name}/config.rktd %{_datadir}/applications/drracket.desktop %{_datadir}/applications/slideshow.desktop %{_datadir}/pixmaps/drracket.png -%exclude %{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/* +%{_datadir}/%{name}/* +%dir %{_sysconfdir}/%{name} +%config %{_sysconfdir}/%{name}/config.rktd %files doc %doc %{_docdir}/%{name}/* @@ -258,9 +275,6 @@ install -m 0644 ../README %{buildroot}%{_docdir}/%{name}/README %files devel %{_includedir}/%{name}/* -%{_libdir}/%{name}/buildinfo -%{_libdir}/libracket3m.so %dir %{_includedir}/%{name} -%{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/* %changelog