Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-erlang-2624
dba-erlang-2624.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-erlang-2624.spec of Package dba-erlang-2624
# # spec file for package erlang # %define real_name erlang %define version 26.2.4 %define vers 2624 %define vers_latest 26.2 %define prefix /DBA/%{real_name}/%{version} %define debug_package %{nil} %define maketest 0 %define with_extrapkg 1 Name: dba-%{real_name}-%{vers} Summary: General-purpose programming language and runtime environment 25.3 License: ErlPL-1.1 Group: Development/Languages/Other Url: http://www.erlang.org Version: %{version} Release: 1 Source: http://erlang.org/download/otp_src_%{version}.tar.gz Source1: http://erlang.org/download/otp_doc_html_%{version}.tar.gz Source2: http://erlang.org/download/otp_doc_man_%{version}.tar.gz Source3: %{real_name}-rpmlintrc Source4: epmd.init Source5: erlang.sysconfig Source6: macros.erlang Source7: epmd.service Source8: epmd.socket Source9: README.SUSE Source10: filter-requires-erlang.sh Source11: set_%{real_name}_%{vers_latest}.latest.sh # PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines #Patch0: otp-R16B-rpath.patch # PATCH-FIX-OPENSUSE erlang-not-install-misc.patch - matwey.kornilov@gmail.com -- patch from Fedora, this removes unneeded magic #Patch4: erlang-not-install-misc.patch # PATCH-FIX-UPSTREAM crypto.patch - matwey.kornilov@gmail.com -- fix compilation with disabled EC in openssl #Patch5: crypto.patch %define _use_internal_dependency_generator 0 %define __find_requires %{SOURCE10} BuildRequires: autoconf BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: openssh BuildRequires: openssl-devel BuildRequires: tcl-devel BuildRequires: tk-devel BuildRequires: unixODBC-devel %if 0%{?centos_version} >= 900 || 0%{?rhel_version} >= 900 BuildRequires: mesa-libGLU-devel %else BuildRequires: Mesa-devel %endif BuildRequires: krb5-devel BuildRequires: java-devel %if %{?suse_version:1}0 BuildRequires: fdupes BuildRequires: update-alternatives %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c %if 0%{?centos_version} || 0%{?rhel_version} %if 0%{?centos_version} >= 700 || 0%{?rhel_version} >= 800 BuildRequires: java-1.8.0-openjdk-devel #!BuildIgnore: java-1.8.0-openjdk-headless %else BuildRequires: java-1.6.0-openjdk-devel %endif %endif %if %{?suse_version:1}0 %if 0%{?suse_version} >= 1200 BuildRequires: wxGTK-devel >= 2.8 %else %if 0%{?suse_version} >= 1140 BuildRequires: wxWidgets BuildRequires: wxWidgets-wxcontainer-devel %define _use_internal_dependency_generator 0 %define __find_requires %wx_requires %endif %endif %endif %if 0%{?suse_version} >=1241 BuildRequires: pkgconfig(systemd) %{?systemd_requires} %define have_systemd 1 %endif %description Erlang is a general-purpose programming language and runtime environment. Erlang has built-in support for concurrency, distribution and fault tolerance. Erlang is used in several large telecommunication systems from Ericsson. %if %{with_extrapkg} %package extra Summary: Extra package for erlang Group: Development/Languages/Other Requires: %{name} = %{version} %if %{?suse_version:1}0 %if 0%{?suse_version} >= 1140 BuildRequires: wxWidgets %else BuildRequires: wxGTK %endif %endif %description extra Extra package for erlang to reduce dependencies %endif %prep %{__chmod} +x %{SOURCE10} %setup -q -n otp_src_%{version} #%patch0 -p1 -b .rpath #%patch4 -p1 #%patch5 -p1 cp %{S:9} . ./otp_build autoconf # enable dynamic linking for ssl sed -i 's|SSL_DYNAMIC_ONLY=no|SSL_DYNAMIC_ONLY=yes|' erts/configure # Remove shipped zlib sources #rm -f erts/emulator/zlib/*.[ch] # fix for arch linux bug #17001 (wx not working) sed -i 's|WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`|WX_LIBS="`$WX_CONFIG_WITH_ARGS --libs` -lGLU"|' lib/wx/configure || return 1 %build # we need build only 1.5 target for java # for SLE only %if 0%{?sles_version} >= 10 || 0%{?suse_version} >= 1110 export JAVAC="javac -source 1.5 -target 1.5" %endif %if 0%{?suse_version} == 1100 || 0%{?fedora_version} == 9 export CFLAGS="-fno-strict-aliasing" %else export CFLAGS="%{optflags} -fno-strict-aliasing" %endif export CXXFLAGS=$CFLAGS ./configure \ --prefix=%{prefix} \ --libdir=%{prefix}/lib \ --mandir=%{prefix}/man \ --sysconfdir=%{prefix}/etc \ --with-ssl=%{_prefix} \ --enable-threads \ --enable-smp-support \ --enable-kernel-poll \ --enable-hipe \ --enable-shared-zlib # clean stalled files before rebuild them make %{?_smp_mflags} clean # should work up to at least -j8 make %{?_smp_mflags} %check %if %maketest make check %endif %install export NO_BRP_CHECK_RPATH=true %{__mkdir_p} %{buildroot}%{prefix}/etc %{__make} install DESTDIR=%{buildroot} %{__mkdir_p} %{buildroot}%{prefix}/sbin %{__install} -m 0755 %{S:11} %{buildroot}%{prefix}/sbin/set_%{real_name}_%{vers_latest}.latest.sh # doc mv README.md README mkdir -p erlang_doc tar -C erlang_doc -xzf %{SOURCE1} tar -C %{buildroot}%{prefix}/lib/erlang -xzf %{SOURCE2} %post cd %{prefix}/.. %{prefix}/sbin/set_%{real_name}_%{vers_latest}.latest.sh %if %{with_extrapkg} %files extra %defattr(-,root,root) %{prefix}/lib/erlang/lib/wx-*/* %{prefix}/lib/erlang/lib/odbc-*/* %endif %files %defattr(-,root,root) %doc AUTHORS LICENSE.txt README %dir %{prefix} %{prefix}/bin %{prefix}/etc %{prefix}/lib %{prefix}/sbin %if %{with_extrapkg} %exclude %{prefix}/lib/erlang/lib/wx-*/* %exclude %{prefix}/lib/erlang/lib/odbc-*/* %endif %changelog * Tue Apr 23 2024 Dennis Hampe <dennis.hampe@bertelsmann.de> - inital version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor