RPM Spec for R7B.

Geoff Wong <>
Sun Oct 1 14:03:10 CEST 2000


My RPM spec for Erlang R7B follows.
The patches are the ones I've posted here today
(packaged slightly differently; you'll have to tinker with them).

I'll try to make a package available on the eddieware site 
sometime in the near future.

Geoff

----

Summary: The Erlang/OTP system.
Name: erlang_otp
#
########################################
# Uncomment the define and Requires
# for your intended RedHat version
#
##### RedHat 5.2 #####
#%define rhrel 5.2
#Requires: redhat-release < 6.0
#
##### RedHat 6.0 #####
%define rhrel 6.1
Requires: redhat-release >= 6.0
########################################
#
Version: R7B
Release: 1
%define SrcRelease 0
Copyright: Ericsson Public License
Group: Networking/Utilities
Source: http://www.erlang.org/download/otp_src_%{version}-%{SrcRelease}.tar.gz
#Patch0: 7b_patch01.txt
#Patch1: 7b_patch02.txt
#Patch2: 7b_patch03.txt
#Patch3: 7b_patch04.txt
#Patch4: 7b_patch05.txt
Provides: Open Source Erlang/OTP
BuildRoot: /tmp/erlangbuild
URL: http://www.erlang.org/
Packager: 


%description
The Erlang/OTP system --- Erlang is a programming language which
has many features more commonly associated with an operating system
than with a programming language: concurrent processes, scheduling,
memory management, distribution, networking, etc. The development package
in addition contains the Erlang sources for all base libraries.
Includes the Erlang/OTP graphical libraries.

NOTE: this RPM is intended for RedHat %{rhrel} systems.

%prep

rm -rf "$RPM_BUILD_ROOT"

%setup -n otp_src_%{version}-0

patch -p0 < $RPM_SOURCE_DIR/7b_patch01.txt
patch -p0 < $RPM_SOURCE_DIR/7b_patch02.txt
patch -p0 < $RPM_SOURCE_DIR/7b_patch03.txt
patch -p0 < $RPM_SOURCE_DIR/7b_patch04.txt
patch -p0 < $RPM_SOURCE_DIR/7b_patch05.txt

%build

./configure --prefix=/usr/local 
make

%install

rm -rf $RPM_BUILD_ROOT
make install INSTALL_PREFIX="$RPM_BUILD_ROOT"
sed s:$RPM_BUILD_ROOT:: $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl > $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl.inst
mv $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl.build
mv $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl.inst $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl
chmod a+x $RPM_BUILD_ROOT/usr/local/lib/erlang/bin/erl
rm $RPM_BUILD_ROOT/usr/local/bin/erl
rm $RPM_BUILD_ROOT/usr/local/bin/erlc
cd $RPM_BUILD_ROOT/usr/local/bin; ln -s /usr/local/lib/erlang/bin/erl .; ln -s /usr/local/lib/erlang/bin/erlc .

%clean

rm -rf "$RPM_BUILD_ROOT"

%files

%defattr(644 root root 755)
%attr( - ,root,root)  /usr/local/bin
%attr( - ,root,root)  /usr/local/lib

%changelog
#* Sat Sep 30 Geoff Wong <>
#- revamped spec file





More information about the erlang-questions mailing list