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