Search
SailfishOS Open Build Service
>
Projects
>
home:rinigus
:
toolbox
>
opt-gcc
> gcc.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File gcc.spec of Package opt-gcc
Summary: Various compilers (C, C++, Objective-C, Java, ...) Name: opt-gcc Version: 8.3.0 Release: 1%{?dist} License: GPLv3+, GPLv3+ with exceptions and GPLv2+ with exceptions Group: Development/Languages Source0: gcc-8.3.0.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ tar gmp-devel mpfr-devel mpc-devel libstdc++-devel #Requires: %define debug_package %{nil} %define __provides_exclude ^lib.*$ %define __requires_exclude ^libstdc|libgcc*$ %description The gcc package contains the GNU Compiler Collection. This package installs all compilers in /opt/gcc directory. %prep %setup -q -n gcc-8.3.0 %build mkdir obj cd obj $PWD/../configure --prefix=/opt/gcc --enable-languages=c,c++ --enable-cxx-flags="-fabi-version=8" --with-default-libstdcxx-abi=gcc4-compatible \ --enable-linker-build-id --enable-threads=posix --enable-shared \ %ifarch i486 --with-arch=i686 --with-fpmath=sse \ %endif %ifarch armv7hl --disable-lto --with-float=hard --with-fpu=neon --with-arch=armv7-a --with-mode=thumb \ %endif %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} cd obj %{__make} install DESTDIR=%{buildroot} %clean %{__rm} -rf %{buildroot} %pre %post %postun %files %defattr(-, root, root, 0755) /opt/gcc %changelog * Thu Jan 2 2020 rinigus <rinigus.git@gmail.com> - 8.3.0 - update to gcc 8.3 and use /opt/gcc folder * Mon Sep 4 2017 rinigus <rinigus.git@gmail.com> - 6.4.0-1 - testing packaging for SFOS