You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.2 KiB
125 lines
4.2 KiB
## |
|
## xemacs.spec -- OpenPKG RPM Specification |
|
## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH |
|
## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/> |
|
## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com> |
|
## |
|
## Permission to use, copy, modify, and distribute this software for |
|
## any purpose with or without fee is hereby granted, provided that |
|
## the above copyright notice and this permission notice appear in all |
|
## copies. |
|
## |
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
## SUCH DAMAGE. |
|
## |
|
|
|
# package versions |
|
%define V_xemacs 21.4.12 |
|
%define V_sumo 2003-02-05 |
|
|
|
# package information |
|
Name: xemacs |
|
Summary: The GNU EMACS Text Editor (X11/Lucid Version) |
|
URL: http://www.xemacs.org/ |
|
Vendor: Richard Stallmann et al. |
|
Packager: The OpenPKG Project |
|
Distribution: OpenPKG [EVAL] |
|
Group: Editor |
|
License: GPL |
|
Version: %{V_xemacs} |
|
Release: 20030404 |
|
|
|
# package options |
|
%option with_sumo yes |
|
|
|
# list of sources |
|
Source0: ftp://ftp.xemacs.org/pub/xemacs/stable/xemacs-%{V_xemacs}.tar.gz |
|
Source1: ftp://ftp.xemacs.org/pub/xemacs/packages/xemacs-sumo-%{V_sumo}.tar.bz2 |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 20030103, X11, ncurses, gtk, jpeg, png, zlib, tiff, db, xpm, make |
|
PreReq: OpenPKG, openpkg >= 20030103, X11, ncurses |
|
AutoReq: no |
|
AutoReqProv: no |
|
|
|
%description |
|
The popular GNU EMACS text editor (X11/Lucid Version). |
|
|
|
%prep |
|
%setup0 -q |
|
|
|
%build |
|
PACKAGE_PATH="" |
|
for i in xemacs mule site; do |
|
[ ".$PACKAGE_PATH" != . ] && PACKAGE_PATH="${PACKAGE_PATH}::" |
|
PACKAGE_PATH="${PACKAGE_PATH}%{l_prefix}/lib/xemacs/${i}-packages" |
|
done |
|
CC="%{l_cc}" \ |
|
CFLAGS="%{l_cflags -O}" \ |
|
CPPFLAGS="%{l_cppflags tiff}" \ |
|
LDFLAGS="%{l_ldflags}" \ |
|
./configure \ |
|
--prefix=%{l_prefix} \ |
|
--with-gtk \ |
|
--with-x \ |
|
--x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \ |
|
--x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \ |
|
--package-path="$PACKAGE_PATH" \ |
|
--site-includes=%{l_prefix}/include \ |
|
--site-libraries=%{l_prefix}/lib \ |
|
--with-site-lisp \ |
|
--with-database=berkdb \ |
|
--with-ncurses \ |
|
--with-jpeg \ |
|
--with-tiff \ |
|
--with-png \ |
|
--with-xpm |
|
%{l_make} %{l_mflags} |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/info |
|
%{l_make} %{l_mflags} install \ |
|
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
|
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} |
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/xemacs |
|
mv $RPM_BUILD_ROOT%{l_prefix}/bin/xemacs-%{version} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/bin/xemacs |
|
mv $RPM_BUILD_ROOT%{l_prefix}/lib/xemacs-%{version}/info \ |
|
$RPM_BUILD_ROOT%{l_prefix}/info |
|
|
|
# create directories for additional packages |
|
for i in xemacs mule site; do |
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
$RPM_BUILD_ROOT/%{l_prefix}/lib/xemacs/${i}-packages |
|
done |
|
|
|
%if "%{with_sumo}" == "yes" |
|
# install optional sumo package cluster |
|
( cd $RPM_BUILD_ROOT/%{l_prefix}/lib/xemacs |
|
%{l_bzip2} -dc %{SOURCE xemacs-sumo-%{V_sumo}.tar.bz2} | %{l_tar} -xvf - |
|
) |
|
%endif |
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
%files -f files |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|