Commit 12116977 authored by Kent Engström's avatar Kent Engström
Browse files

Support for building RPMS.

parent ec19e44b
2000-08-16 Kent Engström <kent@ceres.unit.liu.se>
* Makefile, lyskom-elisp-client.spec: Support for building RPMS.
2000-08-16 David Byers <davby@ida.liu.se> 2000-08-16 David Byers <davby@ida.liu.se>
* commands1.el (lyskom-list-created-conferences-2): sit-for to * commands1.el (lyskom-list-created-conferences-2): sit-for to
......
...@@ -40,6 +40,9 @@ CLIENTVERSION = 0.46-BETA-N ...@@ -40,6 +40,9 @@ CLIENTVERSION = 0.46-BETA-N
DOCFILES=NEWS-0.46 DOCFILES=NEWS-0.46
DEBIANCLIENTVERSION = $(shell echo $(CLIENTVERSION) | tr - .) DEBIANCLIENTVERSION = $(shell echo $(CLIENTVERSION) | tr - .)
REDHATCLIENTVERSION = $(shell echo $(CLIENTVERSION) | tr - .)
RPMROOT = /usr/src/redhat
FTPDIR=/home/davby/www-pub FTPDIR=/home/davby/www-pub
#FTPDIR = /usr/ftp/pub/lyskom/elisp-client #FTPDIR = /usr/ftp/pub/lyskom/elisp-client
LISPDIR = /usr/gnu/share/emacs/site-lisp LISPDIR = /usr/gnu/share/emacs/site-lisp
...@@ -196,6 +199,12 @@ debian-build: release-files ...@@ -196,6 +199,12 @@ debian-build: release-files
cp lyskom-$(CLIENTVERSION).tar.gz lyskom-elisp-client_$(DEBIANCLIENTVERSION).orig.tar.gz cp lyskom-$(CLIENTVERSION).tar.gz lyskom-elisp-client_$(DEBIANCLIENTVERSION).orig.tar.gz
cd lyskom-elisp-client-$(DEBIANCLIENTVERSION) && dpkg-buildpackage cd lyskom-elisp-client-$(DEBIANCLIENTVERSION) && dpkg-buildpackage
redhat-packages: release-files redhat-build release-cleanup
redhat-build: release-files
cp lyskom-$(CLIENTVERSION).tar.gz $(RPMROOT)/SOURCES/
sed -e "s/#CLIENTVERSION#/$(CLIENTVERSION)/" -e "s/#REDHATCLIENTVERSION#/$(REDHATCLIENTVERSION)/" <lyskom-elisp-client.spec >$(RPMROOT)/SPECS/lyskom-elisp-client-$(REDHATCLIENTVERSION).spec
rpm -ba $(RPMROOT)/SPECS/lyskom-elisp-client-$(REDHATCLIENTVERSION).spec
clean: clean:
$(RM) *.el.gz *.elc.gz $(TARGET-EL) $(RM) *.el.gz *.elc.gz $(TARGET-EL)
$(RM) -rf lyskom-$(CLIENTVERSION) \ $(RM) -rf lyskom-$(CLIENTVERSION) \
......
Name: lyskom-elisp-client
Summary: LysKOM client for Emacs
Version: #REDHATCLIENTVERSION#
Release: 1
Copyright: GPL
Group: Applications/Internet
Source: http://www.ida.liu.se/~davby/lyskom-#CLIENTVERSION#.tar.gz
Vendor: Lysator
Packager: Kent Engstrm <kent@lysator.liu.se>
Requires: emacs >= 20.1
%description
Emacs client for the LysKOM conference system developed at Lysator
Academic Computer Society (http://www.lysator.liu.se/). To be able to
start the LysKOM client conveniently, just add
(autoload 'lyskom "lyskom-elisp-client" "Start a LysKOM session." t)
to your ~/.emacs file. You may then start the client by invoking
M-x lyskom.
%prep
%setup -n lyskom-#CLIENTVERSION#
%build
make
%install
install -o root -g root -m 644 lyskom.el /usr/share/emacs/site-lisp/lyskom.el
install -o root -g root -m 644 lyskom.elc /usr/share/emacs/site-lisp/lyskom.elc
%files
/usr/share/emacs/site-lisp/lyskom.el
/usr/share/emacs/site-lisp/lyskom.elc
%doc README
%doc COPYING
%doc NEWS-0.46
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment