commit 9747417ce789f413cb4cdccd899ed792a329a48e Author: Dmitrii Tochanskii Date: Fri Oct 31 14:18:53 2025 +0000 GCC 15.2.0 diff --git a/gcc.spec b/gcc.spec new file mode 100644 index 0000000..6a1f22e --- /dev/null +++ b/gcc.spec @@ -0,0 +1,42 @@ +Name: gcc +Version: 15.2.0 +Release: 1%{?dist} +Summary: The GNU Compiler Collection + +License: GPL +URL: https://gcc.gnu.org +Source0: https://mirror.tochlab.net/pub/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.gz + +BuildRequires: gcc gcc-c++ make gmp-devel mpfr-devel libmpc-devel +Requires: bash + +%description + + +%prep +%autosetup + + +%build +CC=gcc +CXX=g++ +export CFLAGS="-O2 -pipe" +export CXXFLAGS="-O2 -pipe" +export LDFLAGS="" +./configure --prefix=%{_prefix} --enable-languages=c,c++ --disable-multilib --disable-bootstrap --disable-fixincludes +%make_build + + +%install +%make_install + + +%files +%license add-license-file-here +%doc add-docs-here + + + +%changelog +* Fri Oct 17 2025 Dmitrii Tochanskii +-