- AMD64 fixes
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 1 Sep 2004 11:36:43 +0000 (11:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    erlang.spec -> 1.8

erlang.spec

index 6bc2e24..8628977 100644 (file)
@@ -2,7 +2,7 @@ Summary:        OpenSource Erlang/OTP
 Summary(pl):   Erlang/OTP z otwartymi ¼ród³ami
 Name:          erlang
 Version:       R9C_2
-Release:       0.1
+Release:       1
 Epoch:         1
 License:       distributable
 Group:         Development/Languages
@@ -11,9 +11,11 @@ Source0:     http://www.erlang.org/download/otp_src_%{_version}.tar.gz
 # Source0-md5: 3cdb1c58671995d6b334e0f8da414816
 Source1:       http://www.erlang.org/download/otp_man_R9C-0.tar.gz
 # Source1-md5: f94bbaba800cc73e67704b92df5aab60
+Patch0:                %{name}-fPIC.patch
 URL:           http://www.erlang.org/
 BuildRequires: XFree86-devel
 BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: flex
 BuildRequires: perl-base
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -31,8 +33,10 @@ rozpowszechnianiu Erlanga poza Ericssonem.
 %prep
 %setup -q -n otp_src_%{_version}
 %{__tar} xzf %{SOURCE1} man/ COPYRIGHT
+%patch0 -p1
 
 %build
+find . -name config.sub | xargs -n 1 cp -f /usr/share/automake/config.sub
 %{__autoconf}
 cd lib
 %{__autoconf}
@@ -50,13 +54,13 @@ cd ..
 %configure
 ERL_TOP=`pwd`; export ERL_TOP
 %{__make} \
-       TARGET="%{_build}"
+       TARGET="%(echo %{_build} | sed -e's/amd64/x86_64/')"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       TARGET="%{_build}" \
+       TARGET="%(echo %{_build} | sed -e's/amd64/x86_64/')" \
        INSTALL_PREFIX=$RPM_BUILD_ROOT
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/erts-*/*.html
This page took 0.039821 seconds and 4 git commands to generate.