|
@@ -1,30 +1,31 @@
|
|
|
-%define year 2002
|
|
|
-%define month 07
|
|
|
-%define day 25
|
|
|
-%define name clisp
|
|
|
-%define version 2.49
|
|
|
-%define release 3%{?_dist_release}
|
|
|
-%define clisp_build vine
|
|
|
-
|
|
|
-Summary: Common Lisp (ANSI CL) implementation
|
|
|
-Summary(ja): 関数型言語 Common Lisp (ANSI CL) の実装
|
|
|
-Name: clisp
|
|
|
-Version: %{version}
|
|
|
-Release: %{release}
|
|
|
-Icon: clisp.gif
|
|
|
-License: GPL
|
|
|
-Group: Development/Languages
|
|
|
-Source: ftp://ftp.gnu.org/pub/gnu/clisp/release/%{version}/%{name}-%{version}.tar.bz2
|
|
|
-
|
|
|
-# patch from suse
|
|
|
-# PATCH-FIX-OPENSUSE Correct path for header for System V IPC system calls
|
|
|
-Patch0: clisp-linux.patch
|
|
|
-# PATCH-FIX-OPENSUSE Glibc got rid of unused __swblk_t type therefore update linux.lisp
|
|
|
-Patch1: clisp-glibc-fix.patch
|
|
|
-#PATCH-FIX-UPSTREAM patch#3474660 changeset 15557 4f5985f83127
|
|
|
-Patch2: clisp-hostname.patch
|
|
|
-
|
|
|
-URL: http://www.clisp.org/
|
|
|
+%bcond_with check
|
|
|
+
|
|
|
+Summary: Common Lisp (ANSI CL) implementation
|
|
|
+Summary(ja): 関数型言語 Common Lisp (ANSI CL) の実装
|
|
|
+Name: clisp
|
|
|
+Version: 2.49.93
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: Development/Languages
|
|
|
+
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+License: GPL
|
|
|
+URL: http://www.clisp.org/
|
|
|
+#Source0: https://ftp.gnu.org/pub/gnu/clisp/release/%{version}/%{name}-%{version}.tar.bz2
|
|
|
+Source0: clisp-dd40369.tar.xz
|
|
|
+
|
|
|
+# https://sourceforge.net/p/clisp/patches/35/
|
|
|
+Patch0: %{name}-db.patch
|
|
|
+# https://sourceforge.net/p/clisp/patches/32/
|
|
|
+Patch1: %{name}-format.patch
|
|
|
+# The encrypt and setkey functions are no longer available from glibc
|
|
|
+Patch2: %{name}-setkey.patch
|
|
|
+# Adapt to changes in pari 2.11.0
|
|
|
+Patch3: %{name}-pari.patch
|
|
|
+# The combination of register and volatile is nonsensical
|
|
|
+Patch4: %{name}-register-volatile.patch
|
|
|
+
|
|
|
Provides: clisp, ansi-cl
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: imake
|
|
@@ -52,6 +53,8 @@ BuildRequires: libpq-devel
|
|
|
BuildRequires: openssl-devel
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
+Requires: vim-common
|
|
|
+
|
|
|
%description
|
|
|
Common Lisp is a high-level, general-purpose, object-oriented, dynamic,
|
|
|
functional programming language.
|
|
@@ -79,21 +82,51 @@ The user interface comes in English, German, French, Spanish, Dutch, Russian
|
|
|
and Danish, and can be changed at run time.
|
|
|
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
-%patch0 -p1
|
|
|
-%patch1 -p1 -b .glibc
|
|
|
+%setup -q -n clisp-dd40369
|
|
|
+
|
|
|
+%patch0 -p0
|
|
|
+%patch1 -p0
|
|
|
%patch2 -p0
|
|
|
-sed -i 's|http://www.lisp.org/HyperSpec/|http://www.lispworks.com/documentation/HyperSpec/|g' \
|
|
|
- doc/* src/*.d src/*.lisp
|
|
|
+%patch3 -p0
|
|
|
+%patch4 -p0
|
|
|
+
|
|
|
+# Change URLs not affected by the --hyperspec argument to configure
|
|
|
+sed -i.orig 's|lisp.org/HyperSpec/Body/chap-7.html|lispworks.com/documentation/HyperSpec/Body/07_.htm|' \
|
|
|
+ src/clos-package.lisp
|
|
|
+touch -r src/clos-package.lisp.orig src/clos-package.lisp
|
|
|
+rm -f src/clos-package.lisp.orig
|
|
|
+for f in src/_README.*; do
|
|
|
+ sed -i.orig 's|lisp.org/HyperSpec/FrontMatter|lispworks.com/documentation/HyperSpec/Front|' $f
|
|
|
+ touch -r ${f}.orig $f
|
|
|
+ rm -f ${f}.orig
|
|
|
+done
|
|
|
+
|
|
|
+# We only link against libraries in system directories, so we need -L dir in
|
|
|
+# place of -Wl,-rpath -Wl,dir
|
|
|
+cp -p src/build-aux/config.rpath config.rpath.orig
|
|
|
+sed -i -e 's/${wl}-rpath ${wl}/-L/g' src/build-aux/config.rpath
|
|
|
+
|
|
|
+# Fix modules that need access to symbols in libgnu.a
|
|
|
+sed -i 's/\(${GLLIB_A}\) \(${LIBS}\)/-Wl,--whole-archive \1 -Wl,--no-whole-archive \2 -ldl/' src/makemake.in
|
|
|
+
|
|
|
+# Enable firefox to be the default browser for displaying documentation
|
|
|
+sed -i 's/;; \((setq \*browser\* .*)\)/\1/' src/cfgunix.lisp
|
|
|
+
|
|
|
+# Unpack the CLX manual
|
|
|
+tar -C modules/clx -xzf modules/clx/clx-manual.tar.gz
|
|
|
+chmod -R go+r modules/clx/clx-manual
|
|
|
+chmod a-x modules/clx/clx-manual/html/doc-index.cgi
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
-%ifarch ppc ppc64
|
|
|
-%define opt_flags "%{optflags} -DNO_GENERATIONAL_GC -DNO_MULTIMAP_FILE -DNO_SINGLEMAP"
|
|
|
ulimit -s unlimited
|
|
|
-%else
|
|
|
-%define opt_flags "%{optflags}"
|
|
|
-%endif
|
|
|
+export LC_ALL=C.UTF-8
|
|
|
|
|
|
+# Do not need to specify base modules: i18n, readline, regexp, syscalls.
|
|
|
+# The dirkey module currently can only be built on Windows/Cygwin/MinGW.
|
|
|
+# The editor module is not in good enough shape to use.
|
|
|
+# The matlab, netica, and oracle modules require proprietary code to build.
|
|
|
+# The queens module is intended as an example only, not for actual use.
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
--libdir=%{_libdir} \
|
|
|
--mandir=%{_mandir} \
|
|
@@ -106,19 +139,24 @@ ulimit -s unlimited
|
|
|
--with-module=fastcgi \
|
|
|
--with-module=gdbm \
|
|
|
--with-module=gtk2 \
|
|
|
- --with-module=i18n \
|
|
|
--with-module=pcre \
|
|
|
--with-module=postgresql \
|
|
|
--with-module=rawsock \
|
|
|
- --with-module=regexp \
|
|
|
- --with-module=syscalls \
|
|
|
- --with-module=wildcard \
|
|
|
--with-module=zlib \
|
|
|
- --with-readline \
|
|
|
- --cbc \
|
|
|
- build CFLAGS=%opt_flags
|
|
|
+ --cbcx \
|
|
|
+ build \
|
|
|
+ CFLAGS="%{optflags} -Wa,--noexecstack" \
|
|
|
+ LDFLAGS="-Wl,--as-needed -Wl,-z,relro -Wl,-z,noexecstack" \
|
|
|
+%if %{with check}
|
|
|
+ %{nil}
|
|
|
+%else
|
|
|
+ ||:
|
|
|
+%endif
|
|
|
+
|
|
|
+make -C build
|
|
|
|
|
|
%install
|
|
|
+ulimit -s unlimited
|
|
|
rm -rf %{buildroot}
|
|
|
make -C build DESTDIR=%{buildroot} install
|
|
|
rm -f %{buildroot}%{_docdir}/clisp-%{version}/doc/clisp.{dvi,1,ps}
|
|
@@ -144,13 +182,17 @@ rm -rf %{buildroot}
|
|
|
%{_bindir}/%{name}
|
|
|
%{_bindir}/%{name}-link
|
|
|
%{_mandir}/man1/*
|
|
|
-%{_libdir}/%{name}-%{version}
|
|
|
+%{_libdir}/%{name}-%{version}+
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
%{_datadir}/emacs/site-lisp/*
|
|
|
%{_sysconfdir}/vim
|
|
|
%doc %{_docdir}/clisp-%{version}
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Nov 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.49.93-1
|
|
|
+- updated tarball from git (2.49.93+).
|
|
|
+- replaced patches from rawhide.
|
|
|
+
|
|
|
* Fri Jul 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.49-3
|
|
|
- rebuild with readline-6.3
|
|
|
- add Patch0,1,2 from suse
|