SHA256
1
0
forked from pool/racket

Accepting request 720218 from devel:languages:misc

- Update to 7.3

OBS-URL: https://build.opensuse.org/request/show/720218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/racket?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2019-08-05 08:37:21 +00:00 committed by Git OBS Bridge
commit d41a547549
5 changed files with 101 additions and 110 deletions

View File

@ -1,26 +0,0 @@
From 80f84f2132233f8bcba05273cc23414caff8bd9c Mon Sep 17 00:00:00 2001
From: Matthew Flatt <mflatt@racket-lang.org>
Date: Sat, 2 Feb 2019 19:38:41 -0700
Subject: [PATCH] fix extflvector-length for platforms where it's not inlined
---
racket/src/racket/src/number.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/racket/src/racket/src/number.c b/racket/src/racket/src/number.c
index 954efffbf1..e486ce265d 100644
--- a/racket/src/racket/src/number.c
+++ b/racket/src/racket/src/number.c
@@ -1083,7 +1083,11 @@ void scheme_init_extfl_number(Scheme_Startup_Env *env)
ADD_PRIM_W_ARITY("make-shared-extflvector", make_shared_extflvector, 1, 2, env);
p = scheme_make_immed_prim(extflvector_length, "extflvector-length", 1, 1);
- SCHEME_PRIM_PROC_FLAGS(p) |= scheme_intern_prim_opt_flags(SCHEME_PRIM_IS_UNARY_INLINED
+ if (MZ_LONG_DOUBLE_AVAIL_AND(1))
+ flags = SCHEME_PRIM_IS_BINARY_INLINED;
+ else
+ flags = SCHEME_PRIM_SOMETIMES_INLINED;
+ SCHEME_PRIM_PROC_FLAGS(p) |= scheme_intern_prim_opt_flags(flags
| SCHEME_PRIM_PRODUCES_FIXNUM);
scheme_addto_prim_instance("extflvector-length", p, env);

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e42d1ff0bb8c6b483a720387e5e9e68d39c1386cfdb14c565fc9d517e3049889
size 26412598

3
racket-7.3-src.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d49b11de4aa8f62d23d096134d4246f6cbd7a1da326645fecc072d28ad38c040
size 26476866

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Tue Jul 16 07:38:56 UTC 2019 - Jonathan Brielmaier <jbrielmaier@suse.de>
- Update to 7.3:
* There is a new set of teaching languages for the upcoming
German-language textbook "Schreibe Dein Programm!"
* Racket's IO system has been refactored to improve performance
and simplify internal design.
* Racket's JSON reader is dramatically faster.
* The `plot` library includes color map support for renderers.
* The Racket web library has improved support for 307 redirects.
* The Racket web server provides better response messages by default
for common status codes.
* The `pict` library includes a `shear` function.
- remove patches:
* extflvector-length-inlined.patch: included in release
- clean up spec file
* %foo -> %{foo}
* remove %defattr
* multiple other smaller clean ups
- Remove extflvector-length-inlined.patch
-------------------------------------------------------------------
Wed Apr 3 14:22:44 UTC 2019 - Andreas Schwab <schwab@suse.de>

View File

@ -18,19 +18,17 @@
Name: racket
Version: 7.2
Version: 7.3
Release: 0
Summary: Scheme implementation with teaching tools
License: LGPL-2.1-or-later AND GPL-3.0-or-later
Group: Development/Languages/Scheme
Url: http://racket-lang.org
Source0: http://download.racket-lang.org/installers/%version/%name-%version-src.tgz
URL: http://racket-lang.org
Source0: http://download.racket-lang.org/installers/%{version}/%{name}-%{version}-src.tgz
Source2: racket-completion.bash
Source3: racket-rpmlintrc
Patch0: racket-doc.patch
Patch1: extflvector-length-inlined.patch
Patch2: dont-strip.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: dont-strip.patch
BuildRequires: ImageMagick
BuildRequires: ca-certificates
BuildRequires: chrpath
@ -71,9 +69,9 @@ Requires: libglib-2_0-0
Requires: libgtk-3-0
Requires: libpango-1_0-0
Requires: libsqlite3-0
Provides: %name-drracket = %version-%release
Provides: %name-games = %version-%release
Provides: %name-webserver = %version-%release
Provides: %{name}-drracket = %{version}-%{release}
Provides: %{name}-games = %{version}-%{release}
Provides: %{name}-webserver = %{version}-%{release}
Recommends: racket-doc = %{version}-%{release}
%define add_optflags(a:f:t:p:w:W:d:g:O:A:C:D:E:H:i:M:n:P:U:u:l:s:X:B:I:L:b:V:m:x:c:S:E:o:v:) \
@ -110,7 +108,7 @@ A local installation of the Racket documentation system.
%package devel
Summary: Development header files for Racket
Group: Development/Languages/Scheme
Requires: %name = %version-%release
Requires: %{name} = %{version}-%{release}
Requires: glibc-devel
Requires: libffi-devel
@ -122,17 +120,16 @@ compile and link programs which use Racket.
%prep
%setup -q
%patch0 -p0
%patch1 -p2
%patch2 -p1
%patch1 -p1
cp -p %{S:2} src/
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" \
%configure --prefix="%{_datadir}" --docdir="%{_defaultdocdir}/%{name}" --enable-shared \
--disable-static --disable-strip --enable-places --enable-lt="%{_bindir}/libtool" \
--enable-pthread
make %{?_smp_mflags} VERBOSE=1
@ -141,18 +138,18 @@ make %{?_smp_mflags} VERBOSE=1
cd src/
# use the following if setting extra plt_setup options
# export LD_LIBRARY_PATH=%%buildroot%%_libdir
# export LD_LIBRARY_PATH=%%{buildroot}%%{_libdir}
# export PLT_SETUP_OPTIONS="-j 1 "
install -d %buildroot/%_datadir/doc/%name/
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
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
@ -182,18 +179,18 @@ do
done
# Bash completion
install -Dm 644 %{S:2} %buildroot%_datadir/bash_completion/completions/%name
install -Dm 644 %_builddir/%name-%version/share/pkgs/drracket/drracket/drracket.png %buildroot%_datadir/pixmaps/drracket.png
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
%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
%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
# Due package split we do this explicit to support older rpm version as well
install -m 0644 ../README %{buildroot}%{_docdir}/%{name}/README
%fdupes %buildroot%_prefix
%fdupes %{buildroot}%{_prefix}
%post
/sbin/ldconfig
@ -204,69 +201,66 @@ install -m 0644 ../README %{buildroot}%{_docdir}/%{name}/README
%desktop_database_postun
%files
%defattr(-,root,root,-)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README
%_bindir/drracket
%_bindir/gracket
%_bindir/gracket-text
%_bindir/mred
%_bindir/mred-text
%_bindir/mzc
%_bindir/mzpp
%_bindir/mzscheme
%_bindir/mztext
%_bindir/pdf-slatex
%_bindir/plt-games
%_bindir/plt-help
%_bindir/plt-r5rs
%_bindir/plt-r6rs
%_bindir/plt-web-server
%_bindir/racket
%_bindir/raco
%_bindir/scribble
%_bindir/setup-plt
%_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
%_mandir/man1/mz*
%_mandir/man1/racket*
%_mandir/man1/raco*
%_mandir/man1/setup-plt*
%_mandir/man1/drracket*
%_mandir/man1/gracket*
%_mandir/man1/mred*
%_mandir/man1/plt-help*
%dir %_libdir/%name
%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/*
%{_bindir}/drracket
%{_bindir}/gracket
%{_bindir}/gracket-text
%{_bindir}/mred
%{_bindir}/mred-text
%{_bindir}/mzc
%{_bindir}/mzpp
%{_bindir}/mzscheme
%{_bindir}/mztext
%{_bindir}/pdf-slatex
%{_bindir}/plt-games
%{_bindir}/plt-help
%{_bindir}/plt-r5rs
%{_bindir}/plt-r6rs
%{_bindir}/plt-web-server
%{_bindir}/racket
%{_bindir}/raco
%{_bindir}/scribble
%{_bindir}/setup-plt
%{_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
%{_mandir}/man1/mz*
%{_mandir}/man1/racket*
%{_mandir}/man1/raco*
%{_mandir}/man1/setup-plt*
%{_mandir}/man1/drracket*
%{_mandir}/man1/gracket*
%{_mandir}/man1/mred*
%{_mandir}/man1/plt-help*
%dir %{_libdir}/%{name}
%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/*
%files doc
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}/*
%exclude %{_docdir}/%{name}/README
%files devel
%defattr(-,root,root,-)
%_includedir/%name/*
%_libdir/%name/buildinfo
%_libdir/libracket3m.so
%dir %_includedir/%name
%_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/*
%{_includedir}/%{name}/*
%{_libdir}/%{name}/buildinfo
%{_libdir}/libracket3m.so
%dir %{_includedir}/%{name}
%{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/*
%changelog