Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37571926
en ru br
Репозитории ALT
S:25.3-alt1
D:R12B.3-alt0.7
5.1: R12B.5-alt11.1
4.1: R11B.5-alt1
4.0: R11B.5-alt1
3.0: R10B.0-alt1
+backports:R10B.10-alt0.M30.1
www.altlinux.org/Changes

Другие репозитории
Upstream:12.B.1

Группа :: Разработка/Прочее
Пакет: erlang

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable threads
%def_enable smp
%def_enable kernel_poll
%def_enable hipe
%def_enable megaco_flex_scanner_lineno
%def_with ssl
%def_with ssl_zlib
%def_with java
#Can build jinterface with gcj or Sun java
%def_enable gcj
%def_enable sctp
%def_enable tsp
#Can't build dialyzer with --enable-elib-malloc
%def_disable elib_malloc
%def_enable fixalloc
#Can't enable next 2 parameters :(
%def_enable clock_gettime
%def_enable hybrid_heap
%def_disable lock_checking
%def_without perfctr
%def_with gmp

%def_with minimal_src
#----------------------------------------------------------------------
%define set_disable() %{expand:%%force_disable %{1}} %{expand:%%undefine _enable_%{1}}
%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}}}
%{?_enable_smp_io_thread:%set_disable port_tasks}

%define Name Erlang
Name: erlang
%define ver R11B
%define subver 5
Version: %ver.%subver
Release: alt1
Summary: A programming language developed by Ericsson
License: EPL
Group: Development/Other
URL: http://www.%name.org
Source: otp%{?_with_minimal_src:_minimal}_src_%ver-%subver.tar.bz2
Patch0: otp-R11B-5-odbcserver.patch
Patch1: otp-rpath.patch
Patch2: otp-sslrpath.patch

Packager: Mikhail Yakshin <greycat at altlinux.org>

# Automatically added by buildreq on Tue Jun 05 2007 (-bi)

#BuildRequires: flex java-devel libgmp-devel libncurses-devel libssl-devel libunixODBC-devel openssl symlinks tcl

BuildRequires: gcc-c++ flex libncurses-devel libunixODBC-devel symlinks
BuildRequires: zlib-devel sh
%if_with java
%if_enabled gcj
BuildRequires: jdkgcj
%else
BuildRequires: /proc java-devel
%endif
%endif
%{?_with_ssl:BuildRequires: libssl-devel openssl}
%{?_with_gmp:BuildRequires: libgmp-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 megaco
Summary: H.248 support for %Name
Group: Development/Other
Requires: %name = %version-%release

%description megaco
Megaco (aka H.248) is a signalling protocol used in VoIP networks.
This package adds support for Megaco to your %Name installation.


%package visual
Summary: Standart visual applications for %Name
Group: Development/Other
Requires: %name = %version-%release
Requires: tk

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


%package odbc
Summary: ODBC support for %Name
Group: Development/Other
Requires: %name = %version-%release

%description odbc
ODBC support for %Name programming language.


%package docbuilder
Summary: Tool for generating HTML documentation for %Name applications
Group: Development/Other
Requires: %name = %version-%release

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


%prep
%setup -n otp_src_%ver-%subver
chmod -R u+w ./
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
%define _optlevel 3
%add_optflags -fno-stack-protector
export CFLAGS="%optflags"
%undefine __libtoolize
%define _configure_script ./otp_build configure
%configure \
   --libdir=%_libexecdir \
   %{subst_enable threads} \
   %{subst_enable_to smp smp-support} \
   %{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 gmp} \
   %{subst_enable sctp} \
   %{subst_enable tsp} \
   %{subst_enable fixalloc} \
   %{subst_enable_to elib_malloc elib-malloc} \
   %{subst_enable_to hybrid_heap hybrid-heap} \
   %{subst_enable_to lock_checking lock-checking} \
   %{subst_enable_to clock_gettime clock-gettime} \
   --disable-erlang-mandir

%make TARGET=%_target_platform%_gnu


%install
%make_install TARGET=%_target_platform%_gnu INSTALL_PREFIX=%buildroot install

for l in %buildroot%_libexecdir/%name/lib/*; do
   if [ -d $l/src ]; then
H=$(find $l/src -type f -name '*.hrl' | grep -v '.*_internal\.hrl$') ||:
if [ -n "$H" ]; then
   install -d -m 0755 $l/include/
   mv $H $l/include/
   for f in $H; do
ln -sf $l/include/$(basename $f) $f
   done
   find $l/src/* -not -type l -delete
else
   rm -rf $l/src
fi
   fi
done
rm -rf %buildroot%_libexecdir/%name/{lib/*/c_src,erts-*/src}
find %buildroot -empty -delete

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

