Репозитории ALT
Последнее обновление в Сб, 06 июня 2020, 00:50:49 +0000 | Пакетов: 12913
en ru
Исходные пакеты в ветвях
свернуть окно
  • 1:20.1.3-alt3.N.M80C.1
  • 1:19.0.7-alt0.M80P.1
  • 1:20.1.3-alt3.M80P.1
  • 1:20.1.3-alt0.M70C.2
  • 1:20.1.3-alt0.M70C.1
  • R15B.2-alt3.0.M70T.1
  • R15B.2-alt3.0.M70T.1
  • R14B.3-alt1.M60P.1
  • R14B.3-alt1.M60P.1
  • R14B.4-alt3.M60T.1
  • R12B.5-alt11.1
Группа :: Разработка/Erlang
Исходный пакет: erlang
Необработанный spec-файл

%def_without icc
%def_with otp_debug
%def_with otp_native
%def_enable threads
%def_enable smp
%def_disable halfword
%def_enable kernel_poll
%def_enable hipe
%def_enable megaco_flex_scanner_lineno
%def_with ssl
%def_with ssl_zlib
%def_with java
%def_disable gcj
%def_enable sctp
%def_disable tsp
%def_disable elib_malloc
%def_enable fixalloc
%def_enable clock_gettime
%def_disable lock_checking
%def_disable lock_counting
%def_with termcap
%def_with gmp
%def_enable docs
%def_enable asm_optimize

%def_enable strip_beam
%def_enable pdf_opt

%ifarch amd64
%define x86_64 amd64
%else
%define x86_64 x86_64
%endif


%define subst_enable_to() %{expand:%%{?_enable_%1:--enable-%2}} %{expand:%%{?_disable_%1:--disable-%2}}
%define subst_with_to() %{expand:%%{?_with_%1:--with-%2}} %{expand:%%{?_without_%1:--without-%2}}

%define java_options -Xmx512m
%define fop_options -Xmx512m

%def_disable gnu_ld
#----------------------------------------------------------------------

%{?_enable_smp_io_thread:%set_disable port_tasks}

%ifnarch %ix86 %x86_64 arm sparc ppc ppc64
%set_without native
%endif

%{?_disable_hipe:%set_without otp_native}

%ifnarch %ix86 %x86_64
%set_without icc
%endif

%define Name Erlang
%define ver R14B
Name: erlang
%define subver 4
Version: %ver.%subver
%define plevel a
Release: alt3.M60T.1
Summary: A programming language developed by Ericsson
License: %epl
Group: Development/Erlang
Url: http://www.%name.org

Source: otp_src_%ver.%subver.tar

Patch0: otp-%ver-%subver%plevel-%release.patch
Patch1: otp-%ver-%subver%plevel-beam_lib.patch
Patch2: otp-%ver-%subver%plevel-rpath.patch
Patch3: otp-%ver-%subver%plevel-hipe_crash_with_on_load.patch
Patch4: otp-%ver-%subver%plevel-ssl_crash_on_no_certificate.patch

Conflicts: speech-dispatcher

Requires: %name-otp-modules = %version-%release
Provides: erlang_mod(hipe_bifs) = %version
Provides: erlang_mod(demo) = %version

Packager: Sergey Shilov <hsv at altlinux.org>

BuildRequires(pre):
rpm-build-licenses
BuildRequires(pre):
rpm-macros-%name
BuildRequires: rpm-build-%name
BuildRequires: gcc-c++ flex libunixODBC-devel zlib-devel /proc symlinks
BuildRequires: wxGTK-contrib-stc-devel >= 2.8.4, wxGTK-devel >= 2.8.4
BuildRequires: wxGTK-contrib-stc >= 2.8.4, wxGTK >= 2.8.4
BuildRequires: libGLU-devel
%{?_enable_sctp:BuildRequires: liblksctp-devel}
%{?_enable_docs:BuildRequires: xsltproc %_bindir/fop %{?_enable_pdf_opt:%_bindir/pdfopt}}
%{?_with_icc:BuildRequires: icc libicc-devel}
%if_with java
%if_enabled gcj
BuildRequires: jdkgcj
%else
BuildRequires: java-openjdk
BuildRequires: java-devel-default
%endif
%endif
%{?_with_ssl:BuildRequires: libssl-devel openssl libkrb5-devel}
%{?_with_gmp:BuildRequires: libgmp-devel}
%{?_with_termcap:BuildRequires: libncurses-devel}


%description
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.

%package devel
Summary: Libs and headers for devel for %Name
Group: Development/C
Requires: %name = %version-%release

%description devel
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This package contains Libs and headers for devel for %Name.


%package megaco-drivers
Summary: H.248 support for %Name - drivers
Group: Development/Erlang
Requires: %name-megaco = %version-%release

%description megaco-drivers
Megaco (aka H.248) is a signalling protocol used in VoIP networks.
This package contains drivers for %Name/OTP Megaco files.


%package megaco-devel
Summary: Headers for %Name megaco modules
Group: Development/Erlang
BuildArch: noarch
Requires: %name = %version-%release
Requires: %name-megaco = %version-%release

%description megaco-devel
Headers for %Name megaco modules.


%package megaco
Summary: H.248 support for %Name
Group: Development/Erlang
BuildArch: noarch
Provides: %name-megaco-modules = %version-%release
Requires: %name-megaco-drivers = %version-%release
Requires: %name-visual = %version-%release

%description megaco
Megaco (aka H.248) is a signalling protocol used in VoIP networks.
This package contains modules for %Name Megaco.


%package visual-common
Summary: Standart visual applications for %Name - common files
Group: Development/Erlang
Requires: %name-otp = %version-%release
Requires: tk

%description visual-common
Standard visual applications for %Name programming language.
This package contains common files for %Name visual applications.


%package visual-devel
Summary: Headers for standart visual %Name modules
Group: Development/Erlang
BuildArch: noarch
Requires: %name-visual = %version-%release

%description visual-devel
Headers for standart visual %Name modules.


%package visual
Summary: Standart visual applications for %Name
Group: Development/Erlang
BuildArch: noarch
Provides: %name-visual-modules = %version-%release
Requires: %name-visual-common = %version-%release

%description visual
Standard visual applications and modules for %Name programming
language.


%package odbc-server
Summary: Server for %Name/OTP ODBC driver
Group: Development/Erlang
Requires: %name-odbc = %version-%release

%description odbc-server
ODBC support for %Name programming language.
This package contains Server for %Name/OTP ODBC driver.


%package odbc-devel
Summary: Headers for %Name ODBC modules
Group: Development/Erlang
BuildArch: noarch
Requires: %name = %version-%release
Requires: %name-odbc-modules = %version-%release

%description odbc-devel
Headers for %Name ODBC modules.


%package odbc
Summary: ODBC support for %Name
Group: Development/Erlang
BuildArch: noarch
Provides: %name-odbc-modules = %version-%release
Requires: %name-odbc-server = %version-%release

%description odbc
ODBC support for %Name programming language.


%package common_test-common
Summary: A portable framework for automatic testing %Name applications - common files
Group: Development/Erlang
BuildArch: noarch
Requires: %name = %version-%release

%description common_test-common
A portable framework for automatic testing %Name applications.
This package contains common %Name common_test files.


%package common_test-devel
Summary: Headers for %Name common_test modules
Group: Development/Erlang
BuildArch: noarch
Requires: %name = %version-%release
Requires: %name-common_test-modules = %version-%release

%description common_test-devel
Headers for %Name common_test modules.


%package common_test
Summary: A portable framework for automatic testing %Name applications
Group: Development/Erlang
BuildArch: noarch
Provides: %name-common_test-modules = %version-%release
Requires: %name-common_test-common = %version-%release

%description common_test
A portable framework for automatic testing %Name applications.


%package docbuilder-common
Summary: Tool for generating HTML documentation for %Name applications - common files
Group: Development/Erlang
BuildArch: noarch
Requires: %name-otp = %version-%release

%description docbuilder-common
Tool for generating HTML documentation for %Name applications.
This package contains common %Name docbuilder files.


%package docbuilder-devel
Summary: Headers for %Name docbuilder modules
Group: Development/Erlang
BuildArch: noarch
Requires: %name-docbuilder = %version-%release
Requires: %name-docbuilder-modules = %version-%release

%description docbuilder-devel
Headers for %Name docbuilder modules.


%package docbuilder
Summary: Tool for generating HTML documentation for %Name applications
Group: Development/Erlang
BuildArch: noarch
Provides: %name-docbuilder-modules = %version-%release
Requires: %name-docbuilder-common = %version-%release

%description docbuilder
Tool for generating HTML documentation for %Name applications.


%package examples
Summary: OTP examples
Group: Development/Erlang
BuildArch: noarch
Requires: %name-megaco = %version-%release
Requires: %name-visual = %version-%release
AutoProv: no
AutoReq: no

%description examples
OTP examples.

%package emacs
Summary: Compiled elisp files for erlang-mode under GNU Emacs.
Group: Development/Erlang
BuildArch: noarch
Requires: %name-otp = %version-%release
Provides: %name-emacs = %version-%release

%description emacs
Compiled elisp files for erlang-mode under GNU Emacs.


%package otp-common
Summary: Standard %Name OTP - common files
Group: Development/Erlang
BuildArch: noarch
Requires: %name = %version-%release
Provides: otp-common = %version-%release

%description otp-common
Standard %Name OTP.
This package contains common %Name OTP files.


%package otp-bin
Summary: Standard %Name OTP - arch-depend binaries
Group: Development/Erlang
Provides: otp-bin = %version-%release
Requires: %name-otp-common = %version-%release

%description otp-bin
Standard %Name OTP.
This package contains arch-depend binaries %Name OTP files.


%package otp-devel
Summary: Headers for standard %Name OTP
Group: Development/Erlang
BuildArch: noarch
Provides: otp-devel = %version-%release
Requires: %name-otp-common = %version-%release
Requires: %name-otp-modules = %version-%release

%description otp-devel
Headers for standard %Name OTP.


%package otp
Summary: Standard %Name OTP
Group: Development/Erlang
BuildArch: noarch
Provides: %name-otp-modules = %version-%release
Provides: otp = %version-%release
Requires: %name-otp-common = %version-%release
Requires: %name-otp-bin = %version-%release

%description otp
Standard %Name OTP.


%if_with java
%package jinterface
Summary: %Name's level interface to Java
Group: Development/Erlang
BuildArch: noarch
Requires: %name-otp = %version-%release

%description jinterface
%Name's level interface to Java.
%endif


%package otp-full
Summary: Full %Name OTP package
Group: Development/Erlang
BuildArch: noarch
Requires: %name-otp = %version-%release
Requires: %name-megaco = %version-%release
Requires: %name-odbc = %version-%release
Requires: %name-visual = %version-%release
Requires: %name-docbuilder = %version-%release
Requires: %name-common_test = %version-%release

%description otp-full
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This package requires all standard %Name OTP subpackages.


%package full
Summary: Full %Name/OTP package
Group: Development/Erlang
BuildArch: noarch
Requires: %name-otp-full = %version-%release
Requires: %name-examples = %version-%release
%{?_with_java:Requires: %name-jinterface = %version-%release}

%description full
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This package requires all standard %Name/OTP subpackages.


%if_with otp_debug
%package otp-debug
Summary: Standard %Name OTP modules with debug information
Group: Development/Erlang
BuildArch: noarch
Provides: %name-otp-modules-debug = %version-%release
Provides: otp-debug = %version-%release
Requires: %name-otp-common = %version-%release
Requires: %name-otp-bin = %version-%release
Conflicts: erlang-eunit-debug = 2.0

%description otp-debug
Standard %Name OTP modules with debug information.


%package megaco-debug
Summary: H.248 support for %Name - modules with debug information
Group: Development/Erlang
BuildArch: noarch
Provides: %name-megaco-modules-debug = %version-%release
Requires: %name-megaco-drivers = %version-%release

%description megaco-debug
Megaco (aka H.248) is a signalling protocol used in VoIP networks.
This package contains modules for %Name Megaco with debug information.


%package visual-debug
Summary: Standart visual applications for %Name - modules with debug information
Group: Development/Erlang
BuildArch: noarch
Provides: %name-visual-modules-debug = %version-%release
Requires: %name-otp-debug = %version-%release
Requires: %name-visual-common = %version-%release

%description visual-debug
Standard visual applications for %Name programming language.
This package contains modules for visual applications with debug
information.


%package odbc-debug
Summary: ODBC support for %Name - modules with debug information
Group: Development/Erlang
BuildArch: noarch
Provides: %name-odbc-modules-debug = %version-%release
Requires: %name-odbc-server = %version-%release

%description odbc-debug
ODBC support for %Name programming language.
This package contains modules for odbc with debug information.


%package common_test-debug
Summary: A portable framework for automatic testing %Name applications - modules with debug information
Group: Development/Erlang
BuildArch: noarch
Provides: %name-common_test-modules-debug = %version-%release
Requires: %name-common_test-common = %version-%release

%description common_test-debug
A portable framework for automatic testing %Name applications.
This package contains modules for common_test with debug information.


%package docbuilder-debug
Summary: Tool for generating HTML documentation for %Name applications - modules with debug information
Group: Development/Erlang
BuildArch: noarch
Provides: %name-docbuilder-modules-debug = %version-%release
Requires: %name-docbuilder-common = %version-%release

%description docbuilder-debug
Tool for generating HTML documentation for %Name applications.
This package contains modules for docbuilder with debug information.
%endif


%if_with otp_native
%package otp-native
Summary: Standard %Name OTP modules with native CPU code
Group: Development/Erlang
Provides: %name-otp-modules-native = %version-%release
Provides: otp-native = %version-%release
Requires: %name-otp-common = %version-%release
Requires: %name-otp-bin = %version-%release

%description otp-native
Standard %Name OTP modules with native CPU code.


%package megaco-native
Summary: H.248 support for %Name - modules with native CPU code
Group: Development/Erlang
BuildArch: noarch
Provides: %name-megaco-modules-native = %version-%release
Requires: %name-megaco-drivers = %version-%release

%description megaco-native
Megaco (aka H.248) is a signalling protocol used in VoIP networks.
This package contains modules for %Name Megaco with native CPU code.


%package visual-native
Summary: Standart visual applications for %Name - modules with native CPU code
Group: Development/Erlang
BuildArch: noarch
Provides: %name-visual-modules-native = %version-%release
Requires: %name-otp-native = %version-%release
Requires: %name-visual-common = %version-%release

%description visual-native
Standard visual applications for %Name programming language.
This package contains modules for visual applications with native
CPU code.


%package odbc-native
Summary: ODBC support for %Name - modules with native CPU code
Group: Development/Erlang
BuildArch: noarch
Provides: %name-odbc-modules-native = %version-%release
Requires: %name-odbc-server = %version-%release

%description odbc-native
ODBC support for %Name programming language.
This package contains modules for odbc with native CPU code.


%package common_test-native
Summary: A portable framework for automatic testing %Name applications - modules with native CPU code
Group: Development/Erlang
BuildArch: noarch
Provides: %name-common_test-modules-native = %version-%release
Requires: %name-common_test-common = %version-%release

%description common_test-native
A portable framework for automatic testing %Name applications.
This package contains modules for common_test with native CPU code.


%package docbuilder-native
Summary: Tool for generating HTML documentation for %Name applications - modules with native CPU code
Group: Development/Erlang
BuildArch: noarch
Provides: %name-docbuilder-modules-native = %version-%release
Requires: %name-docbuilder-common = %version-%release

%description docbuilder-native
Tool for generating HTML documentation for %Name applications.
This package contains modules for docbuilder with native CPU code.
%endif


%if_enabled docs

%package man
Summary: Man pages for %Name/OTP
Group: Development/Documentation
BuildArch: noarch
AutoReq: no
AutoProv: no

%description man
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This package contains man pages for %Name.


%package doc
Summary: Documentation for %Name/OTP.
License: EPL
Group: Development/Documentation
BuildArch: noarch
Requires: %name-doc-html = %version-%release
Requires: %name-doc-pdf = %version-%release
Obsoletes: %name-doc < R14B.3
AutoReq: no

%description doc
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This is %Name/OTP documentation virtual package.


%package doc-html
Summary: Documentation for %Name/OTP in HTML format
Group: Development/Documentation
BuildArch: noarch
Conflicts: %name-manual < R11B.4-alt0.1
Requires: %name-visual-common = %version-%release
Provides: %name-manual = %version-%release
Obsoletes: %name-doc-common < R14B.3
Obsoletes: %name-doc-html < R14B.3
AutoReq: no
AutoProv: no

%description doc-html
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This package contains documentation for %Name/OTP in HTML format.


%package doc-pdf
Summary: Documentation for %Name/OTP in PDF format
Group: Development/Documentation
BuildArch: noarch
Obsoletes: %name-doc-common < R14B.3
Obsoletes: %name-doc-html < R14B.3
AutoReq: no
AutoProv: no

%description doc-pdf
%Name is a programming language developed at Ericsson Computer Science
Laboratory. %Name provides many features which are more commonly
associated with an operating system: concurrent processes, scheduling,
memory management, distribution, networking, etc.
This package contains documentation for %Name/OTP in PDF format.

%endif


%prep
%setup -n otp_src_%ver.%subver
chmod -R u+w ./
%patch0 -p1
%patch1 -p1 -b .beam_lib
%patch2 -p1 -b .rpath
%patch3 -p1 -b .hipe_with_on_load
%patch4 -p1 -b .ssl_crash_on_no_certificate

%if_with ssl
# Fix kerberos5 include path

subst "s/\/usr\/local\/kerberos\/include/\/usr\/include\/krb5/g" erts/configure.in
%endif
# Fix missig dir

%__mkdir_p lib/hipe/ebin
# Fix install dir

subst "s/\@libdir\@/\@libexecdir\@/g" Makefile.in

# Remove RPATH for crypto and ssl

sed -i 's/ -Wl,-R\$(.*) / /' lib/crypto/priv/Makefile
sed -i 's/@SSL_DED_LD_RUNTIME_LIBRARY_PATH@/ /' lib/crypto/c_src/Makefile.in


# Can't parallel build these dirs yet :(

sed -i '/^include .*\/make\/otp_subdir.mk/iMAKEFLAGS += -j1' \
system/doc/Makefile
sed -i '/^include .*\/make\/run_make.mk/iMAKEFLAGS += -j1' \
lib/{tools,asn1}/c_src/Makefile
sed -i '/^include .*\/make\/otp_release_targets.mk/iMAKEFLAGS += -j1' \
lib/{ssh,common_test,gs,eunit,odbc,cos*}/src/Makefile \
lib/{{os_mon,snmp}/mibs,public_key/asn1,ic/examples/pre_post_condition,orber/examples/Stack,orber/COSS/CosNaming,megaco/src/binary}/Makefile*

sed -i -e '/ os_mon /s/parsetools //' \
-e '/unix and win32/,/ERTS_SUB_DIRECTORIES/s/^[[:blank:]]*ERTS_SUB_DIRECTORIES = /&parsetools /' \
lib/Makefile
sed -i '/^bootstrap_setup_target:/s|:| $(BOOTSTRAP_ROOT)/bootstrap/target:|' Makefile.in
sed -i -r '/ wx /s/^( *)(.* )wx /\1wx \2/' lib/Makefile
sed -i -e '/ asn1 /s/ asn1 / /' \
-e '/ crypto /s/ crypto / /' \
-e '/ erl_interface /s/ erl_interface / /' \
-e '/ERTS_SUB_DIRECTORIES = parsetools /s/= parsetools/= parsetools erl_interface asn1 crypto /' \
lib/Makefile
# Disable auomatic include debug_info

subst "s/^.*ERL_COMPILE_FLAGS.*\+debug_info/#\0/g" make/otp.mk.in

%build
%define _optlevel 2
%{?_enable_asm_optimize:%add_optflags -DASM_OPTIMIZE}
%{?_with_icc:%add_optflags -gcc -vec-guard-write -opt-multi-version-aggressive %{?_disable_gnu_ld:-ip}}
%{?_with_java:%{?java_options:export _JAVA_OPTIONS="%java_options"}}
%undefine __libtoolize
%define _configure_script ./otp_build configure


./otp_build autoconf
export CFLAGS="%optflags -fno-strict-aliasing"
export CXXFLAGS=$CFLAGS

%configure \
--libdir=%_libexecdir \
%{subst_enable threads} \
%ifarch %ix86
%if_enabled threads
--enable-ethread-pre-pentium4-compatibility \
%endif
%endif
%{subst_enable_to smp smp-support} \
%{subst_enable_to halfword halfword-emulator} \
%{subst_enable kernel_poll kernel-poll} \
%{subst_enable hipe} \
%{subst_enable_to megaco_flex_scanner_lineno megaco-flex-scanner-lineno} \
%{subst_with ssl} \
%{subst_with_to ssl_zlib ssl-zlib} \
%{subst_with termcap} \
%{subst_with gmp} \
%{subst_enable sctp} \
%{subst_enable tsp} \
%{subst_enable fixalloc} \
%{subst_enable_to elib_malloc elib-malloc} \
%{subst_enable_to lock_checking lock-checking} \
%{subst_enable_to lock_counting lock-counting} \
%{subst_enable_to clock_gettime clock-gettime} \
--enable-dynamic-ssl-lib \
--enable-shared-zlib \
%{?_with_icc:CC=icc %{?_enable_gnu_ld:LD=gcc LIBADD="-lirc"}}}

%make depend
%make_build OPT_LEVEL="-O%_optlevel" emulator
%make_build bootstrap_setup
#

# export ERL_COMPILE_FLAGS="%{?_with_otp_debug:+debug_info}%{?_with_otp_native: +native +'{hipe,[o%_optlevel]}'}"

export ERL_COMPILE_FLAGS="%{?_with_otp_debug:+debug_info}"
export ERL_LIBS=$PWD/lib
%__make OPT_LEVEL="-O%_optlevel" BUILD_LIB_PARALLEL=1 ERL_LIBS=$ERL_LIBS

%if_enabled docs
%{?fop_options:export FOP_OPTS="%fop_options"}
export PATH=$PWD/bin:$PATH
%make_build BUILD_DOC_PARALLEL=1 docs
%make_build BUILD_DOC_PARALLEL=1 release_docs
%endif
%if_enabled pdf_opt
for f in {system,erts,{release,lib}/*}/doc/pdf/*.pdf; do
pdfopt "$f" tmp-pdfopt.pdf && mv -f tmp-pdfopt.pdf "$f"
done
%endif


%install
%{?_with_java:%{?java_options:export _JAVA_OPTIONS="%java_options"}}

sed -i -e '/Generated\ mod/d ' -e '/Handcrafted mod/d ' lib/wx/src/wx.app.src

%make_install -j1 ERLANG_LIBDIR=%buildroot%_otpdir ERLANG_ILIBDIR=%_otpdir INSTALL_PREFIX=%buildroot install
install -d -m 0755 %buildroot%_docdir/%name-%version

%if_enabled docs
export ERL_LIBS=%buildroot%_otpdir/lib
%make_install PATH=$PWD/bin:$PATH ERLANG_LIBDIR=%buildroot%_otpdir ERLANG_ILIBDIR=%_otpdir INSTALL_PREFIX=%buildroot install-docs
mv %buildroot%_otpdir/{COPYRIGHT,PR.template,README} %buildroot%_docdir/%name-%version/
gzip -9nf %buildroot%_erlmandir/man?/*
install -d -m 0755 %buildroot{%_man1dir,%_man3dir,%_man4dir,%_man6dir,%_man7dir,%_docdir/%name-%version/{pdf,html/lib}}
mv %buildroot{%_otpdir/{doc,erts-*/doc,lib/*/doc}/pdf/*.pdf,%_docdir/%name-%version/pdf/}
rmdir %buildroot{%_erldocdir,%_otpdir/erts-*/doc,%_otplibdir/*/doc}/pdf
ln -sf %buildroot%_erldocdir/* %buildroot%_docdir/%name-%version/html/
ln -sf %buildroot%_otpdir/erts-*/doc/html %buildroot%_docdir/%name-%version/html/erts
for d in %buildroot%_otplibdir/*; do
ln -sf $d/doc/html %buildroot%_docdir/%name-%version/html/lib/$(basename $d)
done
for m in %buildroot%_erlmandir/man3/*; do
ln -sf $m %buildroot%_man3dir/$(basename $m .gz)erl.gz
done
for n in 1 4 6 7; do
ln -sf %buildroot{%_erlmandir/man$n/*,%_mandir/man$n/}
done
%define _compress_method gz
%endif

install -d -m 0755 %buildroot{%_otpdir/usr/include,%_includedir}
ln -sf %buildroot%_otpdir/{erts-*/include/*.h,usr/include/}
ln -sf %buildroot{%_otpdir/usr/include,%_includedir/%name}

for l in $(ls -d %buildroot%_otplibdir/* | grep -v '^%buildroot%_otplibdir/erl_interface-.*'); do
if [ -d $l/src ]; then
H=$(find $l/src -type f -name '*.hrl' | grep -v '.*_internal\.hrl$') ||:
if [ -n "$H" ]; then
[ -d $l/include ] || install -d -m 0755 $l/include
for f in $H; do
I=$(echo $l/include/$(basename $f))
if [ ! -f "$I" ]; then
mv $f $l/include/
ln -sf $I $f
fi
done
find $l/src/* -not -type l -not -type d -delete
else
rm -rf $l/src
fi
fi
done
rm -f %buildroot%_otplibdir/erl_interface-*/src/{INSTALL,Makefile*,*.mk,*/*.c}
rm -rf %buildroot%_otpdir/{lib/*/{{c,java}_src,*.mk,priv/obj},erts-*/src}
rm -f %buildroot%_otplibdir/*/*/*.{asn1,erl}
rm -f %buildroot%_otplibdir/orber-*/COSS/CosNaming/*.{erl,idl}
rm -rf %buildroot%_otplibdir/orber-*/priv/{src,include}
rm -f %buildroot%_otplibdir/*/priv/bin/*.bat
rm -f %buildroot%_otplibdir/*/priv/*.in
rm -f %buildroot%_otplibdir/*/info
find %buildroot -type f -name '*.src' -delete
find %buildroot -empty -delete

install -m 0644 AUTHORS EPLICENCE %buildroot%_docdir/%name-%version/

install -d -m 0755 %buildroot%_otpdir/usr/make
install -m 0644 make/*.mk %buildroot%_otpdir/usr/make/
install -m 0755 make/{make_emakefile,save_args} %buildroot%_otpdir/usr/make/
for f in make/*/*.mk; do
install -D -m 0644 $f %buildroot%_otpdir/usr/$f
ln -s ${f#make/} %buildroot%_otpdir/usr/make/$(basename $f)
done

rm -rf %buildroot%_otpdir/{Install,misc,usr/lib}

subst 's|%buildroot||' %buildroot%_otpdir/{{,erts-*/}bin/{erl,start},releases/RELEASES}

sed 's|^ROOTDIR=|&%buildroot|' %buildroot%_otpdir/bin/erl > erl.buildroot
chmod 755 erl.buildroot

%define __erlang %_builddir/%buildsubdir/erl.buildroot
%define __erlc env ERLC_EMULATOR=%__erlang %buildroot%_otpdir/bin/erlc

install -d -m 0755 %buildroot%_bindir

install_ebin()
{
local d f
f=$1
shift
for d in %buildroot%_otplibdir/*/ebin; do
install -d -m 0755 $d.$f
%__erlang -noshell -run beam_strip start -run erlang halt -extra -o $d.$f $@ $d/*.beam
done
cat > %buildroot%_otpdir/bin/erl.$f <<__EOF__
#!/bin/sh

exec %_otpdir/bin/erl -pa \$(ls -d %_otplibdir/*/ebin.$f) \$@
__EOF__
chmod 755 %buildroot%_otpdir/bin/erl.$f
ln -sf %buildroot{%_otpdir/bin,%_bindir}/erl.$f
}

%{?_with_otp_debug:install_ebin debug -A -r CInf -c}
%{?_with_otp_native:install_ebin native -s -c}
for d in %buildroot%_otplibdir/*/ebin; do
%__erlang -noshell -run beam_strip start -run erlang halt -extra -d -A -c $d/*.beam
done

for f in dialyzer erl erlc escript run_erl start to_erl typer; do
ln -sf %buildroot%_otpdir{/erts-*,}/bin/$f
ln -sf %buildroot{%_otpdir/bin,%_bindir}/$f
done

symlinks -scdr %buildroot

%{?_enable_strip_beam:%__erlang -noshell -run beam_lib strip_release %buildroot%_otpdir -run erlang halt}

%add_findreq_skiplist %_otplibdir/megaco-*/examples/meas/*.sh.skel
%add_findreq_skiplist %_otplibdir/*/contribs/ebin/* %_otplibdir/*/examples/ebin/* %_otplibdir/*/examples/*/ebin/*
# skip Windows-specific modules

%add_erlang_req_modules_skiplist win32reg


%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%exclude %_docdir/%name-%version/pdf
%_bindir/*
%dir %_otpdir
%dir %_otpdir/bin
%dir %_otplibdir
%_otpdir/bin/*
%dir %_otpdir/erts-*
%_otpdir/erts-*/bin
%_otpdir/erts-*/info
%_otpdir/releases
%dir %_otplibdir/erts-*
%if_with otp_debug
%exclude %_otpdir/bin/*.debug
%exclude %_bindir/*.debug
%endif
%if_with otp_native
%exclude %_otpdir/bin/*.native
%exclude %_bindir/*.native
%endif
%exclude %_otpdir/bin/typer*
%exclude %_bindir/typer*
%exclude %_otpdir/erts-*/bin/typer


%files devel
%_otpdir/erts-*/lib
%_otpdir/erts-*/include
%_otpdir/usr
%dir %_otplibdir/erl_interface-*
%_otplibdir/erl_interface-*/bin
%_otplibdir/erl_interface-*/include
%_otplibdir/erl_interface-*/lib
%_otplibdir/erl_interface-*/src
%_includedir/%name


%files otp-bin
%_otplibdir/asn1-*/priv
%_otplibdir/crypto-*/priv
%_otplibdir/diameter-*/bin
%_otplibdir/os_mon-*/priv/bin
%_otplibdir/runtime_tools-*/priv
%_otplibdir/ssl-*/priv
%_otplibdir/tools-*/bin

%files emacs
%_otplibdir/tools-*/emacs


%files otp-common
%dir %_otplibdir/asn1-*
%dir %_otplibdir/compiler-*
%dir %_otplibdir/cos*-*
%dir %_otplibdir/crypto-*
%dir %_otplibdir/diameter-*
%dir %_otplibdir/dialyzer-*
%dir %_otplibdir/edoc-*
%_otplibdir/edoc-*/priv
%dir %_otplibdir/erl_docgen-*
%_otplibdir/erl_docgen-*/priv
%dir %_otplibdir/eunit-*
%dir %_otplibdir/hipe-*
%dir %_otplibdir/ic-*
%_otplibdir/ic-*/priv
%dir %_otplibdir/inets-*
%_otplibdir/inets-*/priv
%dir %_otplibdir/inviso-*
%dir %_otplibdir/kernel-*
%dir %_otplibdir/mnesia-*
%dir %_otplibdir/observer-*
%_otplibdir/observer-*/priv
%dir %_otplibdir/orber-*
%_otplibdir/orber-*/priv
%dir %_otplibdir/os_mon-*
%dir %_otplibdir/os_mon-*/priv
%_otplibdir/os_mon-*/mibs
%_otplibdir/os_mon-*/priv/mibs
%dir %_otplibdir/otp_mibs-*
%_otplibdir/otp_mibs-*/mibs
%_otplibdir/otp_mibs-*/priv
%dir %_otplibdir/parsetools-*
%dir %_otplibdir/percept-*
%_otplibdir/percept-*/priv
%dir %_otplibdir/public_key-*
%dir %_otplibdir/runtime_tools-*
%dir %_otplibdir/sasl-*
%dir %_otplibdir/snmp-*
%_otplibdir/snmp-*/bin
%_otplibdir/snmp-*/mibs
%_otplibdir/snmp-*/priv
%dir %_otplibdir/ssh-*
%dir %_otplibdir/ssl-*
%dir %_otplibdir/stdlib-*
%dir %_otplibdir/syntax_tools-*
%dir %_otplibdir/test_server-*
%dir %_otplibdir/tools-*
%_otplibdir/tools-*/priv
%dir %_otplibdir/webtool-*
%_otplibdir/webtool-*/priv
%dir %_otplibdir/xmerl-*


%files otp-devel
%_otplibdir/asn1-*/include
%_otplibdir/asn1-*/src
%_otplibdir/compiler-*/include
%_otplibdir/compiler-*/src
%_otplibdir/cos*-*/include
%_otplibdir/cos*-*/src
%_otplibdir/diameter-*/include
%_otplibdir/diameter-*/src
%_otplibdir/edoc-*/include
%_otplibdir/edoc-*/src
%_otplibdir/eunit-*/include
%_otplibdir/hipe-*/cerl
%_otplibdir/hipe-*/flow
%_otplibdir/hipe-*/icode
%_otplibdir/hipe-*/main
%_otplibdir/hipe-*/misc
%_otplibdir/hipe-*/rtl
%_otplibdir/ic-*/include
%_otplibdir/ic-*/src
%_otplibdir/inets-*/include
%_otplibdir/inets-*/src
%_otplibdir/kernel-*/include
%_otplibdir/kernel-*/src
%_otplibdir/mnesia-*/include
%_otplibdir/mnesia-*/src
%_otplibdir/observer-*/include
%_otplibdir/observer-*/src
%_otplibdir/orber-*/include
%_otplibdir/orber-*/src
%_otplibdir/orber-*/COSS
%_otplibdir/os_mon-*/include
%_otplibdir/os_mon-*/src
%_otplibdir/otp_mibs-*/include
%_otplibdir/parsetools-*/include
%_otplibdir/public_key-*/asn1
%_otplibdir/public_key-*/include
%_otplibdir/runtime_tools-*/include
%_otplibdir/sasl-*/include
%_otplibdir/sasl-*/src
%_otplibdir/snmp-*/include
%_otplibdir/snmp-*/src
%_otplibdir/ssh-*/include
%_otplibdir/ssh-*/src
%_otplibdir/ssl-*/include
%_otplibdir/ssl-*/src
%_otplibdir/stdlib-*/include
%_otplibdir/stdlib-*/src
%_otplibdir/test_server-*/include
%_otplibdir/tools-*/include
%_otplibdir/tools-*/src
%_otplibdir/xmerl-*/include
%_otplibdir/xmerl-*/src


%files otp
%_otplibdir/asn1-*/ebin
%_otplibdir/compiler-*/ebin
%_otplibdir/cos*-*/ebin
%_otplibdir/crypto-*/ebin
%_otplibdir/diameter-*/ebin
%_otplibdir/edoc-*/ebin
%_otplibdir/erl_docgen-*/ebin
%_otplibdir/erts-*/ebin
%_otplibdir/eunit-*/ebin
%_otplibdir/hipe-*/ebin
%{?_enable_hipe:%exclude %_otplibdir/hipe-*/ebin/hipe_tool*}
%_otplibdir/ic-*/ebin
%_otplibdir/inets-*/ebin
%_otplibdir/inviso-*/ebin
%_otplibdir/kernel-*/ebin
%_otplibdir/mnesia-*/ebin
%dir %_otplibdir/observer-*/ebin
%_otplibdir/observer-*/ebin/crashdump_viewer*
%_otplibdir/observer-*/ebin/observer.*
%_otplibdir/observer-*/ebin/ttb.*
%_otplibdir/orber-*/ebin
%_otplibdir/os_mon-*/ebin
%_otplibdir/otp_mibs-*/ebin
%_otplibdir/parsetools-*/ebin
%_otplibdir/percept-*/ebin
%_otplibdir/public_key-*/ebin
%_otplibdir/runtime_tools-*/ebin
%_otplibdir/sasl-*/ebin
%_otplibdir/snmp-*/ebin
%_otplibdir/ssh-*/ebin
%_otplibdir/ssl-*/ebin
%_otplibdir/stdlib-*/ebin
%_otplibdir/syntax_tools-*/ebin
%_otplibdir/test_server-*/ebin
%_otplibdir/tools-*/ebin
%_otplibdir/webtool-*/ebin
%_otplibdir/xmerl-*/ebin
# Windows

%exclude %_otplibdir/stdlib-*/ebin/win32*


%files megaco-drivers
%_otplibdir/megaco-*/priv


%files megaco-devel
%_otplibdir/megaco-*/include
%_otplibdir/megaco-*/src


%files megaco
%dir %_otplibdir/megaco-*
%_otplibdir/megaco-*/ebin


%files visual-common
%_otpdir/erts-*/bin/typer
%_otpdir/bin/typer*
%_bindir/typer*
%dir %_otplibdir/appmon-*
%_otplibdir/appmon-*/priv
%dir %_otplibdir/debugger-*
%_otplibdir/debugger-*/priv
%dir %_otplibdir/et-*
%dir %_otplibdir/gs-*
%_otplibdir/gs-*/priv
%dir %_otplibdir/pman-*
%_otplibdir/pman-*/priv
%dir %_otplibdir/reltool-*
%dir %_otplibdir/toolbar-*
%dir %_otplibdir/tv-*
%_otplibdir/tv-*/priv
%dir %_otplibdir/typer-*
%dir %_otplibdir/wx-*
%_otplibdir/wx-*/priv


%files visual-devel
%_otplibdir/appmon-*/include
%_otplibdir/appmon-*/src
%_otplibdir/debugger-*/include
%_otplibdir/debugger-*/src
%_otplibdir/dialyzer-*/include
%_otplibdir/dialyzer-*/src
%_otplibdir/et-*/include
%_otplibdir/gs-*/include
%_otplibdir/gs-*/src
%_otplibdir/pman-*/include
%_otplibdir/pman-*/src
%_otplibdir/reltool-*/include
%_otplibdir/reltool-*/src
%_otplibdir/toolbar-*/include
%_otplibdir/toolbar-*/src
%_otplibdir/tv-*/include
%_otplibdir/tv-*/src
%_otplibdir/wx-*/include
%_otplibdir/wx-*/src


%files visual
%_otplibdir/appmon-*/ebin
%_otplibdir/debugger-*/ebin
%_otplibdir/dialyzer-*/ebin
%_otplibdir/et-*/ebin
%_otplibdir/gs-*/ebin
%{?_enable_hipe:%_otplibdir/hipe-*/ebin/hipe_tool*}
%_otplibdir/observer-*/ebin/etop*
%_otplibdir/observer-*/ebin/ttb_et.*
%_otplibdir/pman-*/ebin
%_otplibdir/reltool-*/ebin
%_otplibdir/toolbar-*/ebin
%_otplibdir/tv-*/ebin
%_otplibdir/typer-*/ebin
%_otplibdir/wx-*/ebin


%files odbc-server
%_otplibdir/odbc-*/priv


%files odbc-devel
%_otplibdir/odbc-*/include


%files odbc
%dir %_otplibdir/odbc-*
%_otplibdir/odbc-*/ebin


%files common_test-common
%dir %_otplibdir/common_test-*
%_otplibdir/common_test-*/priv


%files common_test-devel
%_otplibdir/common_test-*/include
%_otplibdir/common_test-*/src


%files common_test
%_otplibdir/common_test-*/ebin


%files docbuilder-common
%dir %_otplibdir/docbuilder-*
%_otplibdir/docbuilder-*/dtd
%_otplibdir/docbuilder-*/etc


%files docbuilder-devel
%_otplibdir/docbuilder-*/include
%_otplibdir/docbuilder-*/src


%files docbuilder
%_otplibdir/docbuilder-*/ebin


%files examples
%_otplibdir/*/examples
%_otplibdir/*/contribs


%files otp-full


%files full


%if_with otp_debug
%files otp-debug
%_otplibdir/*/ebin.debug
%exclude %_otplibdir/megaco-*
%exclude %_otplibdir/appmon-*
%exclude %_otplibdir/common_test-*
%exclude %_otplibdir/debugger-*
%exclude %_otplibdir/et-*
%exclude %_otplibdir/gs-*
%{?_enable_hipe:%exclude %_otplibdir/hipe-*/ebin.debug/hipe_tool*}
%exclude %_otplibdir/observer-*/ebin.debug/etop*
%exclude %_otplibdir/observer-*/ebin.debug/ttb_et*
%exclude %_otplibdir/pman-*
%exclude %_otplibdir/toolbar-*
%exclude %_otplibdir/tv-*
%exclude %_otplibdir/typer-*
%exclude %_otplibdir/odbc-*
%exclude %_otplibdir/docbuilder-*
%exclude %_otplibdir/reltool-*/ebin.debug
%exclude %_otplibdir/wx-*/ebin.debug
%_otpdir/bin/*.debug
%dir %_otplibdir/hipe-*/ebin.debug
%dir %_otplibdir/observer-*/ebin.debug
%_bindir/*.debug


%files megaco-debug
%_otplibdir/megaco-*/ebin.debug


