2013-02-05 19:30:59 +01:00
|
|
|
#
|
|
|
|
# spec file for package racket
|
|
|
|
#
|
2017-03-13 08:08:07 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: racket
|
2016-07-25 08:44:44 +02:00
|
|
|
Version: 6.6
|
2013-02-05 19:30:59 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Scheme implementation with teaching tools
|
2013-03-15 16:13:15 +01:00
|
|
|
License: LGPL-2.1+ and GPL-3.0+
|
2013-02-05 19:30:59 +01:00
|
|
|
Group: Development/Languages/Scheme
|
|
|
|
Url: http://racket-lang.org
|
2016-07-25 08:44:44 +02:00
|
|
|
Source0: http://download.racket-lang.org/installers/%version/%name-%version-src.tgz
|
2013-02-05 19:30:59 +01:00
|
|
|
Source2: racket-completion.bash
|
|
|
|
Source3: racket-5.3.rpmlintrc
|
2016-07-25 08:44:44 +02:00
|
|
|
# PATCH-FIX-UPSTREAM aarch64 support for gc
|
|
|
|
Patch1: gc-aarch64.patch
|
2013-02-05 19:30:59 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: ImageMagick
|
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
|
|
|
|
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)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
|
BuildRequires: pkgconfig(libffi)
|
2016-07-25 08:43:18 +02:00
|
|
|
BuildRequires: pkgconfig(libpng)
|
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)
|
2016-07-30 09:25:19 +02:00
|
|
|
Provides: %name-drracket = %version-%release
|
|
|
|
Provides: %name-games = %version-%release
|
|
|
|
Provides: %name-webserver = %version-%release
|
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.
|
|
|
|
|
|
|
|
%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
|
2016-07-30 09:25:19 +02:00
|
|
|
Requires: %name = %version-%release
|
2013-02-05 19:30:59 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libffi-devel
|
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q
|
2016-07-25 08:44:44 +02:00
|
|
|
%patch1 -p1
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
cp %{S:2} src/.
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd src
|
|
|
|
|
2016-07-30 09:25:19 +02:00
|
|
|
%configure --enable-shared --disable-static --docdir="%_defaultdocdir/%name" --collectsdir="%_datadir/%name/collects" --disable-strip --enable-places --enable-lt="%_bindir/libtool"
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd src
|
|
|
|
|
2016-07-25 08:43:18 +02:00
|
|
|
# use the following if setting extra plt_setup options
|
2016-07-30 09:25:19 +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
|
|
|
|
2016-07-25 08:43:18 +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
|
|
|
|
2016-07-30 09:25:19 +02:00
|
|
|
find %buildroot -type f -size 0 -delete
|
2013-02-05 19:30:59 +01:00
|
|
|
# we do not need *.la and *.a files
|
|
|
|
|
2016-07-30 09:25:19 +02:00
|
|
|
find %buildroot%_libdir -name "*.la" -delete
|
|
|
|
find %buildroot%_libdir -name "*.a" -delete
|
2013-02-05 19:30:59 +01:00
|
|
|
|
2016-07-30 09:25:19 +02:00
|
|
|
install -Dm 644 %{S:2} %buildroot%_sysconfdir/bash_completion.d/%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
|
|
|
|
2016-07-25 08:44:44 +02:00
|
|
|
# rewrite path in .desktop files
|
2016-07-25 08:43:18 +02:00
|
|
|
|
2016-07-25 08:44:44 +02:00
|
|
|
%suse_update_desktop_file -c drracket "DrRacket" "DrRacket is an interactive, integrated, graphical programming environment for the Racket programming languages" "%_bindir/drracket -singleInstance" "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
|
|
|
|
2016-07-30 09:25:19 +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
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README
|
2017-03-13 08:08:07 +01:00
|
|
|
%doc %{_docdir}/%{name}
|
2016-07-25 08:44:44 +02:00
|
|
|
%_bindir/drracket
|
|
|
|
%_bindir/gracket
|
|
|
|
%_bindir/gracket-text
|
|
|
|
%_bindir/mred
|
|
|
|
%_bindir/mred-text
|
2013-02-05 19:30:59 +01:00
|
|
|
%_bindir/mzc
|
|
|
|
%_bindir/mzpp
|
|
|
|
%_bindir/mzscheme
|
|
|
|
%_bindir/mztext
|
2016-07-25 08:44:44 +02:00
|
|
|
%_bindir/pdf-slatex
|
|
|
|
%_bindir/plt-games
|
|
|
|
%_bindir/plt-help
|
2013-02-05 19:30:59 +01:00
|
|
|
%_bindir/plt-r5rs
|
|
|
|
%_bindir/plt-r6rs
|
2016-07-25 08:44:44 +02:00
|
|
|
%_bindir/plt-web-server
|
2013-02-05 19:30:59 +01:00
|
|
|
%_bindir/racket
|
|
|
|
%_bindir/raco
|
|
|
|
%_bindir/scribble
|
|
|
|
%_bindir/setup-plt
|
2016-07-25 08:44:44 +02:00
|
|
|
%_bindir/slatex
|
|
|
|
%_bindir/slideshow
|
2013-02-05 19:30:59 +01:00
|
|
|
%_bindir/swindle
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/%name/mzdyn3m.o
|
2016-07-25 08:44:44 +02:00
|
|
|
%_datadir/%name/*
|
2013-02-05 19:30:59 +01:00
|
|
|
%dir %_datadir/%name/collects
|
|
|
|
%_libdir/%name/starter
|
2016-07-25 08:44:44 +02:00
|
|
|
%_libdir/%name/gracket
|
|
|
|
%_libdir/%name/*.rktd
|
2016-07-30 09:25:19 +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*
|
2013-02-05 19:30:59 +01:00
|
|
|
%dir %_libdir/%name
|
|
|
|
%dir %_datadir/%name
|
|
|
|
%dir %_sysconfdir/bash_completion.d/
|
2016-07-25 08:44:44 +02:00
|
|
|
%dir %_sysconfdir/%name
|
2013-02-05 19:30:59 +01:00
|
|
|
%_sysconfdir/bash_completion.d/%name
|
2016-07-25 08:44:44 +02:00
|
|
|
%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/*
|
2013-02-05 19:30:59 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%_includedir/%name/*
|
2016-07-30 09:25:19 +02:00
|
|
|
%_libdir/%name/buildinfo
|
2013-02-05 19:30:59 +01:00
|
|
|
%dir %_includedir/%name
|
2016-07-25 08:44:44 +02:00
|
|
|
%_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/*
|
2016-07-25 08:43:18 +02:00
|
|
|
|
2013-02-05 19:30:59 +01:00
|
|
|
%changelog
|