symlinks -cdr %buildroot
symlinks -scdr %buildroot

install -d -m 0755 %buildroot%_sysconfdir/rpm/macros.d
cat > %buildroot%_sysconfdir/rpm/macros.d/%name <<__MACROS__
%%_otpdir %%_libexecdir/erlang
%%_erldir %%_otpdir
%%_otplibdir %%_otpdir/lib
%%_erllibdir %%_otplibdir
%%_otpmandir %%_otpdir/man
%%_erlmandir %%_otpmandir
__MACROS__

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

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

%add_findreq_skiplist /usr/lib/erlang/lib/megaco-3.6.0.1/examples/meas/*.sh.skel


%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%_bindir/*
%_sysconfdir/rpm/macros.d/*
%dir %_libexecdir/%name
%dir %_libexecdir/%name/bin
%_libexecdir/%name/bin/*
%_libexecdir/%name/erts-*
%_libexecdir/%name/releases
%_libexecdir/%name/usr
%dir %_libexecdir/%name/lib
%_libexecdir/%name/lib/asn1-*
%_libexecdir/%name/lib/compiler-*
%_libexecdir/%name/lib/cosEvent-*
%_libexecdir/%name/lib/cosEventDomain-*
%_libexecdir/%name/lib/cosFileTransfer-*
%_libexecdir/%name/lib/cosNotification-*
%_libexecdir/%name/lib/cosProperty-*
%_libexecdir/%name/lib/cosTime-*
%_libexecdir/%name/lib/cosTransactions-*
%_libexecdir/%name/lib/crypto-*
%_libexecdir/%name/lib/dialyzer-*
%_libexecdir/%name/lib/edoc-*
%_libexecdir/%name/lib/erl_interface-*
%_libexecdir/%name/lib/hipe-*
%_libexecdir/%name/lib/ic-*
%_libexecdir/%name/lib/inets-*
%_libexecdir/%name/lib/inviso-*
%_libexecdir/%name/lib/jinterface-*
%_libexecdir/%name/lib/kernel-*
%_libexecdir/%name/lib/mnemosyne-*
%_libexecdir/%name/lib/mnesia-*
%_libexecdir/%name/lib/mnesia_session-*
%_libexecdir/%name/lib/observer-*
%_libexecdir/%name/lib/orber-*
%_libexecdir/%name/lib/os_mon-*
%_libexecdir/%name/lib/otp_mibs-*
%_libexecdir/%name/lib/parsetools-*
%_libexecdir/%name/lib/runtime_tools-*
%_libexecdir/%name/lib/sasl-*
%_libexecdir/%name/lib/snmp-*
%_libexecdir/%name/lib/ssh-*
%_libexecdir/%name/lib/ssl-*
%_libexecdir/%name/lib/stdlib-*
%_libexecdir/%name/lib/syntax_tools-*
%_libexecdir/%name/lib/tools-*
%_libexecdir/%name/lib/typer-*
%_libexecdir/%name/lib/webtool-*
%_libexecdir/%name/lib/xmerl-*


%files megaco
%_libexecdir/%name/lib/megaco-*


%files visual
%_libexecdir/%name/lib/appmon-*
%_libexecdir/%name/lib/debugger-*
%_libexecdir/%name/lib/et-*
%_libexecdir/%name/lib/gs-*
%_libexecdir/%name/lib/pman-*
%_libexecdir/%name/lib/toolbar-*
%_libexecdir/%name/lib/tv-*


%files odbc
%_libexecdir/%name/lib/odbc-*


%files docbuilder
%_libexecdir/%name/lib/docbuilder-*


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin