1 | %bcond_with check |
---|
2 | |
---|
3 | Summary: Common Lisp (ANSI CL) implementation |
---|
4 | Summary(ja): 関数型言語 Common Lisp (ANSI CL) の実装 |
---|
5 | Name: clisp |
---|
6 | Version: 2.49.93 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: Development/Languages |
---|
9 | |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | License: GPL |
---|
14 | URL: http://www.clisp.org/ |
---|
15 | #Source0: https://ftp.gnu.org/pub/gnu/clisp/release/%{version}/%{name}-%{version}.tar.bz2 |
---|
16 | Source0: clisp-dd40369.tar.xz |
---|
17 | |
---|
18 | # https://sourceforge.net/p/clisp/patches/35/ |
---|
19 | Patch0: %{name}-db.patch |
---|
20 | # https://sourceforge.net/p/clisp/patches/32/ |
---|
21 | Patch1: %{name}-format.patch |
---|
22 | # The encrypt and setkey functions are no longer available from glibc |
---|
23 | Patch2: %{name}-setkey.patch |
---|
24 | # Adapt to changes in pari 2.11.0 |
---|
25 | Patch3: %{name}-pari.patch |
---|
26 | # The combination of register and volatile is nonsensical |
---|
27 | Patch4: %{name}-register-volatile.patch |
---|
28 | |
---|
29 | Provides: clisp, ansi-cl |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
31 | BuildRequires: imake |
---|
32 | BuildRequires: libsigsegv-devel |
---|
33 | BuildRequires: readline-devel |
---|
34 | BuildRequires: dbus-devel |
---|
35 | BuildRequires: diffutils |
---|
36 | BuildRequires: fcgi-devel |
---|
37 | BuildRequires: ffcall |
---|
38 | BuildRequires: gdbm-devel |
---|
39 | BuildRequires: gettext |
---|
40 | BuildRequires: gtk2-devel |
---|
41 | BuildRequires: libICE-devel |
---|
42 | BuildRequires: libSM-devel |
---|
43 | BuildRequires: libX11-devel |
---|
44 | BuildRequires: libXaw-devel |
---|
45 | BuildRequires: libXext-devel |
---|
46 | BuildRequires: libXft-devel |
---|
47 | BuildRequires: libXmu-devel |
---|
48 | BuildRequires: libXrender-devel |
---|
49 | BuildRequires: libXt-devel |
---|
50 | BuildRequires: libglade2-devel |
---|
51 | BuildRequires: pcre-devel |
---|
52 | BuildRequires: libpq-devel |
---|
53 | BuildRequires: openssl-devel |
---|
54 | BuildRequires: zlib-devel |
---|
55 | |
---|
56 | Requires: vim-common |
---|
57 | |
---|
58 | %description |
---|
59 | Common Lisp is a high-level, general-purpose, object-oriented, dynamic, |
---|
60 | functional programming language. |
---|
61 | |
---|
62 | CLISP is a Common Lisp implementation by Bruno Haible, then of Karlsruhe |
---|
63 | University, and Michael Stoll, then of Munich University, both in Germany. |
---|
64 | It supports the Lisp described in the ANSI Common Lisp standard plus many |
---|
65 | extensions. |
---|
66 | |
---|
67 | CLISP includes an interpreter, a compiler, a debugger, CLOS, MOP, a foreign |
---|
68 | language interface, i18n, regular expressions, a socket interface, and more. |
---|
69 | An X11 interface is available through CLX, Garnet and CLUE/CLIO. Command line |
---|
70 | editing is provided by readline. CLISP runs Maxima, ACL2 and many other |
---|
71 | Common Lisp packages. |
---|
72 | |
---|
73 | CLISP runs on most GNU and Unix systems (Linux, FreeBSD, NetBSD, OpenBSD, |
---|
74 | Solaris, Tru64, HP-UX, BeOS, NeXTstep, IRIX, AIX and others) and on other |
---|
75 | systems (Windows NT/2000/XP, Windows 95/98/ME) and needs only 4 MB of RAM. |
---|
76 | |
---|
77 | CLISP is Free Software and may be distributed under the terms of GNU GPL. |
---|
78 | You may distribute commercial proprietary applications compiled with CLISP, |
---|
79 | see file COPYRIGHT in the CLISP distribution. |
---|
80 | |
---|
81 | The user interface comes in English, German, French, Spanish, Dutch, Russian |
---|
82 | and Danish, and can be changed at run time. |
---|
83 | |
---|
84 | %prep |
---|
85 | %setup -q -n clisp-dd40369 |
---|
86 | |
---|
87 | %patch0 -p0 |
---|
88 | %patch1 -p0 |
---|
89 | %patch2 -p0 |
---|
90 | %patch3 -p0 |
---|
91 | %patch4 -p0 |
---|
92 | |
---|
93 | # Change URLs not affected by the --hyperspec argument to configure |
---|
94 | sed -i.orig 's|lisp.org/HyperSpec/Body/chap-7.html|lispworks.com/documentation/HyperSpec/Body/07_.htm|' \ |
---|
95 | src/clos-package.lisp |
---|
96 | touch -r src/clos-package.lisp.orig src/clos-package.lisp |
---|
97 | rm -f src/clos-package.lisp.orig |
---|
98 | for f in src/_README.*; do |
---|
99 | sed -i.orig 's|lisp.org/HyperSpec/FrontMatter|lispworks.com/documentation/HyperSpec/Front|' $f |
---|
100 | touch -r ${f}.orig $f |
---|
101 | rm -f ${f}.orig |
---|
102 | done |
---|
103 | |
---|
104 | # We only link against libraries in system directories, so we need -L dir in |
---|
105 | # place of -Wl,-rpath -Wl,dir |
---|
106 | cp -p src/build-aux/config.rpath config.rpath.orig |
---|
107 | sed -i -e 's/${wl}-rpath ${wl}/-L/g' src/build-aux/config.rpath |
---|
108 | |
---|
109 | # Fix modules that need access to symbols in libgnu.a |
---|
110 | sed -i 's/\(${GLLIB_A}\) \(${LIBS}\)/-Wl,--whole-archive \1 -Wl,--no-whole-archive \2 -ldl/' src/makemake.in |
---|
111 | |
---|
112 | # Enable firefox to be the default browser for displaying documentation |
---|
113 | sed -i 's/;; \((setq \*browser\* .*)\)/\1/' src/cfgunix.lisp |
---|
114 | |
---|
115 | # Unpack the CLX manual |
---|
116 | tar -C modules/clx -xzf modules/clx/clx-manual.tar.gz |
---|
117 | chmod -R go+r modules/clx/clx-manual |
---|
118 | chmod a-x modules/clx/clx-manual/html/doc-index.cgi |
---|
119 | |
---|
120 | |
---|
121 | %build |
---|
122 | ulimit -s unlimited |
---|
123 | export LC_ALL=C.UTF-8 |
---|
124 | |
---|
125 | # Do not need to specify base modules: i18n, readline, regexp, syscalls. |
---|
126 | # The dirkey module currently can only be built on Windows/Cygwin/MinGW. |
---|
127 | # The editor module is not in good enough shape to use. |
---|
128 | # The matlab, netica, and oracle modules require proprietary code to build. |
---|
129 | # The queens module is intended as an example only, not for actual use. |
---|
130 | ./configure --prefix=%{_prefix} \ |
---|
131 | --libdir=%{_libdir} \ |
---|
132 | --mandir=%{_mandir} \ |
---|
133 | --docdir=%{_docdir}/clisp-%{version} \ |
---|
134 | --fsstnd=redhat \ |
---|
135 | --hyperspec=http://www.lispworks.com/documentation/HyperSpec/ \ |
---|
136 | --with-module=bindings/glibc \ |
---|
137 | --with-module=clx/new-clx \ |
---|
138 | --with-module=dbus \ |
---|
139 | --with-module=fastcgi \ |
---|
140 | --with-module=gdbm \ |
---|
141 | --with-module=gtk2 \ |
---|
142 | --with-module=pcre \ |
---|
143 | --with-module=postgresql \ |
---|
144 | --with-module=rawsock \ |
---|
145 | --with-module=zlib \ |
---|
146 | --cbcx \ |
---|
147 | build \ |
---|
148 | CFLAGS="%{optflags} -Wa,--noexecstack" \ |
---|
149 | LDFLAGS="-Wl,--as-needed -Wl,-z,relro -Wl,-z,noexecstack" \ |
---|
150 | %if %{with check} |
---|
151 | %{nil} |
---|
152 | %else |
---|
153 | ||: |
---|
154 | %endif |
---|
155 | |
---|
156 | make -C build |
---|
157 | |
---|
158 | %install |
---|
159 | ulimit -s unlimited |
---|
160 | rm -rf %{buildroot} |
---|
161 | make -C build DESTDIR=%{buildroot} install |
---|
162 | rm -f %{buildroot}%{_docdir}/clisp-%{version}/doc/clisp.{dvi,1,ps} |
---|
163 | cp -p doc/mop-spec.pdf %{buildroot}%{_docdir}/clisp-%{version}/doc |
---|
164 | cp -p doc/*.png %{buildroot}%{_docdir}/clisp-%{version}/doc |
---|
165 | cp -p doc/Why-CLISP* %{buildroot}%{_docdir}/clisp-%{version}/doc |
---|
166 | cp -p doc/regexp.html %{buildroot}%{_docdir}/clisp-%{version}/doc |
---|
167 | find %{buildroot}%{_libdir} -name '*.dvi' | xargs rm -f |
---|
168 | %find_lang %{name} |
---|
169 | %find_lang %{name}low |
---|
170 | cat %{name}low.lang >> %{name}.lang |
---|
171 | |
---|
172 | ## ad-hoc fix <BTS:VineLinux:825>: '--vimdir' option is broken... |
---|
173 | %__mkdir_p %{buildroot}%{_sysconfdir}/vim |
---|
174 | %__mv %{buildroot}%{_datadir}/vim/vimfiles/after %{buildroot}%{_sysconfdir}/vim |
---|
175 | |
---|
176 | %clean |
---|
177 | rm -rf %{buildroot} |
---|
178 | |
---|
179 | |
---|
180 | %files -f %{name}.lang |
---|
181 | %defattr(-,root,root,-) |
---|
182 | %{_bindir}/%{name} |
---|
183 | %{_bindir}/%{name}-link |
---|
184 | %{_mandir}/man1/* |
---|
185 | %{_libdir}/%{name}-%{version}+ |
---|
186 | %{_datadir}/aclocal/*.m4 |
---|
187 | %{_datadir}/emacs/site-lisp/* |
---|
188 | %{_sysconfdir}/vim |
---|
189 | %doc %{_docdir}/clisp-%{version} |
---|
190 | |
---|
191 | %changelog |
---|
192 | * Sat Nov 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.49.93-1 |
---|
193 | - updated tarball from git (2.49.93+). |
---|
194 | - replaced patches from rawhide. |
---|
195 | |
---|
196 | * Fri Jul 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.49-3 |
---|
197 | - rebuild with readline-6.3 |
---|
198 | - add Patch0,1,2 from suse |
---|
199 | - remove BuildRequires: postgresql-devel |
---|
200 | - add BuildRequires: libpq-devel, openssl-devel |
---|
201 | |
---|
202 | * Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.49-2 |
---|
203 | - rebuild with current ffcall |
---|
204 | |
---|
205 | * Tue Apr 19 2011 IWAI, Masaharu <iwai@alib.jp> 2.49-1 |
---|
206 | - new upstream release |
---|
207 | - ad-hoc fix <BTS:VineLinux:825>: but '--vimdir' option is broken... |
---|
208 | |
---|
209 | * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 2.48-2 |
---|
210 | - rebuilt with postgresql-9.0.3 |
---|
211 | |
---|
212 | * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.48-1 |
---|
213 | - new upstream release |
---|
214 | - built with new toolchain, libsigsegv-2.8 |
---|
215 | - updated build dependencies |
---|
216 | |
---|
217 | * Sun Sep 21 2008 Shu KONNO <owa@bg.wakwak.com> 2.43-1vl5 |
---|
218 | - applied new versioning policy, spec in utf-8 |
---|
219 | |
---|
220 | * Mon Nov 26 2007 Shu KONNO <owa@bg.wakwak.ne.jp> 2.43-0vl1 |
---|
221 | - version up to 2.43 |
---|
222 | - updated source url |
---|
223 | - changed %%{_libdir}/clisp to %%{_libdir}/clisp-%%{version} |
---|
224 | - added option "--libdir=%%{_libdir}" to configure for lib64 |
---|
225 | |
---|
226 | * Sun Mar 18 2007 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> 2.41-0vl1 |
---|
227 | - version up to 2.41 |
---|
228 | - add BuildRequires : readline-devel, gettext, libsigsegv-devel |
---|
229 | - update %%description, %%files, configure options |
---|
230 | - drop hfs patch |
---|
231 | |
---|
232 | * Tue Jan 6 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.32-0vl1 |
---|
233 | - version up to 2.32 |
---|
234 | - rebuild with new toolchains |
---|
235 | - updated hfs patch |
---|
236 | |
---|
237 | * Sun Aug 25 2002 Yoshihiro Ota <ota@j.email.ne.jp> |
---|
238 | - version up to 2.29 |
---|
239 | |
---|
240 | * Sat Mar 9 2002 Yoshihiro Ota <ota@j.email.ne.jp> |
---|
241 | - version up to 2.28 |
---|
242 | - added BuildRequires : ncurses-devel and removed groff patch |
---|
243 | |
---|
244 | * Fri Jan 18 2002 Yoshihiro Ota <ota@j.email.ne.jp> |
---|
245 | - create rpm for release 2.27 |
---|