Blame erlang.spec

Gérard Milmeister d0c493
%define ver R12B
Gérard Milmeister d0c493
%define rel 3
Gérard Milmeister d0c493
Gérard Milmeister 8d9a91
Name:           erlang
Gérard Milmeister d0c493
Version:        %{ver}
Tom Callaway b499d4
Release:        %{rel}.2%{?dist}
Gérard Milmeister 8d9a91
Summary:        General-purpose programming language and runtime environment
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Group:          Development/Languages
Tom Callaway b499d4
License:        ERPL
Gérard Milmeister 8d9a91
URL:            http://www.erlang.org
Gérard Milmeister d0c493
Source:         http://www.erlang.org/download/otp_src_%{ver}-%{rel}.tar.gz
Gérard Milmeister d0c493
Source1:	http://www.erlang.org/download/otp_doc_html_%{ver}-%{rel}.tar.gz
Gérard Milmeister d0c493
Source2:	http://www.erlang.org/download/otp_doc_man_%{ver}-%{rel}.tar.gz
Gérard Milmeister 402a17
Patch0:		otp-links.patch
Gérard Milmeister 8d9a91
Patch1:		otp-install.patch
Gérard Milmeister 9b92d7
Patch3:         otp-sslrpath.patch
Gérard Milmeister 8d9a91
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Gérard Milmeister e76567
Gérard Milmeister 9b92d7
BuildRequires:	ncurses-devel
Gérard Milmeister 9b92d7
BuildRequires:  openssl-devel
Gérard Milmeister 9b92d7
BuildRequires:  unixODBC-devel
Gérard Milmeister 9b92d7
BuildRequires:	tcl-devel
Gérard Milmeister 9b92d7
BuildRequires:	tk-devel
Gérard Milmeister 58d5f0
BuildRequires:  gd-devel
Thomas Fitzsimmons a60bf5
BuildRequires:	java-1.5.0-gcj-devel
Gérard Milmeister 9b92d7
BuildRequires:  flex
Gérard Milmeister 63aec6
BuildRequires:	m4
Gérard Milmeister e76567
Gérard Milmeister 4613f8
Requires:	tk
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%description 
Gérard Milmeister 8d9a91
Erlang is a general-purpose programming language and runtime
Gérard Milmeister 8d9a91
environment. Erlang has built-in support for concurrency, distribution
Gérard Milmeister 8d9a91
and fault tolerance. Erlang is used in several large telecommunication
Gérard Milmeister 8d9a91
systems from Ericsson.
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%package doc
Gérard Milmeister 8d9a91
Summary:	Erlang documentation
Gérard Milmeister 8d9a91
Group:		Development/Languages
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%description doc
Gérard Milmeister 8d9a91
Documentation for Erlang.
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%prep
Gérard Milmeister d0c493
%setup -q -n otp_src_%{ver}-%{rel}
Gérard Milmeister 402a17
%patch0 -p1 -b .links
Gérard Milmeister 402a17
%patch1 -p1 -b .install
Gérard Milmeister 402a17
%patch3 -p1 -b .sslrpath
Gérard Milmeister d0c493
Gérard Milmeister 724004
# enable dynamic linking for ssl
Gérard Milmeister 724004
sed -i 's|SSL_DYNAMIC_ONLY=no|SSL_DYNAMIC_ONLY=yes|' erts/configure
Gérard Milmeister e77dba
sed -i 's|^LD.*=.*|LD = gcc -shared|' lib/common_test/c_src/Makefile
Gérard Milmeister d0c493
# fix for newer glibc version
Gérard Milmeister d0c493
sed -i 's|__GLIBC_MINOR__ <= 7|__GLIBC_MINOR__ <= 8|' erts/emulator/hipe/hipe_x86_signal.c
Gérard Milmeister d0c493
# use gcc -shared instead of ld
Gérard Milmeister d0c493
sed -i 's|@RX_LD@|gcc -shared|' lib/common_test/c_src/Makefile.in
Gérard Milmeister d0c493
sed -i 's|@RX_LDFLAGS@||' lib/common_test/c_src/Makefile.in
Gérard Milmeister d0c493
Gérard Milmeister d0c493
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%build
Gérard Milmeister 58d5f0
CFLAGS="-fno-strict-aliasing" ./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir}
Gérard Milmeister 8d9a91
chmod -R u+w .
Gérard Milmeister 8d9a91
make
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%install
Gérard Milmeister 8d9a91
rm -rf $RPM_BUILD_ROOT
Gérard Milmeister 8d9a91
make INSTALL_PREFIX=$RPM_BUILD_ROOT install
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
# clean up
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -perm 0775 | xargs chmod 755
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -name Makefile | xargs chmod 644
Gérard Milmeister 328420
find $RPM_BUILD_ROOT%{_libdir}/erlang -name \*.o | xargs chmod 644
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -name \*.bat | xargs rm -f
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -name index.txt.old | xargs rm -f
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
# doc
Gérard Milmeister 8d9a91
mkdir -p erlang_doc
Gérard Milmeister 8d9a91
tar -C erlang_doc -zxf %{SOURCE1}
Gérard Milmeister 8d9a91
tar -C $RPM_BUILD_ROOT/%{_libdir}/erlang -zxf %{SOURCE2}
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
# make links to binaries
Gérard Milmeister 8d9a91
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
Gérard Milmeister 8d9a91
cd $RPM_BUILD_ROOT/%{_bindir}
Gérard Milmeister 8d9a91
for file in erl erlc 
Gérard Milmeister 8d9a91
do
Gérard Milmeister 8d9a91
  ln -sf ../%{_lib}/erlang/bin/$file .
