BuildRequires: glibc-devel-32bit
%endif
BuildRequires: perl
-BuildRequires: sudo-rpm
%{?cross:BuildRequires: binutils-%{cross}}
# here we use %%if because OBS spec parser cannot expand
# %%{?macro:...} correctly
%setup -q -n gcc-%{version}
%build
-#################
-# This section is done due to license issues with LGPLv3 version of GNU GMP library.
-# To ensure there is no way to set up LGPLv3 GMP to device and to link any Tizen application with it we build all dependencies right in GCC buildroot.
-# The right way is to manage dependencies with OBS but we are forced to remove packages and make external usage impossible they will be built here.
-# Using rpmbuild lets us to keep dependencies in git repositories and debug them in other OBS projects.
-#
-# Prepare dependencies
-RPMBUILD_CMDLINE=$(cat /proc/$PPID/cmdline | tr '\000' ' ' | sed -e 's|^rpmbuild||;s|[[:space:]]/.*rpmbuild/.*$||;s/--define[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)/--define "\1 \2"/g')
-
-pushd ${HOME}
-for pkg in gmp mpfr mpc isl cloog-isl; do
- sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
- RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
- sudo rpm -i ${RPM_NAME}
- find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
-done
-popd
-# End of dependencies preparation
-#################
-
rm -rf obj
mkdir obj
cd obj
BuildRequires: glibc-devel-32bit
%endif
BuildRequires: perl
-BuildRequires: sudo-rpm
%{?cross:BuildRequires: binutils-%{cross}}
# here we use %%if because OBS spec parser cannot expand
# %%{?macro:...} correctly
%setup -q -n gcc-%{version}
%build
-#################
-# This section is done due to license issues with LGPLv3 version of GNU GMP library.
-# To ensure there is no way to set up LGPLv3 GMP to device and to link any Tizen application with it we build all dependencies right in GCC buildroot.
-# The right way is to manage dependencies with OBS but we are forced to remove packages and make external usage impossible they will be built here.
-# Using rpmbuild lets us to keep dependencies in git repositories and debug them in other OBS projects.
-#
-# Prepare dependencies
-RPMBUILD_CMDLINE=$(cat /proc/$PPID/cmdline | tr '\000' ' ' | sed -e 's|^rpmbuild||;s|[[:space:]]/.*rpmbuild/.*$||;s/--define[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)/--define "\1 \2"/g')
-
-pushd ${HOME}
-for pkg in gmp mpfr mpc isl cloog-isl; do
- sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
- RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
- sudo rpm -i ${RPM_NAME}
- find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
-done
-popd
-# End of dependencies preparation
-#################
-
rm -rf obj
mkdir obj
cd obj
BuildRequires: glibc-devel-32bit
%endif
BuildRequires: perl
-BuildRequires: sudo-rpm
%{?cross:BuildRequires: binutils-%{cross}}
# here we use %%if because OBS spec parser cannot expand
# %%{?macro:...} correctly
%setup -q -n gcc-%{version}
%build
-#################
-# This section is done due to license issues with LGPLv3 version of GNU GMP library.
-# To ensure there is no way to set up LGPLv3 GMP to device and to link any Tizen application with it we build all dependencies right in GCC buildroot.
-# The right way is to manage dependencies with OBS but we are forced to remove packages and make external usage impossible they will be built here.
-# Using rpmbuild lets us to keep dependencies in git repositories and debug them in other OBS projects.
-#
-# Prepare dependencies
-RPMBUILD_CMDLINE=$(cat /proc/$PPID/cmdline | tr '\000' ' ' | sed -e 's|^rpmbuild||;s|[[:space:]]/.*rpmbuild/.*$||;s/--define[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)/--define "\1 \2"/g')
-
-pushd ${HOME}
-for pkg in gmp mpfr mpc isl cloog-isl; do
- sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
- RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
- sudo rpm -i ${RPM_NAME}
- find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
-done
-popd
-# End of dependencies preparation
-#################
-
rm -rf obj
mkdir obj
cd obj