From 472b1d17acc8a1d839d96b82d8e2ce50a1b4b56748c730991a91f3a166018b62 Mon Sep 17 00:00:00 2001 From: Fred Fu Date: Wed, 9 Mar 2022 13:36:59 +0000 Subject: [PATCH] Accepting request 960273 from home:capfredf:branches:devel:languages:misc update Racket to 8.4 OBS-URL: https://build.opensuse.org/request/show/960273 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/racket?expand=0&rev=53 --- racket-8.3-src.tgz | 3 -- racket-8.4-src.tgz | 3 ++ racket-rpmlintrc | 15 ++++----- racket.changes | 76 ++++++++++++++++++++++++++++++++++++++++++++++ racket.spec | 36 +++++++++++++++++----- 5 files changed, 113 insertions(+), 20 deletions(-) delete mode 100644 racket-8.3-src.tgz create mode 100644 racket-8.4-src.tgz diff --git a/racket-8.3-src.tgz b/racket-8.3-src.tgz deleted file mode 100644 index d698797..0000000 --- a/racket-8.3-src.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33dd0c20846c7c5fdf84af2dc250f765104ed33b5091be152a9f68f1e2541457 -size 31778705 diff --git a/racket-8.4-src.tgz b/racket-8.4-src.tgz new file mode 100644 index 0000000..6fb52f4 --- /dev/null +++ b/racket-8.4-src.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b89faf2fe16d04d20b9056f08bba99eb2040d5172bee8f3ceb3999fed16e6ad3 +size 31908085 diff --git a/racket-rpmlintrc b/racket-rpmlintrc index e15b3f1..21d527d 100644 --- a/racket-rpmlintrc +++ b/racket-rpmlintrc @@ -1,9 +1,6 @@ -addFilter(".*unexpanded-macro.*/usr/share/racket/collects/srfi/.*") -addFilter(".*W:.*explicit-lib-dependency.*lib.*") -addFilter(".*W:.*zero-length.*") -addFilter(".*W:.*pem-certificate.*/test\.pem.*") -addFilter(".*W:.*script-without-shebang.*/starter-sh.*") -addFilter(".*file-contains-buildroot.*/usr/share/doc/packages/racket/syntax/module-helpers.html.*") -addFilter(".*file-contains-buildroot.*/usr/share/doc/packages/racket/rackunit/api.html.*") -addFilter(".*file-contains-buildroot.*/usr/share/doc/packages/racket/reference/collects.html.*") -addFilter(".*file-contains-buildroot.*/usr/share/doc/packages/racket/guide/exns.html.*") +addFilter(".*E:.*explicit-lib-dependency.*lib.*") +addFilter(".*E:.*zero-length.*") +addFilter(".*W:.*hidden-file-or-dir.*/usr/share/racket/pkgs/.LOCKpkgs.rktd") +addFilter(".*E:.*script-without-shebang.*/starter-sh.*") +addFilter(".*E:.*script-without-shebang.*/setup-core.*") +addFilter(".*E:.*non-executable-script.*/usr/share/racket/pkgs/htdp-lib/2htdp/uchat/xrun.*") diff --git a/racket.changes b/racket.changes index 7c489f2..dffc5a1 100644 --- a/racket.changes +++ b/racket.changes @@ -1,3 +1,79 @@ +------------------------------------------------------------------- +Sun Mar 6 15:26:11 UTC 2022 - Fred Fu +- Update to 8.4: + * Command-line Racket provides a new expression editor by default for + its read-eval-print loop (REPL). The new REPL is based on the Chez + Scheme expression editor, but extended to use the same + language-sensitive syntax coloring and indentation tools as DrRacket. + * Typed Racket adds a kind system, preventing programmers from + writing nonsensical type expressions. It checks whether type + constructors are correctly applied to arguments, and separates + type constructors from polymorphic types. The `:kind` form enables + checking the kind of a type expression at the REPL. The new system + also correctly rejects some ill-formed recursive types. + * Racket has a `file-or-directory-stat` for unified information about + file-system objects. + * DrRacket shows the region affected by an `#;` S-expression comment + by fading the commented-out region. + * Racket on Chez has faster multiplication and division for some + numbers. + * Web server: The files dispatcher supports all standard caching-related + HTTP response headers (e.g., Cache-Control). + * Web server: A new dispatcher captures the common pattern of processing + HTTP requests and responses in a layered fashion. + * The Web Server supports use of the Cache-Control header, and includes + a new wrapping dispatcher. + * Expander: add "portal" syntax to support new forms of syntax object + binding. + * Documentation search is improved. + * Some hash operations support an optional `try-order?` argument. + * The plot-metrics interface has documentation. + * Fonts support OpenType feature settings. + * The Gui library has improved support for Wayland. + * The computation of quadratic roots is further improved. + * The `set/c` contract adds support for random generation. + * DrRacket's interactions window supports #lang-specific coloring + and indentation. + * DrRacket's parenthesis-based keyboard shortcuts change based on + the parentheses that each different #lang uses. + * The release includes many other bug repairs and other improvements! + + Transition/Update notes: + * To turn off expeditor and make Racket's REPL go back to the old + editline/readline-based editor, use the command + + ,input readline + + and then restart Racket. Get back to the new expression editor with + + ,input expeditor + + To toggle color mode for the new expression editor, use one of the + following, which does not require restarting Racket: + + ,color #false + ,color #true + + * Support for comment fading in DrRacket requires an increment to + the "WXME" format version so files with non-text content written + by DrRacket v8.4 will open only in v8.4 and later. This does not + affect files that consist only of unicode text. + * The addition of the kind system to Typed Racket means that certain + mild abuses of the type system no longer type check, most notably + the 'application' of a polymorphic type. + +- Spec changes: + * fix the path to locate a list of html files where references of + %{build-root} need to removed + * add more html files to the list above + * remove the command that deletes `.LOCKpkgs.rktd`, so users will not + have to manually create this file as a root user in order to successfully + run `raco` or `drracket`. + +- RPMlintrc changes: + * remove unused filters. + * add a filter to ignore warnings on `.LOCKpkgs.rktd` + ------------------------------------------------------------------- Wed Dec 1 12:26:11 UTC 2021 - Fred Fu - Update to 8.3: diff --git a/racket.spec b/racket.spec index 7e96ade..679b369 100644 --- a/racket.spec +++ b/racket.spec @@ -1,7 +1,7 @@ # # spec file for package racket # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2012, 2013 Togan Muftuoglu toganm@opensuse.org # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,7 @@ Name: racket -Version: 8.3 +Version: 8.4 Release: 0 Summary: Scheme implementation with teaching tools License: Apache-2.0 OR MIT @@ -159,7 +159,6 @@ install -d %{buildroot}/%{_datadir}/doc/%{name}/ # 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 # make system clear for bin in mred mzscheme racket @@ -180,9 +179,33 @@ do chmod 755 $bin done -for html in syntax/module-helpers rackunit/api reference/collects +files_to_filter=" +syntax/module-helpers +rackunit/api +reference/collects +guide/exns +math/array_broadcasting +math/array_construct +math/array_convert +math/array_fold +math/array_indexing +math/array_nonstrict +math/array_pointwise +math/array_quick +math/array_sequences +math/array_slicing +math/array_strict +math/array_transform +math/array_types +math/matrix_construction +math/matrix_intro +math/matrix_poly +math/stats +ts-reference/Typed_Classes +" +for html in $files_to_filter do - html=%{_docdir}/%{name}/${html}.html + html=%{buildroot}%{_docdir}/%{name}/${html}.html test -e $html || continue sed -ri 's@%{buildroot}@@g' $html done @@ -191,9 +214,6 @@ 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 -# Remove references to buildroot -sed -i "s|%{buildroot}||g" %{buildroot}%{_docdir}/%{name}/ts-reference/Typed_Classes.html - # 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