caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Fox <dsfox@cogsci.ucsd.edu>
To: caml-list@inria.fr
Subject: [Caml-list] Patch to ocaml-3.01-2 RPM spec file
Date: 20 Mar 2001 08:35:33 -0800	[thread overview]
Message-ID: <luu24os8iy.fsf_-_@hci.ucsd.edu> (raw)
In-Reply-To: Tom Hirschowitz's message of "Tue, 20 Mar 2001 09:32:54 +0100"

I thought I would contribute these changes to the latest ocaml RPM
SPEC file because I had to rebuild it anyway to get the right paths
for the emacs site lisp files.  The emacs patch just adds a line to
the Makefile to byte compile caml-font.el.

--- ocaml-3.01-2.spec	Thu Mar  8 06:28:56 2001
+++ ocaml-3.01-3.spec	Tue Mar 20 08:25:03 2001
@@ -1,16 +1,18 @@
 Name: ocaml
 Version: 3.01
-Release: 2
+Release: 3
 Summary: The Objective Caml compiler and programming environment
 Source0: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01.tar.gz
 Source1: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01-refman.html.tar.gz
 Source2: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01-refman.ps.gz
 Source3: ftp://ftp.inria.fr/lang/caml-light/ocaml-3.01-refman.info.tar.gz
+Patch: ocaml-3.01-emacs.patch
 Copyright: Open Source
 Group: Development/Languages
 BuildRoot: /var/tmp/ocaml-buildroot
 Vendor: INRIA Rocquencourt
 URL: http://caml.inria.fr/
+BuildRequires: XFree86-devel gpm-devel ncurses-devel tcl tk emacs
 
 %description
 Objective Caml is a high-level, strongly-typed, functional and
@@ -24,27 +26,28 @@
 %setup -T -b 0
 %setup -T -D -a 1
 %setup -T -D -a 3
+%patch -p1
 cp ../../SOURCES/ocaml-3.01-refman.ps.gz refman.ps.gz
 
 %build
-./configure -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/man/man1
+./configure -bindir %{_bindir} -libdir %{_libdir}/ocaml -mandir %{_mandir}/man1
 make world opt ocamlc.opt ocamlopt.opt
 
 %install
-rm -rf ${RPM_BUILD_ROOT}/usr/lib/ocaml
-make install BINDIR=${RPM_BUILD_ROOT}/usr/bin LIBDIR=${RPM_BUILD_ROOT}/usr/lib/ocaml MANDIR=${RPM_BUILD_ROOT}/usr/man/man1
-(cd emacs; make install BINDIR=${RPM_BUILD_ROOT}/usr/bin EMACSDIR=${RPM_BUILD_ROOT}/usr/lib/emacs/site-lisp)
-(mkdir -p ${RPM_BUILD_ROOT}/usr/info; cd infoman; cp ocaml*.gz ${RPM_BUILD_ROOT}/usr/info)
+rm -rf %{buildroot}%{_libdir}/ocaml
+make install BINDIR=%{buildroot}%{_bindir} LIBDIR=%{buildroot}%{_libdir}/ocaml MANDIR=%{buildroot}%{_mandir}/man1
+(cd emacs; make install BINDIR=%{buildroot}%{_bindir} EMACSDIR=%{buildroot}%{_datadir}/emacs/site-lisp)
+(mkdir -p %{buildroot}%{_infodir}; cd infoman; cp ocaml*.gz %{buildroot}%{_infodir})
 
 # Disable build root strip policy, executables generated by ocamlc -custom
 # MUST NOT BE STRIPPED
 %define __spec_install_post /usr/lib/rpm/brp-compress
 
 %files
-/usr/bin/*
-/usr/man/man1/*
-/usr/lib/ocaml
-/usr/lib/emacs/site-lisp/*
-/usr/info/*
+%{_bindir}/*
+%{_mandir}/man1/*
+%{_libdir}/ocaml
+%{_datadir}/emacs/site-lisp/*
+%{_infodir}/*
 
 %doc refman.ps.gz htmlman

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


             reply	other threads:[~2001-03-20 16:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20 16:35 David Fox [this message]
2001-03-20 17:45 ` David Fox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=luu24os8iy.fsf_-_@hci.ucsd.edu \
    --to=dsfox@cogsci.ucsd.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).