File gnuserv.spec of Package gnuserv
#
# spec file for package gnuserv (Version 3.12.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnuserv
BuildRequires: emacs-nox xorg-x11 xorg-x11-devel
License: GPL v2 or later
Group: Productivity/Editors/Emacs
Provides: fgnuserv
Obsoletes: fgnuserv
AutoReqProv: on
Summary: Server and Clients for Emacs
Version: 3.12.6
Release: 251
Source: http://meltin.net/hacks/emacs/gnuserv-%{version}.tar.gz
Source1: %{name}-README.SuSE
Patch: gnuserv-3.12.6.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package is not required for XEmacs, because the tools included
here are a part of the XEmacs package.
With these tools, an already running Emacs can be accessed externally,
for example, in order to edit a file or run a code in Emacs Lisp. This
way, there is no need to start a new Emacs each time another
application loads an editor.
Find hints at /usr/share/doc/packages/gnuserv/README.SuSE.
Authors:
--------
Andy Norman <ange@hplb.hpl.hp.com>
Arup Mukherjee <arup@cmu.edu>
Bob Weiner <weiner@mot.com>
Darrell Kindred <dkindred@cmu.edu>
Martin Schwenke <martin@meltin.net>
Noah Friedman <friedman@prep.ai.mit.edu>
%define INSTALL install -m755 -s
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%prep
%setup -q
cp -p %{S:1} README.SuSE
%patch -p1
%build
# export LC_CTYPE=ISO-8859-1
autoreconf -fi
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} --x-includes=/usr/include
make "CFLAGS=$RPM_OPT_FLAGS"
make gnuserv.elc
# emacs -batch -f batch-byte-compile gnuserv.el
%install
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_mandir}/man1 \
$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
man1dir=$RPM_BUILD_ROOT%{_mandir}/man1
make install-elisp elispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp \
prefix=$RPM_BUILD_ROOT%{_prefix}
pushd $RPM_BUILD_ROOT%{_mandir}/man1
for f in *.1 ; do
case $f in
gnuserv.1)
# To avoid conflict with xemacs:
mv $f emacs-$f
;;
*)
rm -f $f
ln -s emacs-gnuserv.1.gz emacs-$f.gz
;;
esac
done
popd
mv README.orig README.%{name}
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc COPYING README README.%{name} README.SuSE
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/emacs/site-lisp/*
%changelog
* Tue Oct 21 2008 ke@suse.de
- Improve README.SuSE ; reported and verified by Dieter Jurzitza
[bnc#436939].
* Wed Aug 02 2006 aj@suse.de
- Fix build with X11R7.
* Wed May 24 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Tue Sep 28 2004 ke@suse.de
- Configure need X includes and libraries; thanks to Martin Schwenke for
help [# 45999].
* Tue Aug 31 2004 schwab@suse.de
- Update to gnuserv 3.12.6.
- Fix manpage links.
* Fri Mar 19 2004 ke@suse.de
- Rename README.orig to README.%%{name} to make autobuild happy.
* Wed Jun 19 2002 ke@suse.de
- Use more RPM macros.
- Rename manpages (emacs-*) to avoid conflicts with xemacs [# 15120].
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Mon Nov 12 2001 ro@suse.de
- added emacs dependency graphics libs to neededforbuild
* Sun May 06 2001 schwab@suse.de
- Fix portability bug.
* Tue Mar 13 2001 ro@suse.de
- added emacs-x11 to neededforbuild
* Thu Mar 08 2001 uli@suse.de
- added xf86 to neededforbuild
* Mon Feb 05 2001 ke@suse.de
- Update to version 3.12.1 (security update on request by Martin
Schwanke; thanks!).
- Use more RPM macros.
* Fri Nov 17 2000 ro@suse.de
- ge_exec -> emacs
* Mon Feb 28 2000 schwab@suse.de
- /usr/man -> /usr/share/man
- Add group tag.
- configure -> %%build
* Mon Oct 04 1999 ke@suse.de
- Update: 3.11.1 (use sources provided by Martin Schwenke), based on
recent XEmacs files.
- Rename package: formerly `fgnuserv'.
- spec file cleanup.
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Sun May 02 1999 ke@suse.de
- initial package: version 1.0.