1 Summary: OpenSource Erlang/OTP
2 Summary(pl): Erlang/OTP z otwartymi ¼ród³ami
8 Group: Development/Languages
9 %define _version %(echo %{version} | tr _ -)
10 Source0: http://www.erlang.org/download/%{name}_src_%{_version}.tar.gz
11 URL: http://www.erlang.org/
12 BuildRequires: XFree86-devel
13 BuildRequires: autoconf
15 BuildRequires: perl-base
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Erlang is a programming language designed at the Ericsson Computer
20 Science Laboratory. Open-source Erlang is being released to help
21 encourage the spread of Erlang outside Ericsson.
24 Erlang to jêzyk programowania opracowany w Ericsson Computer Science
25 Laboratory. Open-source Erlang zosta³ wydany, aby pomóc w
26 rozpowszechnianiu Erlanga poza Ericssonem.
29 %setup -q -n %{name}_src_%{_version}
47 ERL_TOP=`pwd`; export ERL_TOP
52 rm -rf $RPM_BUILD_ROOT
56 INSTALL_PREFIX=$RPM_BUILD_ROOT
58 rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/erts-*/*.html
60 sed -i -e"s#$RPM_BUILD_ROOT##" \
61 $RPM_BUILD_ROOT%{_libdir}/erlang/bin/{erl,start,start_erl}
63 for l in erl erlc ; do
64 ln -sf %{_libdir}/erlang/bin/$l $RPM_BUILD_ROOT%{_bindir}
66 ERTSDIR=`echo $RPM_BUILD_ROOT%{_libdir}/erlang/erts-* | sed -e"s#^$RPM_BUILD_ROOT##"`
67 for l in ear ecc elink escript ; do
68 ln -sf $ERTSDIR/bin/$l $RPM_BUILD_ROOT%{_bindir}
70 ln -sf $ERTSDIR/bin/epmd $RPM_BUILD_ROOT%{_libdir}/erlang/bin
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc AUTHORS EPLICENCE README erts/notes.html
78 %attr(755,root,root) %{_bindir}/*
79 %dir %{_libdir}/erlang
80 %attr(755,root,root) %{_libdir}/erlang/bin/epmd
81 %attr(755,root,root) %{_libdir}/erlang/bin/erl
82 %attr(755,root,root) %{_libdir}/erlang/bin/erlc
83 %attr(755,root,root) %{_libdir}/erlang/bin/run_erl
84 %attr(755,root,root) %{_libdir}/erlang/bin/start
85 %attr(755,root,root) %{_libdir}/erlang/bin/start_erl
86 %attr(755,root,root) %{_libdir}/erlang/bin/to_erl
87 %{_libdir}/erlang/bin/start*.*
88 %dir %{_libdir}/erlang/erts-*
89 %{_libdir}/erlang/erts-*/doc
90 %{_libdir}/erlang/erts-*/man
91 %{_libdir}/erlang/erts-*/src
92 %{_libdir}/erlang/erts-*/*.ear
93 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/beam*
94 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/child*
95 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/e*
96 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/heart*
97 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/inet_gethost
98 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/run_erl
99 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/start
100 %attr(755,root,root) %{_libdir}/erlang/erts-*/bin/to_erl
101 %{_libdir}/erlang/erts-*/bin/start*.*
102 %{_libdir}/erlang/lib
103 %dir %{_libdir}/erlang/misc
104 %attr(755,root,root) %{_libdir}/erlang/misc/*
105 %{_libdir}/erlang/releases
106 %{_libdir}/erlang/usr
107 %attr(755,root,root) %{_libdir}/erlang/Install