20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
21 ## SUCH DAMAGE. |
21 ## SUCH DAMAGE. |
22 ## |
22 ## |
23 |
23 |
24 # package version |
24 # package version |
25 %define V_opkg R15B03.1 |
25 %define V_opkg R16B01 |
26 %define V_real R15B03-1 |
26 %define V_real R16B01 |
27 %define V_subdir R15B03 |
27 %define V_subdir R16B01 |
28 |
28 |
29 # package information |
29 # package information |
30 Name: erlang |
30 Name: erlang |
31 Summary: Erlang Programming Language |
31 Summary: Erlang Programming Language |
32 URL: http://www.erlang.org/ |
32 URL: http://www.erlang.org/ |
43 Source0: http://www.erlang.org/download/otp_src_%{V_real}.tar.gz |
43 Source0: http://www.erlang.org/download/otp_src_%{V_real}.tar.gz |
44 Source1: http://www.erlang.org/download/otp_doc_man_%{V_real}.tar.gz |
44 Source1: http://www.erlang.org/download/otp_doc_man_%{V_real}.tar.gz |
45 Patch0: erlang.patch |
45 Patch0: erlang.patch |
46 |
46 |
47 # build information |
47 # build information |
48 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, m4 |
48 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, m4 |
49 PreReq: OpenPKG, openpkg >= 20100101 |
49 PreReq: OpenPKG, openpkg >= 20100101 |
50 BuildPreReq: openssl |
50 BuildPreReq: openssl |
51 PreReq: openssl |
51 PreReq: openssl |
52 |
52 |
53 %description |
53 %description |
64 } |
64 } |
65 |
65 |
66 %prep |
66 %prep |
67 %setup -q -n otp_src_%{V_subdir} |
67 %setup -q -n otp_src_%{V_subdir} |
68 %patch -p0 |
68 %patch -p0 |
|
69 %{l_shtool} subst \ |
|
70 -e 's;FLAGS="-Werror=return-type *;FLAGS=";g' \ |
|
71 erts/configure \ |
|
72 lib/erl_interface/configure \ |
|
73 lib/odbc/configure \ |
|
74 lib/megaco/configure \ |
|
75 lib/wx/configure |
69 |
76 |
70 %build |
77 %build |
71 CC="%{l_cc}" \ |
78 CC="%{l_cc}" \ |
72 CFLAGS="%{l_cflags -O}" \ |
79 CFLAGS="%{l_cflags -O}" \ |
73 CPPFLAGS="%{l_cppflags}" \ |
80 CPPFLAGS="-Ipcre %{l_cppflags}" \ |
74 LDFLAGS="%{l_ldflags}" \ |
81 LDFLAGS="%{l_ldflags}" \ |
75 JAVAC="false" \ |
82 JAVAC="false" \ |
76 ./configure \ |
83 ./configure \ |
77 --prefix=%{l_prefix} \ |
84 --prefix=%{l_prefix} \ |
78 --with-ssl=%{l_prefix} |
85 --with-ssl=%{l_prefix} \ |
79 %{l_make} %{l_mflags} |
86 --enable-shared-zlib |
|
87 %{l_make} %{l_mflags -O} |
80 |
88 |
81 %install |
89 %install |
82 %{l_make} %{l_mflags} install INSTALL_PREFIX=$RPM_BUILD_ROOT |
90 %{l_make} %{l_mflags} install INSTALL_PREFIX=$RPM_BUILD_ROOT |
83 ( cd $RPM_BUILD_ROOT%{l_prefix}/bin |
91 ( cd $RPM_BUILD_ROOT%{l_prefix}/bin |
84 for file in erl erlc epmd run_erl to_erl dialyzer escript typer; do |
92 for file in erl erlc epmd run_erl to_erl dialyzer escript typer; do |