%files visual-debug
%_otplibdir/appmon-*/ebin.debug
%_otplibdir/debugger-*/ebin.debug
%_otplibdir/et-*/ebin.debug
%_otplibdir/gs-*/ebin.debug
%{?_enable_hipe:%_otplibdir/hipe-*/ebin.debug/hipe_tool*}
%_otplibdir/observer-*/ebin.debug/etop*
%_otplibdir/observer-*/ebin.debug/ttb_et*
%_otplibdir/pman-*/ebin.debug
%_otplibdir/reltool-*/ebin.debug
%_otplibdir/toolbar-*/ebin.debug
%_otplibdir/tv-*/ebin.debug
%_otplibdir/typer-*/ebin.debug
%_otplibdir/wx-*/ebin.debug


%files odbc-debug
%_otplibdir/odbc-*/ebin.debug


%files common_test-debug
%_otplibdir/common_test-*/ebin.debug


%files docbuilder-debug
%_otplibdir/docbuilder-*/ebin.debug
%endif


%if_with otp_native
%files otp-native
%_otplibdir/*/ebin.native
%exclude %_otplibdir/megaco-*
%exclude %_otplibdir/appmon-*
%exclude %_otplibdir/common_test-*
%exclude %_otplibdir/debugger-*
%exclude %_otplibdir/et-*
%exclude %_otplibdir/gs-*
%exclude %_otplibdir/hipe-*/ebin.native/hipe_tool*
%exclude %_otplibdir/observer-*/ebin.native/etop*
%exclude %_otplibdir/observer-*/ebin.native/ttb_et*
%exclude %_otplibdir/pman-*
%exclude %_otplibdir/reltool-*
%exclude %_otplibdir/toolbar-*
%exclude %_otplibdir/tv-*
%exclude %_otplibdir/typer-*
%exclude %_otplibdir/wx-*
%exclude %_otplibdir/odbc-*
%exclude %_otplibdir/docbuilder-*
%_otpdir/bin/*.native
%dir %_otplibdir/hipe-*/ebin.native
%dir %_otplibdir/observer-*/ebin.native
%_bindir/*.native


%files megaco-native
%_otplibdir/megaco-*/ebin.native


