2013-02-05 19:30:59 +01:00
|
|
|
#
|
|
|
|
# spec file for package racket
|
|
|
|
#
|
2024-04-09 19:46:19 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-02-05 19:30:59 +01:00
|
|
|
# Copyright (c) 2012, 2013 Togan Muftuoglu toganm@opensuse.org
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-22 10:20:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-02-05 19:30:59 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: racket
|
2024-05-28 18:26:41 +02:00
|
|
|
Version: 8.13
|
2013-02-05 19:30:59 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Scheme implementation with teaching tools
|
2021-06-02 09:29:03 +02:00
|
|
|
License: Apache-2.0 OR MIT
|
2013-02-05 19:30:59 +01:00
|
|
|
Group: Development/Languages/Scheme
|
2019-07-16 13:09:04 +02:00
|
|
|
URL: http://racket-lang.org
|
|
|
|
Source0: http://download.racket-lang.org/installers/%{version}/%{name}-%{version}-src.tgz
|
2013-02-05 19:30:59 +01:00
|
|
|
Source2: racket-completion.bash
|
2019-04-02 13:13:17 +02:00
|
|
|
Source3: racket-rpmlintrc
|
|
|
|
Patch0: racket-doc.patch
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: ImageMagick
|
2019-04-02 13:13:17 +02:00
|
|
|
BuildRequires: ca-certificates
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: ghostscript-fonts-std
|
2022-05-12 17:41:30 +02:00
|
|
|
BuildRequires: google-roboto-fonts
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: libexpat1
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: librsvg-devel
|
|
|
|
BuildRequires: libtool
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2019-04-02 13:13:17 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: pkgconfig(ice)
|
2019-04-02 13:13:17 +02:00
|
|
|
BuildRequires: pkgconfig(libedit)
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
2021-06-16 14:40:08 +02:00
|
|
|
BuildRequires: pkgconfig(liblz4)
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: pkgconfig(libpng)
|
2022-04-17 20:34:10 +02:00
|
|
|
BuildRequires: pkgconfig(ncurses)
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
BuildRequires: pkgconfig(pixman-1) >= 0.22.0
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRequires: pkgconfig(sm)
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xaw7)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xft)
|
|
|
|
BuildRequires: pkgconfig(xmu)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2021-06-02 09:29:03 +02:00
|
|
|
# The rpmbuild does not detect those!
|
2019-04-02 13:13:17 +02:00
|
|
|
Requires: libcairo2
|
|
|
|
Requires: libedit0
|
|
|
|
Requires: libglib-2_0-0
|
|
|
|
Requires: libgtk-3-0
|
|
|
|
Requires: libpango-1_0-0
|
|
|
|
Requires: libsqlite3-0
|
2019-07-16 13:09:04 +02:00
|
|
|
Provides: %{name}-drracket = %{version}-%{release}
|
|
|
|
Provides: %{name}-games = %{version}-%{release}
|
|
|
|
Provides: %{name}-webserver = %{version}-%{release}
|
2019-04-02 13:13:17 +02:00
|
|
|
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:) \
|
|
|
|
%global optflags %{optflags} %{**}
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
# maggia has this
|
|
|
|
# Disable the debug package since otherwise a build would create the following
|
|
|
|
# error message:
|
|
|
|
# *** ERROR: same build ID in nonidentical files!
|
|
|
|
# /usr/bin/mzscheme
|
|
|
|
# and /usr/bin/mred
|
|
|
|
# this should be set from the obs
|
2016-07-30 09:25:19 +02:00
|
|
|
#%%define debug_package %%nil
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Racket (formerly called PLT Scheme) is a multi-paradigm programming language
|
|
|
|
in the Lisp/Scheme family, that also serves as a platform for language
|
|
|
|
creation, design, and implementation.
|
|
|
|
|
|
|
|
The programming language is known for its powerful macro system which enables
|
|
|
|
the creation of embedded and domain-specific languages, language constructs
|
|
|
|
such as classes or modules, and separate dialects of Racket enable different
|
|
|
|
semantics.
|
|
|
|
|
2019-04-02 13:13:17 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation HTML files for Racket
|
|
|
|
Group: Development/Languages/Scheme
|
|
|
|
Provides: %{name}:%{_docdir}/%{name}/docindex.sqlite
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
A local installation of the Racket documentation system.
|
|
|
|
|
2013-02-05 19:30:59 +01:00
|
|
|
%package devel
|
2016-07-25 08:44:44 +02:00
|
|
|
Summary: Development header files for Racket
|
2013-02-05 19:30:59 +01:00
|
|
|
Group: Development/Languages/Scheme
|
2019-07-16 13:09:04 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-02-05 19:30:59 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libffi-devel
|
2021-06-16 14:40:08 +02:00
|
|
|
Recommends: %{name}-doc = %{version}-%{release}
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the symlinks, headers and object files needed to
|
2016-07-25 08:44:44 +02:00
|
|
|
compile and link programs which use Racket.
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%prep
|
2024-02-23 15:38:44 +01:00
|
|
|
%autosetup -p0
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2019-07-16 13:09:04 +02:00
|
|
|
cp -p %{SOURCE2} src/
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-02 13:13:17 +02:00
|
|
|
cd src/
|
|
|
|
|
2021-06-02 09:29:03 +02:00
|
|
|
%add_optflags -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=500 -fno-gcse -Wno-stringop-overread
|
|
|
|
%configure \
|
|
|
|
--prefix="%{_prefix}" \
|
2021-06-16 14:40:08 +02:00
|
|
|
--exec-prefix="%{_prefix}" \
|
|
|
|
--libdir=%{_libdir} \
|
2021-06-02 09:29:03 +02:00
|
|
|
--docdir="%{_defaultdocdir}/%{name}" \
|
|
|
|
--enable-shared \
|
|
|
|
%ifarch ppc64 ppc64le s390x
|
|
|
|
--enable-bcdefault \
|
|
|
|
%endif
|
|
|
|
--disable-static \
|
|
|
|
--disable-strip \
|
|
|
|
--enable-places \
|
|
|
|
--enable-lt="%{_bindir}/libtool" \
|
2021-06-16 14:40:08 +02:00
|
|
|
--enable-libz \
|
|
|
|
--enable-liblz4 \
|
2019-04-02 13:13:17 +02:00
|
|
|
--enable-pthread
|
2021-06-02 09:29:03 +02:00
|
|
|
%make_build
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%install
|
2019-04-02 13:13:17 +02:00
|
|
|
cd src/
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2016-07-25 08:43:18 +02:00
|
|
|
# use the following if setting extra plt_setup options
|
2019-07-16 13:09:04 +02:00
|
|
|
# export LD_LIBRARY_PATH=%%{buildroot}%%{_libdir}
|
2016-07-25 08:43:18 +02:00
|
|
|
# export PLT_SETUP_OPTIONS="-j 1 "
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2019-07-16 13:09:04 +02:00
|
|
|
install -d %{buildroot}/%{_datadir}/doc/%{name}/
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2016-07-25 08:44:44 +02:00
|
|
|
%make_install
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
# we do not need *.la and *.a files
|
2019-07-16 13:09:04 +02:00
|
|
|
find %{buildroot}%{_libdir} -name "*.la" -delete
|
|
|
|
find %{buildroot}%{_libdir} -name "*.a" -delete
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2019-04-02 13:13:17 +02:00
|
|
|
# make system clear
|
|
|
|
for bin in mred mzscheme racket
|
|
|
|
do
|
|
|
|
test -e $bin || continue
|
|
|
|
chrpath --delete %{buildroot}%{_bindir}/$bin || :
|
|
|
|
done
|
|
|
|
for bin in gracket starter
|
|
|
|
do
|
|
|
|
test -e $bin || continue
|
|
|
|
chrpath --delete %{buildroot}%{_libdir}/$bin || :
|
|
|
|
done
|
|
|
|
for bin in c-printf crypt esd magick sndfile tcl xmmsctrl xosd
|
|
|
|
do
|
|
|
|
bin=%{buildroot}%{_datadir}/%{name}/pkgs/racket-doc/ffi/examples/use-${bin}.rkt
|
|
|
|
test -e $bin || continue
|
|
|
|
sed -ri '1s@(/usr/bin/)env +@\1@p' $bin
|
|
|
|
chmod 755 $bin
|
|
|
|
done
|
|
|
|
|
2022-03-09 14:36:59 +01:00
|
|
|
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
|
2019-04-02 13:13:17 +02:00
|
|
|
do
|
2022-03-09 14:36:59 +01:00
|
|
|
html=%{buildroot}%{_docdir}/%{name}/${html}.html
|
2019-04-02 13:13:17 +02:00
|
|
|
test -e $html || continue
|
|
|
|
sed -ri 's@%{buildroot}@@g' $html
|
|
|
|
done
|
|
|
|
|
|
|
|
# Bash completion
|
2019-07-16 13:09:04 +02:00
|
|
|
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
|
2016-07-25 08:43:18 +02:00
|
|
|
|
2021-06-02 09:29:03 +02:00
|
|
|
# rewrite path in .desktop files
|
2019-07-16 13:09:04 +02:00
|
|
|
%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
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2019-04-02 13:13:17 +02:00
|
|
|
# Due package split we do this explicit to support older rpm version as well
|
|
|
|
install -m 0644 ../README %{buildroot}%{_docdir}/%{name}/README
|
|
|
|
|
2019-07-16 13:09:04 +02:00
|
|
|
%fdupes %{buildroot}%{_prefix}
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2016-07-25 08:44:44 +02:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%desktop_database_post
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2016-07-25 08:44:44 +02:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%desktop_database_postun
|
2016-07-25 08:43:18 +02:00
|
|
|
|
2013-02-05 19:30:59 +01:00
|
|
|
%files
|
2019-04-02 13:13:17 +02:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/README
|
2019-07-16 13:09:04 +02:00
|
|
|
%{_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}/%{name}/starter
|
|
|
|
%{_libdir}/%{name}/gracket
|
|
|
|
%{_libdir}/%{name}/starter-sh
|
2021-06-16 14:40:08 +02:00
|
|
|
%verify(not md5 size mtime) %{_libdir}/%{name}/*.rktd
|
|
|
|
%dir %{_libdir}/%{name}/compiled/
|
|
|
|
%{_libdir}/%{name}/compiled/*
|
2021-06-02 09:29:03 +02:00
|
|
|
%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
|
2024-04-09 19:46:19 +02:00
|
|
|
%endif
|
|
|
|
%ifarch ppc64 ppc64le
|
2022-08-22 23:00:39 +02:00
|
|
|
%{_libdir}/%{name}/mzdyn3m.lo
|
2021-06-02 09:29:03 +02:00
|
|
|
%endif
|
2019-07-16 13:09:04 +02:00
|
|
|
%{_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
|
|
|
|
%{_datadir}/bash_completion/completions/%{name}
|
|
|
|
%{_datadir}/applications/drracket.desktop
|
|
|
|
%{_datadir}/applications/slideshow.desktop
|
|
|
|
%{_datadir}/pixmaps/drracket.png
|
2021-06-16 14:40:08 +02:00
|
|
|
%exclude %dir %{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/
|
|
|
|
%exclude %{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/*.c*
|
|
|
|
%verify(not md5 size mtime) %{_datadir}/%{name}/*.rktd
|
|
|
|
%verify(not md5 size mtime) %{_datadir}/%{name}/pkgs/*.rktd
|
2021-06-02 09:29:03 +02:00
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%config %{_sysconfdir}/%{name}/config.rktd
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2019-04-02 13:13:17 +02:00
|
|
|
%files doc
|
|
|
|
%doc %{_docdir}/%{name}/*
|
|
|
|
%exclude %{_docdir}/%{name}/README
|
|
|
|
|
2013-02-05 19:30:59 +01:00
|
|
|
%files devel
|
2019-07-16 13:09:04 +02:00
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%dir %{_includedir}/%{name}
|
2021-06-16 14:40:08 +02:00
|
|
|
%dir %{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/
|
|
|
|
%{_datadir}/%{name}/pkgs/mzscheme-lib/mzscheme/examples/*.c*
|
2016-07-25 08:43:18 +02:00
|
|
|
|
2013-02-05 19:30:59 +01:00
|
|
|
%changelog
|