[10186] | 1 | %define pkg_name sbcl |
---|
| 2 | %define pkg_version 1.3.4 |
---|
| 3 | %define pkg_release 1%{?_dist_release} |
---|
| 4 | |
---|
| 5 | Summary: Steel Bank Common Lisp |
---|
| 6 | Name: %{pkg_name} |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
| 9 | |
---|
| 10 | License: A mixture of BSD-style and public domain |
---|
| 11 | Group: Applications/Languages |
---|
| 12 | URL: http://www.sbcl.org/ |
---|
| 13 | SOURCE: sbcl-%{version}-source.tar.bz2 |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: clisp |
---|
| 17 | BuildRequires: texinfo |
---|
| 18 | %if %{?_dist_release} == "vl6" |
---|
| 19 | BuildRequires: texlive-common |
---|
| 20 | BuildRequires: texlive-collection-texinfo |
---|
| 21 | %endif |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | Packager: ara_t |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler. |
---|
| 31 | It is open source / free software, with a permissive license. |
---|
| 32 | In addition to the compiler and runtime system for ANSI Common Lisp, |
---|
| 33 | it provides an interactive environment including a debugger, |
---|
| 34 | a statistical profiler, a code coverage tool, and many other extensions. |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 39 | %setup -q |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | sh make.sh "clisp" --prefix=%{_usr} |
---|
| 43 | |
---|
| 44 | cd doc/manual |
---|
| 45 | %{__make} html info |
---|
| 46 | %if %{?_dist_release} == "vl6" |
---|
| 47 | %{__make} pdf |
---|
| 48 | %endif |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | export INSTALL_ROOT=${RPM_BUILD_ROOT}%{_prefix} |
---|
| 52 | sh install.sh |
---|
| 53 | |
---|
| 54 | %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir |
---|
| 55 | %{__mv} ${RPM_BUILD_ROOT}%{_docdir}/sbcl/*.html \ |
---|
| 56 | ${RPM_BUILD_ROOT}%{_docdir}/sbcl/html |
---|
| 57 | |
---|
| 58 | %{__mv} ${RPM_BUILD_ROOT}%{_docdir}/sbcl \ |
---|
| 59 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version} |
---|
| 60 | |
---|
| 61 | %post |
---|
| 62 | for doc in asdf sbcl; do |
---|
| 63 | file=%{_infodir}/${doc}.info.gz |
---|
| 64 | if [ -e ${file} ]; then |
---|
| 65 | /sbin/install-info ${file} %{_infodir}/dir 2>/dev/null |
---|
| 66 | fi |
---|
| 67 | done |
---|
| 68 | |
---|
| 69 | %preun |
---|
| 70 | if [ $1 = 0 ]; then |
---|
| 71 | for doc in asdf sbcl; do |
---|
| 72 | file=%{_infodir}/${doc}.info.gz |
---|
| 73 | if [ -e ${file} ]; then |
---|
| 74 | /sbin/install-info --delete ${file} %{_infodir}/dir 2>/dev/null |
---|
| 75 | fi |
---|
| 76 | done |
---|
| 77 | fi |
---|
| 78 | |
---|
| 79 | %clean |
---|
| 80 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %files |
---|
| 84 | %defattr(-, root, root) |
---|
| 85 | %{_bindir}/ |
---|
| 86 | /usr/lib/sbcl/ |
---|
| 87 | %{_docdir}/sbcl-%{version} |
---|
| 88 | %{_infodir}/ |
---|
| 89 | %{_mandir}/man1/ |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %changelog |
---|
| 93 | * Sun Apr 17 2016 Toshiaki Ara <ara_t@384.jp> 1.3.4-1 |
---|
| 94 | - new package |
---|