%files visual-native
%_otplibdir/appmon-*/ebin.native
%_otplibdir/debugger-*/ebin.native
%_otplibdir/et-*/ebin.native
%_otplibdir/gs-*/ebin.native
%_otplibdir/hipe-*/ebin.native/hipe_tool*
%_otplibdir/observer-*/ebin.native/etop*
%_otplibdir/observer-*/ebin.native/ttb_et*
%_otplibdir/pman-*/ebin.native
%_otplibdir/reltool-*/ebin.native
%_otplibdir/toolbar-*/ebin.native
%_otplibdir/tv-*/ebin.native
%_otplibdir/typer-*/ebin.native
%_otplibdir/wx-*/ebin.native


%files odbc-native
%_otplibdir/odbc-*/ebin.native


%files common_test-native
%_otplibdir/common_test-*/ebin.native


%files docbuilder-native
%_otplibdir/docbuilder-*/ebin.native
%endif


%if_with java
%files jinterface
%dir %_otplibdir/jinterface-*
%_otplibdir/jinterface-*/priv
%endif


%if_enabled docs
%files doc

%files man
%dir %_erldir
%_erlmandir
%_man1dir/*
%_man3dir/*
%_man4dir/*
%_man6dir/*
%_man7dir/*
# Windows

%exclude %_man1dir/erlsrv.*
%exclude %_man1dir/start_erl.*
%exclude %_man1dir/werl.*
%exclude %_man3dir/win32*

%files doc-pdf
%dir %_docdir/%name-%version
%_docdir/%name-%version/pdf


%files doc-html
%_erldocdir
%_otpdir/erts-*/doc
%dir %_otplibdir/*
%_otplibdir/*/doc
# Windows

%exclude %_otpdir/erts-*/doc/html/erlsrv.*
%exclude %_otpdir/erts-*/doc/html/start_erl.*
%exclude %_otpdir/erts-*/doc/html/werl.*
%exclude %_otplibdir/*/doc/html/win32*
%endif


%changelog
* Thu Jan 19 2012 Sergey Shilov <hsv at altlinux.org> R14B.4-alt3.M60T.1
- backport R14B-4 to t6
- RPATH contains illegal absolute entry fix;
- fix headers in devel packages.

* Fri Oct 07 2011 Sergey Shilov <hsv at altlinux.org> R14B.4-alt1
- R14B-4
You can find the README file for the release at
http://www.erlang.org/download/otp_src_R14B04.readme

* Fri Sep 16 2011 Sergey Shilov <hsv at altlinux.org> R14B.3-alt3
- build without libperfctr.

* Tue Aug 02 2011 Sergey Shilov <hsv at altlinux.org> R14B.3-alt2
- fix Erlang VM ethreads pre-pentium4 compatibility.

* Thu Jul 28 2011 Sergey Shilov <hsv at altlinux.org> R14B.3-alt1
- R14B-3
You can find the README file for the release at
http://www.erlang.org/download/otp_src_R14B03.readme
- new spec based on Clustrx package ( many thanks to led@ )
- man pages and documentation build from upstream sources
- added:
+ R14B-3a-hipe_crash_with_on_load.patch
- cleaned up:
+ otp-R14B-2a-mnesiaex.patch
+ otp-R14B-2a-tuples.patch
+ otp-R14B-2a-opt.patch
- fixed
+ R14B-3a-beam_lib.patch


* Sun Mar 27 2011 Sergey Shilov <hsv at altlinux.org> R14B.2-alt2
- fix sisyphus_check: forbidden requires: xorg-devel
check-deps ERROR: package dependencies violation
- move elisp files for erlang-mode under GNU Emacs to erlang-emacs package (close #24670).

* Wed Mar 16 2011 Sergey Shilov <hsv at altlinux.org> R14B.2-alt1
- R14B-2
You can find the README file for the release at
http://www.erlang.org/download/otp_src_R14B02.readme


* Sun Mar 13 2011 Sergey Shilov <hsv at altlinux.org> R14B.1-alt2
- fix packager (#25219);
- fix Repocops rpm-filesystem-conflict-symlink-file warning.

* Fri Jan 14 2011 Sergey Shilov <hsv at altlinux.org> R14B.1-alt1
- R14B.1-alt1

* Wed Dec 08 2010 Igor Vlasenko <viy at altlinux.ru> R12B.5-alt11.2.1
- rebuild with new openssl and/or boost by request of git.alt administrator

* Fri Aug 13 2010 Kirill A. Shutemov <kas at altlinux.org> R12B.5-alt11.2
- NMU.
- Build with new libffi.

* Fri Sep 04 2009 Dmitry V. Levin <ldv at altlinux.org> R12B.5-alt11.1
- NMU.
- Fixed buggy find(1) expression in %%install script.
- lib/erl_interface/src/prog/erl_start.c (get_addr): Fixed buffer overflow.

* Thu Apr 02 2009 Led <led at altlinux.ru> R12B.5-alt11
- ffi: added 'time_t' type

* Thu Feb 19 2009 Led <led at altlinux.ru> R12B.5-alt10
- fixed parallel build for any __nprocs
- removed unneeded Provides

* Thu Feb 19 2009 Led <led at altlinux.ru> R12B.5-alt9
- fixed parallel build for __nprocs >= 8
- fixed spec

* Mon Feb 16 2009 Led <led at altlinux.ru> R12B.5-alt8
- fix build ffi on big-endian arches (thanx sbolshakov@)

* Thu Feb 12 2009 Led <led at altlinux.ru> R12B.5-alt7
- extended beam_lib (stdlib)
- added getopt, beam_strip (stdlib)
- applied upstream's otp_src_R12B-5_OTP-7738.patch
- remade %%build
- strip modules
- compress modules with native code and with debug info

* Thu Jan 15 2009 Led <led at altlinux.ru> R12B.5-alt6
- cleaned up asm insertions
- renamed new BIFs and moved to separate module 'tuples': append/2,
delete/2, delete/3, flatsize/1, flatten/1, insert/3, insert_elements/3
- added functions to module 'tuples': append_element/2, element/2,
make/2, set_element/3, from_list/1, to_list/1, size/1

* Tue Jan 13 2009 Led <led at altlinux.ru> R12B.5-alt5
- added BIFs:
+ erlang:concat/2
+ erlang:delete_elements/3
+ erlang:flatten/1
+ erlang:insert_elements/3
+ erlang:tuple_flatsize/1

* Sat Jan 10 2009 Led <led at altlinux.ru> R12B.5-alt4
- optimized some BIFs for x86/x86_64

* Tue Dec 30 2008 Led <led at altlinux.ru> R12B.5-alt3
- fixed spec
- added BIFs erlang:delete_element/2, erlang:insert_element/3

* Fri Dec 26 2008 Led <led at altlinux.ru> R12B.5-alt2
- non-parallel build eunit
- cleaned up spec

* Sun Nov 16 2008 Led <led at altlinux.ru> R12B.5-alt1
- R12B-5

* Mon Oct 20 2008 Led <led at altlinux.ru> R12B.4-alt4
- configure.in: make dirs from mkdir.list

* Fri Oct 17 2008 Led <led at altlinux.ru> R12B.4-alt3
- updated ffi support

* Sun Sep 21 2008 Led <led at altlinux.ru> R12B.4-alt2
- rebuild with rpm-build-%name >= 0.6.2

* Fri Sep 05 2008 Led <led at altlinux.ru> R12B.4-alt1
- R12B-4
- updated:
+ otp_src_R12B-4-ffi.patch
+ otp_src_R12B-4-mnesiaex.patch

* Wed Sep 03 2008 Led <led at altlinux.ru> R12B.3-alt4
- added "BuildRequires: /proc" for native (HIPE'ed) modules

* Thu Aug 28 2008 Led <led at altlinux.ru> R12B.3-alt3
- with native (HIPE'ed) modules

* Tue Aug 19 2008 Led <led at altlinux.ru> R12B.3-alt2
- fixed BuildArch and unmets (#16741)

* Fri Aug 15 2008 Led <led at altlinux.ru> R12B.3-alt1
- added otp_src_R12B-3-alt-configure.patch
- fixed %name-otp-devel
- added otp_src_R12B-3-mnesiaex.patch

* Mon Jun 23 2008 Led <led at altlinux.ru> R12B.3-alt0.7
- fixed spec (%%files otp)

* Fri Jun 20 2008 Led <led at altlinux.ru> R12B.3-alt0.6
- moved common_test to separate packages %name-common_test*

* Thu Jun 19 2008 Led <led at altlinux.ru> R12B.3-alt0.5
- rebuild with rpm-build-%name-0.3.1

* Thu Jun 19 2008 Led <led at altlinux.ru> R12B.3-alt0.4
- rebuild with rpm-build-%name-0.3

* Thu Jun 19 2008 Led <led at altlinux.ru> R12B.3-alt0.3
- moved to *-visual* packages:
+ dialyzer
+ typer
+ observer/etop*
+ observer/ttb_et*
+ hipe/hipe_tool*
+ common_test
- moved jinterface to separate package

* Wed Jun 18 2008 Led <led at altlinux.ru> R12B.3-alt0.2
- moved observer to *-visual* packages

* Wed Jun 18 2008 Led <led at altlinux.ru> R12B.3-alt0.1
- R12B-3

* Sun Feb 24 2008 Led <led at altlinux.ru> R12B.1-alt0.4
- build with rpm-build-%name

* Sat Feb 16 2008 Led <led at altlinux.ru> R12B.1-alt0.3
- reverted system headers (links) to %_libexecdir/%name%_includedir

* Fri Feb 15 2008 Led <led at altlinux.ru> R12B.1-alt0.2
- link system header to %_includedir/%name

* Mon Feb 11 2008 Led <led at altlinux.ru> R12B.1-alt0.1
- R12B-1
- removed otp_src_R12B-0-osp1.patch (fixed in upstream)
- updated:
+ otp_src_R12B-1-alt-arch.patch
+ otp_src_R12B-1-ffi.patch

* Mon Jan 28 2008 Led <led at altlinux.ru> R12B.0-alt0.6
- updated spec for build with opt_otp only on i586/x86_64/arm
- fixed post-scripts

* Thu Jan 24 2008 Led <led at altlinux.ru> R12B.0-alt0.5
- fixed spec
- added:
+ otp_src_R12B-0-alt-arch.patch
+ otp_src_R12B-0-ffi.patch
- cleaned up:
+ otp-R12B-0-alt-include.patch
+ otp-R12B-0-configure.patch
+ otp_src_R12B-0-osp1.patch

* Sun Dec 23 2007 Led <led at altlinux.ru> R12B.0-alt0.4
- cleaned up spec
- added subpackages

* Sun Dec 23 2007 Led <led at altlinux.ru> R12B.0-alt0.3
- fixed upgrading packages

* Sat Dec 22 2007 Led <led at altlinux.ru> R12B.0-alt0.2
- moved optimized modules to %_libexecdir/%name/lib/*/ebin.opt/

* Fri Dec 21 2007 Led <led at altlinux.ru> R12B.0-alt0.1
- R12B-0
- add support to build with icc
- removed:
+ otp-R11B-5-odbcserver.patch (fixed in upstream)
- added:
+ otp-R12B-0-configure.patch
+ otp-R12B-0-link.patch
+ otp_src_R11B-5-libadd.patch
+ otp_src_R12B-0-osp1.patch
- added subpackages %name-examples, %name-otp-opt

* Sun Nov 11 2007 Mikhail Yakshin <greycat at altlinux.org> R11B.5-alt1
- tested with ejabberd and built for Sisyphus

* Tue Oct 09 2007 Led <led at altlinux.ru> R11B.5-alt0.9
- cleaned up and fixed spec
- fixed BuildRequires

* Mon Sep 10 2007 Led <led at altlinux.ru> R11B.5-alt0.8
- added new rpm macros

* Fri Sep 07 2007 Led <led at altlinux.ru> R11B.5-alt0.7
- reverted non-internal headers to %_libexecdir/%name/lib/*/ as symlinks

* Thu Sep 06 2007 Led <led at altlinux.ru> R11B.5-alt0.6
- added additional *.hrl files

* Wed Sep 05 2007 Led <led at altlinux.ru> R11B.5-alt0.5
- cleaned up sources in packages

* Tue Aug 28 2007 Led <led at altlinux.ru> R11B.5-alt0.4
- added rpm macros

* Mon Aug 27 2007 Led <led at altlinux.ru> R11B.5-alt0.3
- moved libs from %%_libdir to %%_libexecdir

* Fri Aug 17 2007 Led <led at altlinux.ru> R11B.5-alt0.2
- added otp-R11B-5-odbcserver.patch (fixed #12576)

* Tue Jun 26 2007 Led <led at altlinux.ru> R11B.5-alt0.1
- R11B-5
- added %name-docbuilder subpackage

* Tue Jun 05 2007 Led <led at altlinux.ru> R11B.4-alt0.1
- R11B-4
- cleaned up spec
- removed docs
- removed emacs-mode-%name
- added patches from FC7
- used gcj

* Tue Feb 20 2007 Mikhail Yakshin <greycat at altlinux.ru> R11B-alt2
- Fixed x86_64 build

* Sat Feb 10 2007 Mikhail Yakshin <greycat at altlinux.org> R11B-alt1
- R11B-3

* Fri Dec 29 2006 ALT QA Team Robot <qa-robot at altlinux.org> R10B.10-alt2.1
- Rebuilt due to libcrypto.so.4 -> libcrypto.so.6 soname change.

* Thu Oct 12 2006 Alex V. Myltsev <avm at altlinux.ru> R10B.10-alt2
- Merged with alb's version from backports.
- Applied the 'new glibc' patch.
- Moved zlib.3.gz to erl_zlib.3.gz.
- Moved Megaco to a separate package..

* Thu Sep 07 2006 Alexey Borovskoy <alb at altlinux.ru> R11B.1-alt0.M24.1
- New release (R11B-1).

* Wed Mar 22 2006 Alexey Borovskoy <alb at altlinux.ru> R10B.10-alt0.M24.1
- New release (R10B-10).

* Mon Dec 19 2005 Alexey Borovskoy <alb at altlinux.ru> R10B.9-alt0.M24.1
- New release (R10B-9).

* Sun Oct 30 2005 Alexey Borovskoy <alb at altlinux.ru> R10B.8-alt0.M24.2
- Add ODBC support.

* Fri Oct 28 2005 Alexey Borovskoy <alb at altlinux.ru> R10B.8-alt0.M24.1
- New release (R10B-8).
- Add patch for disable static linking with zlib. Does not work and disabled.
- Add zlib-devel buildtime dependency. But dymamic linking with zlib not
supported in erts/emulator/dirvers/common/gzio.c due using private zutil.h.
- Remove --enable-threads due erl segfault.

* Thu Sep 08 2005 Alexey Borovskoy <alb at altlinux.ru> R10B.7-alt0.M24.1
- New release (R10B-7)

* Wed Aug 10 2005 Alexey Borovskoy <alb at altlinux.ru> R10B.6-alt0.M24.1
- New release (R10B-6)

* Wed May 11 2005 Alexey Borovskoy <alb at 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 at 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 at altlinux.ru> R9C.0-alt3
- Fix build process

* Sun Feb 22 2004 Ott Alex <ott at 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 at altlinux.ru> R9C.0-alt1
- Initial build for ALTLinux
 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT