File dba-mono-680123.spec of Package dba-mono-680123
%define real_name mono
%define version 6.8.0.123
%define vers 680123
%define prefix /DBA/mono/%{version}
%define latest_script set_mono_6.8.0.latest.sh
%define have_xz 0
%global debug_package %{nil}
Name: dba-%{real_name}-%{vers}
Summary: Mono is an open source implementation of Microsoft's .NET Framework
Version: %{version}
Release: 1
License: GPL
Url: https://www.mono-project.com
Group: Productivity/Networking/Web/Servers
Source: https://download.mono-project.com/sources/%{real_name}/%{real_name}-%{version}.tar.xz
Source1: dba-mono-rpmlintrc
Source2: %{latest_script}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _use_internal_dependency_generator 0
BuildRequires: gcc-c++ libstdc++-devel cmake curl-devel openssl-devel python-devel gettext-devel
#!BuildIgnore: dba-curl-7371 dba-openssl-098r dba-openssl-098x
%if 0%{?suse_version} >= 1200
BuildRequires: automake libtool
%endif
%if 0%{?suse_version} >= 1100
BuildRequires: -post-build-checks
%endif
%if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700 || 0%{?suse_version} >= 1200
%define have_xz 1
%endif
%if %{have_xz} == 0
BuildRequires: dba-xz-522-static
%endif
%description
Sponsored by Microsoft, Mono is an open source implementation of Microsoft's .NET Framework
based on the ECMA standards for C# and the Common Language Runtime. A growing family of
solutions and an active and enthusiastic contributing community is helping position Mono to
become the leading choice for development of cross platform applications.
%prep
%if %{have_xz}
%setup -n %{real_name}-%{version}
%else
/DBA/xz/5.2.2/bin/xzcat %{SOURCE0} | tar -xvvf -
%endif
%build
CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing -fpic -O0"; export CFLAGS
%if %{have_xz} == 0
cd %{real_name}-%{version}/
chmod -R a+rX,g-w,o-w .
%endif
./configure --prefix=%{prefix} \
--disable-libraries
make %{?_smp_mflags}
%install
# prevent rpath problem on suse
export NO_BRP_CHECK_RPATH=true
export LD_LIBRARY_PATH=%{buildroot}%%{prefix}/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=%{buildroot}%%{prefix}/include
export PATH=%{buildroot}%{prefix}/bin:$PATH
make DESTDIR=$RPM_BUILD_ROOT install %{?_smp_mflags}
%{__install} -m 0755 %{SOURCE2} %{buildroot}%{prefix}/bin/%{latest_script}
%{__rm} -rfv %{buildroot}%{prefix}/lib/mono
%{__rm} -rfv %{buildroot}%{prefix}/lib/monodoc
%post
cd %{prefix}/..
%{prefix}/bin/%{latest_script}
%clean
%{__rm} -rf %{buildroot}
%files
# _
# O/ _|_o| _ _
# /O | ||(/__>
#
%defattr(-,root,root)
%dir %{prefix}
%{prefix}/bin
%{prefix}/etc
%{prefix}/include
%{prefix}/lib
%{prefix}/share
%changelog
* Fri Jun 05 2020 Dennis Hampe <dennis.hampe@bertelsmann.de>
- inital version