[sisyphus] Новая версия Erlang
Alexey Borovskoy
=?iso-8859-1?q?alexey=5Fborovskoy_=CE=C1_mail=2Eru?=
Вт Май 10 19:29:03 MSD 2005
Доброй ночи.
Захотелось мне ejabberd на Master 2.4.
Пришлось обновить Erlang и заодно распилить его на несколько
пакетов. Потом не удержался и немного обработал напильником.
Обновленный спек прилагается.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: signature
Url : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20050511/d07dfe65/attachment-0003.bin>
----------- следующая часть -----------
%define ERVER R10B
%define ERSUBVER 4
Name: erlang
Version: %ERVER.%ERSUBVER
Release: alt0.M24.1
Summary: A programming language developed by Ericsson
License: EPL
Group: Development/Other
Packager: Plugnikov A. Mike <amike на altlinux.ru>
URL: http://www.erlang.org
Source0: otp_src_%ERVER-%ERSUBVER.tar.gz
Source1: otp_doc_man_%ERVER-%ERSUBVER.tar.gz
Source2: otp_doc_html_%ERVER-%ERSUBVER.tar.gz
Source3: %name.el
Source4: %name-site-start.el
Source5: README.erlang_mode
BuildPreReq: /proc
BuildPreReq: emacs-common
BuildPreReq: gcc-c++ gcc libssl-devel libncurses-devel openssl flex
BuildPreReq: tk-devel j2se1.4-sun-devel
%description
Erlang is a programming language developed at Ericsson Computer
Science Laboratory. Erlang provides many features which are more
commonly associated with an operating system: concurrent processes,
scheduling, memory management, distribution, networking, etc.
%package -n emacs-mode-erlang
Summary: Erlang mode for GNU Emacs
Group: Editors
Requires: emacs-base
%description -n emacs-mode-erlang
Erlang mode for GNU Emacs.
%package manual
Summary: Documentatinon for Erlang in HTML format
Group: Development/Other
Requires: %name = %version-%release
%description manual
Ducumentation for Erlang in HTML format.
%package manpages
Summary: Manual pages for Erlang
Group: Development/Other
Requires: %name = %version-%release
%description manpages
Manual pages for Erlang programming language.
%package visual
Summary: Standart visual applications for Erlang
Group: Development/Other
Requires: %name = %version-%release
Requires: tk
%description visual
Standard visual applications for Erlang programming language.
%prep
%setup -qn otp_src_%ERVER-%ERSUBVER
%build
./configure \
--prefix=%_prefix \
--libdir=%_libdir \
--mandir=%_mandir \
--enable-hipe \
--enable-threads \
--disable-erlang-mandir \
--with-ssl=%_includedir/openssl
%make_build
%install
%set_verify_elf_method textrel=relaxed
%add_findreq_skiplist %_libdir/%name/erts-*/bin/*
%make_install INSTALL_PREFIX=%buildroot install
%__mkdir_p %buildroot%_docdir/%name-%version/manual
%__mkdir_p %buildroot%_emacslispdir
%__mkdir_p %buildroot/%_sysconfdir/emacs/site-start.d
%__tar -xzf %SOURCE2 -C %buildroot%_docdir/%name-%version/manual
%__mv %buildroot%_docdir/%name-%version/manual/{COPYRIGHT,PR.template,README} \
%buildroot%_docdir/%name-%version
%__tar -xzf %SOURCE1 -C %buildroot
%__rm %buildroot%_mandir/{COPYRIGHT,PR.template,README}
pushd %buildroot%_man3dir
for i in lib.3* crypto.3* inet.3* ssl.3* queue.3* random.3* rpc.3* string.3* ; do
%__mv -f $i erl_$i
done
popd
pushd%buildroot%_man6dir
for i in crypto.6* ssl.6* snmp.6* ; do
%__mv -f $i erl_$i
done
popd
%__install -m644 %SOURCE3 %buildroot%_emacslispdir
%__install -m644 %SOURCE4 %buildroot/%_sysconfdir/emacs/site-start.d/erlang.el
%__install -m644 %SOURCE5 %buildroot%_docdir/%name-%version
pushd %buildroot%_emacslispdir
for i in *.el ; do
emacs -batch --eval "(progn
(setq load-path (append (list \".\") load-path))
(byte-compile-file \"$i\"))"
done
popd
%__cp EPLICENCE %buildroot%_docdir/%name-%version/LICENCE
%__cp AUTHORS %buildroot%_docdir/%name-%version/AUTHORS
%__rm %buildroot%_bindir/*
%__ln_s %_libdir/%name/bin/erl %buildroot%_bindir/erl
%__ln_s %_libdir/%name/bin/erlc %buildroot%_bindir/erlc
%__rm %buildroot%_libdir/%name/bin/epmd
%__rm %buildroot%_libdir/%name/bin/erlc
%__rm %buildroot%_libdir/%name/bin/erl
%__rm %buildroot%_libdir/%name/bin/run_erl
%__rm %buildroot%_libdir/%name/bin/start
%__rm %buildroot%_libdir/%name/bin/to_erl
%__ln_s %_libdir/%name/erts-*/bin/epmd %buildroot%_libdir/%name/bin/epmd
%__ln_s %_libdir/%name/erts-*/bin/erl %buildroot%_libdir/%name/bin/erl
%__ln_s %_libdir/%name/erts-*/bin/erlc %buildroot%_libdir/%name/bin/erlc
%__ln_s %_libdir/%name/erts-*/bin/run_erl %buildroot%_libdir/%name/bin/run_erl
%__ln_s %_libdir/%name/erts-*/bin/start %buildroot%_libdir/%name/bin/start
%__ln_s %_libdir/%name/erts-*/bin/to_erl %buildroot%_libdir/%name/bin/to_erl
%__rm %buildroot%_libdir/%name/Install
%__rm -r %buildroot%_libdir/%name/misc
%__rm %buildroot%_libdir/%name/usr/lib
%__rm %buildroot%_libdir/%name/erts-*/{doc,man}
%__subst 's|ROOTDIR=.*|ROOTDIR=%_libdir/%name|' %buildroot%_libdir/%name/erts-*/bin/erl
%__subst 's|ROOTDIR=.*|ROOTDIR=%_libdir/%name|' %buildroot%_libdir/%name/erts-*/bin/start
%files
%dir %_docdir/%name-%version
%_bindir/*
%_libdir/%name
%_docdir/%name-%version/*
%exclude %_libdir/%name/lib/appmon-*
%exclude %_libdir/%name/lib/debugger-*
%exclude %_libdir/%name/lib/et-*
%exclude %_libdir/%name/lib/gs-*
%exclude %_libdir/%name/lib/pman-*
%exclude %_libdir/%name/lib/toolbar-*
%exclude %_libdir/%name/lib/tv-*
%files visual
%_libdir/%name/lib/appmon-*
%_libdir/%name/lib/debugger-*
%_libdir/%name/lib/et-*
%_libdir/%name/lib/gs-*
%_libdir/%name/lib/pman-*
%_libdir/%name/lib/toolbar-*
%_libdir/%name/lib/tv-*
%files -n emacs-mode-erlang
%_emacslispdir/*
%_sysconfdir/emacs/site-start.d/*
%files manual
%_docdir/%name-%version/manual
%files manpages
%_man1dir/*
%_man3dir/*
%_man4dir/*
%_man6dir/*
%changelog
* Wed May 11 2005 Alexey Borovskoy <alb на altlinux.ru> R10B.4-alt0.M24.1
- New release (R10B-4)
- Split to subpackages:
+ manual
For manual in HTML
+ manpages
For manpages
+ visual
For visual apps that requires tk/tcl
+ emacs-mode-erlang
For Emacs mode
* Tue Nov 02 2004 Plugnikov A. Mike <amike на altlinux.ru> R10B.0-alt1
- New version (R10B)
- Merged upstream patches:
patch-lib_stdlib_src_dets__v9
erlang_ssl_broker
- Fix spec
* Sat May 15 2004 Ott Alex <ott на altlinux.ru> R9C.0-alt3
- Fix build process
* Sun Feb 22 2004 Ott Alex <ott на altlinux.ru> R9C.0-alt2
- Added some fixes from freebsd ports (thanks to Ermine!)
- Build without tcl/tk & java
* Wed Dec 10 2003 Ott Alex <ott на altlinux.ru> R9C.0-alt1
- Initial build for ALTLinux
Подробная информация о списке рассылки Sisyphus