- builds and seems to work
authorJacek Konieczny <jajcus@pld-linux.org>
Mon, 30 Aug 2004 22:00:58 +0000 (22:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    erlang.spec -> 1.4

erlang.spec

index ed521a2..af0ca77 100644 (file)
@@ -45,19 +45,63 @@ cd ../../erts/
 cd ..
 %configure
 ERL_TOP=`pwd`; export ERL_TOP
-%{__make}
+%{__make} \
+       TARGET="%{_build}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       TARGET="%{_build}" \
+       INSTALL_PREFIX=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/erts-*/*.html
+
+sed -i -e"s#$RPM_BUILD_ROOT##" \
+       $RPM_BUILD_ROOT%{_libdir}/erlang/bin/{erl,start,start_erl}
+
+for l in erl erlc ; do
+       ln -sf %{_libdir}/erlang/bin/$l $RPM_BUILD_ROOT%{_bindir}
+done
+ERTSDIR=`echo $RPM_BUILD_ROOT%{_libdir}/erlang/erts-* | sed -e"s#^$RPM_BUILD_ROOT##"`
+for l in ear ecc elink escript ; do
+       ln -sf $ERTSDIR/bin/$l $RPM_BUILD_ROOT%{_bindir}
+done
+ln -sf $ERTSDIR/bin/epmd $RPM_BUILD_ROOT%{_libdir}/erlang/bin
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+%doc AUTHORS EPLICENCE README erts/notes.html
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+%dir %{_libdir}/erlang
+%attr(755,root,root) %{_libdir}/erlang/bin/epmd
+%attr(755,root,root) %{_libdir}/erlang/bin/erl
+%attr(755,root,root) %{_libdir}/erlang/bin/erlc
+%attr(755,root,root) %{_libdir}/erlang/bin/run_erl
+%attr(755,root,root) %{_libdir}/erlang/bin/start
+%attr(755,root,root) %{_libdir}/erlang/bin/start_erl
+%attr(755,root,root) %{_libdir}/erlang/bin/to_erl
+%{_libdir}/erlang/bin/start*.*
+%dir %{_libdir}/erlang/erts-*
+%{_libdir}/erlang/erts-*/doc
+%{_libdir}/erlang/erts-*/man
+%{_libdir}/erlang/erts-*/src
+%{_libdir}/erlang/erts-*/*.ear
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/beam*
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/child*
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/e*
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/heart*
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/inet_gethost
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/run_erl
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/start
+%attr(755,root,root) %{_libdir}/erlang/erts-*/bin/to_erl
+%{_libdir}/erlang/erts-*/bin/start*.*
+%{_libdir}/erlang/lib
+%dir %{_libdir}/erlang/misc
+%attr(755,root,root) %{_libdir}/erlang/misc/*
+%{_libdir}/erlang/releases
+%{_libdir}/erlang/usr
+%attr(755,root,root) %{_libdir}/erlang/Install
This page took 0.236745 seconds and 4 git commands to generate.