Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[5f1a6f]: clisp.spec Maximize Restore History

Download this file

clisp.spec    105 lines (95 with data), 4.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
# Copyright (C) 1998, 1999, 2002 by Sam Steingold
# Distributed under the terms of the GNU General Public License.
# See <http://www.gnu.org/copyleft/gpl.html>.
# The purpose of this file is creation of source/binary RPMs,
# **NOT** building/installing CLISP.
# If you read the comments below, you will learn why.
# to create the source/binary RPMs, do
# rpmbuild -ba --sign clisp.spec
%define src /usr/local/src
%define prefix /usr
%define name clisp
# the release version is the same as the current development version,
# at least for some time :-)
%define version %(cat %{src}/%{name}/current/src/VERSION)
%define builddir build-rpm
%define mysrc %{src}/%{name}/current
# don't you just love that you have to fit the macro into one line?
# this automatically upgrades `release' with each build.
# don't forget to remove the file `.release' when changing `version'.
#%define release %(test -f .release || echo 0 >> .release; echo "1 + " `cat .release` | bc > .,release; mv -fv .,release .release; cat .release)
#%define release %(cat .release)
%define release 1
%define modules syscalls berkeley-db pcre regexp bindings/glibc clx/new-clx
Summary: Common Lisp (ANSI CL) implementation
Name: %{name}
Version: %{version}
Release: %{release}
# this crap does not accept PNG
#Icon: clisp.png
Copyright: GPL
Group: development/languages
Source: ftp://ftp.gnu.org/pub/gnu/clisp/release/latest/
URL: http://clisp.cons.org/
Packager: Sam Steingold <sds@gnu.org>
Provides: clisp, ansi-cl
Distribution: Red Hat GNU/Linux
BuildRoot: %{_tmppath}/%{name}-root
%description
%(cat SUMMARY)
This binary distribution was built with the following modules:
%{modules}
# <The following note dates from 1998:>
# RPM doesn't provide for comfortable operation: when I want to create a
# package, I have to untar, build and install (--short-circuit works for
# compilation and installation only, so if I want to build a binary RPM,
# I am doomed to untar, compile and install!) This is unacceptable, so
# I disabled untar completely - I don't need it anyway, I work from a
# CVS repository, and I comment out the build clause and `make install`.
# If *YOU* want to build using RPM, you are welcome to it: just
# uncomment the commands in the appropriate sections.
# Additionally, RPM barfs on rpmrc created with `rpm --showrc > /etc/rpmrc`
# which is an unspeakable abomination.
# I reported all these as bugs and was told "it's a feature, not a bug".
# <I welcome suggestion on how to make this file useful>
# <to me as well as source RPM users>
%prep
cat <<EOF
This will build RPMs for CLISP: %{name}-%{version}-%{release}.
We assume that you are in the top level source directory already.
No unpacking or patching is done - we go straight to build and
creating the RPMs. See 'clisp.spec' for more information.
EOF
%setup -T -D -n %{mysrc}
%build
echo "Uncomment 'configure' in 'clisp.spec' if you want to build";
#rm -rf %{builddir}
#MODS=''; for m in %{modules}; do MODS=${MODS}' '--with-module=$m; done
#./configure --prefix=%{prefix} --fsstnd=redhat ${MODS} --build %{builddir}
%install
cd %{builddir}
make DESTDIR=$RPM_BUILD_ROOT install
# create the source tar, necessary for source RPMs
# this has to be done just once - uncomment if you want it
#cd %{mysrc}
#make -f Makefile.devel src-distrib
#ln /tmp/%{name}-%{version}.tar.bz2 /usr/src/redhat/SOURCES/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{prefix}/bin/clisp
%{prefix}/lib/clisp/
%{prefix}/share/doc/%{name}-%{version}/
%{prefix}/share/man/man1/clisp.1.gz
%{prefix}/share/locale/de/LC_MESSAGES/clisp.mo
%{prefix}/share/locale/de/LC_MESSAGES/clisplow.mo
%{prefix}/share/locale/en/LC_MESSAGES/clisp.mo
%{prefix}/share/locale/en/LC_MESSAGES/clisplow.mo
%{prefix}/share/locale/es/LC_MESSAGES/clisp.mo
%{prefix}/share/locale/es/LC_MESSAGES/clisplow.mo
%{prefix}/share/locale/fr/LC_MESSAGES/clisp.mo
%{prefix}/share/locale/fr/LC_MESSAGES/clisplow.mo
%{prefix}/share/locale/nl/LC_MESSAGES/clisp.mo
%{prefix}/share/locale/nl/LC_MESSAGES/clisplow.mo
%{prefix}/share/locale/ru/LC_MESSAGES/clisp.mo
%{prefix}/share/locale/ru/LC_MESSAGES/clisplow.mo