Gérard Milmeister 8d9a91
done
Gérard Milmeister 8d9a91
Gérard Milmeister 88a85b
# remove buildroot from installed files
Gérard Milmeister 88a85b
cd $RPM_BUILD_ROOT/%{_libdir}/erlang
Gérard Milmeister 88a85b
sed -i "s|$RPM_BUILD_ROOT||" erts*/bin/{erl,start} releases/RELEASES bin/{erl,start}
Gérard Milmeister 88a85b
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%clean
Gérard Milmeister 8d9a91
rm -rf $RPM_BUILD_ROOT
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%files 
Gérard Milmeister 8d9a91
%defattr(-,root,root)
Gérard Milmeister 8d9a91
%doc AUTHORS EPLICENCE README
Gérard Milmeister 8d9a91
%{_bindir}/*
Gérard Milmeister 8d9a91
%{_libdir}/erlang
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%files doc
Gérard Milmeister 8d9a91
%defattr(-,root,root)
Gérard Milmeister 8d9a91
%doc erlang_doc/*
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%post
Gérard Milmeister 9b92d7
%{_libdir}/erlang/Install -minimal %{_libdir}/erlang >/dev/null 2>/dev/null
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%changelog
Tom Callaway b499d4
* Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> - R12B-3.2
Tom Callaway b499d4
- fix license tag
Tom Callaway b499d4
Gérard Milmeister d0c493
* Sun Jul  6 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-3.1
Gérard Milmeister d0c493
- new release R12B-3
Gérard Milmeister d0c493
Gérard Milmeister e77dba
* Thu Mar 27 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-1.1
Gérard Milmeister e77dba
- new release R12B-1
Gérard Milmeister e77dba
Gérard Milmeister 58d5f0
* Sat Feb 23 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-0.3
Gérard Milmeister 58d5f0
- disable strict aliasing optimization
Gérard Milmeister 58d5f0
Jesse Keating 6708aa
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - R12B-0.2
Jesse Keating 6708aa
- Autorebuild for GCC 4.3
Jesse Keating 6708aa
Gérard Milmeister cdc6d1
* Sat Dec  8 2007 Gerard Milmeister <gemi@bluewin.ch> - R12B-0.1
Gérard Milmeister cdc6d1
- new release R12B-0
Gérard Milmeister cdc6d1
Jesse Keating 0a92f9
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - R11B-6
Jesse Keating 0a92f9
 - Rebuild for deps
Jesse Keating 0a92f9
Gérard Milmeister 328420
* Sun Aug 19 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.3
Gérard Milmeister 328420
- fix some permissions
Gérard Milmeister 328420
Gérard Milmeister 724004
* Sat Aug 18 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.2
Gérard Milmeister 724004
- enable dynamic linking for ssl
Gérard Milmeister 724004
Gérard Milmeister 37d540
* Sat Aug 18 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.1
Gérard Milmeister 37d540
- new release R11B-5
Gérard Milmeister 37d540
Thomas Fitzsimmons a60bf5
* Sat Mar 24 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - R11B-2.4
Thomas Fitzsimmons a60bf5
- Require java-1.5.0-gcj-devel for build.
Thomas Fitzsimmons a60bf5
Gérard Milmeister 88a85b
* Sun Dec 31 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.3
Gérard Milmeister 88a85b
- remove buildroot from installed files
Gérard Milmeister 88a85b
Gérard Milmeister 717787
* Sat Dec 30 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.2
Gérard Milmeister 717787
- added patch for compiling with glibc 2.5
Gérard Milmeister 717787
Gérard Milmeister 380e40
* Sat Dec 30 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.1
Gérard Milmeister 380e40
- new version R11B-2
Gérard Milmeister 380e40
Gérard Milmeister d64f98
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.3
Gérard Milmeister d64f98
- Rebuild for FE6
Gérard Milmeister d64f98
Gérard Milmeister 63aec6
* Wed Jul  5 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.2
Gérard Milmeister 63aec6
- add BR m4
Gérard Milmeister 63aec6
Gérard Milmeister 402a17
* Thu May 18 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.1
Gérard Milmeister 402a17
- new version R11B-0
Gérard Milmeister 402a17
Gérard Milmeister 928fb3
* Wed May  3 2006 Gerard Milmeister <gemi@bluewin.ch> - R10B-10.3
Gérard Milmeister 928fb3
- added patch for run_erl by Knut-Håvard Aksnes
Gérard Milmeister 928fb3
Gérard Milmeister b7307b
* Mon Mar 13 2006 Gerard Milmeister <gemi@bluewin.ch> - R10B-10.1
Gérard Milmeister b7307b
- new version R10B-10
Gérard Milmeister b7307b
Gérard Milmeister 9b92d7
* Thu Dec 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-9.1
Gérard Milmeister 9b92d7
- New Version R10B-9
Gérard Milmeister 9b92d7
Gérard Milmeister da518f
* Sat Oct 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-8.2
Gérard Milmeister da518f
- updated rpath patch
Gérard Milmeister da518f
Gérard Milmeister e76567
* Sat Oct 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-8.1
Gérard Milmeister e76567
- New Version R10B-8
Gérard Milmeister e76567
Gérard Milmeister 4613f8
* Sat Oct  1 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.4
Gérard Milmeister 4613f8
- Added tk-devel and tcl-devel to buildreq
Gérard Milmeister 4613f8
- Added tk to req
Gérard Milmeister 4613f8
Gérard Milmeister 4613f8
* Tue Sep  6 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.3
Gérard Milmeister 8d9a91
- Remove perl BuildRequires
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Tue Aug 30 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.2
Gérard Milmeister 8d9a91
- change /usr/lib to %%{_libdir}
Gérard Milmeister 8d9a91
- redirect output in %%post to /dev/null
Gérard Milmeister 8d9a91
- add unixODBC-devel to BuildRequires
Gérard Milmeister 8d9a91
- split doc off to erlang-doc package
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Sat Jun 25 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.1
Gérard Milmeister 8d9a91
- New Version R10B-6
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Sun Feb 13 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-3.1
Gérard Milmeister 8d9a91
- New Version R10B-3
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Mon Dec 27 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:R10B-2-0.fdr.1
Gérard Milmeister 8d9a91
- New Version R10B-2
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Wed Oct  6 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:R10B-0.fdr.1
Gérard Milmeister 8d9a91
- New Version R10B
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Thu Oct 16 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:R9B-1.fdr.1
Gérard Milmeister 8d9a91
- First Fedora release