## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global commit f870c29e2c450253b48a2c6246de48d4f5e275ea %global shortcommit f870c29 %global commitdate 20250519 Name: gccrs Version: 0.0^%{commitdate}git%{shortcommit} Release: %{autorelease} Summary: GCC Front-End for Rust License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) URL: https://github.com/Rust-GCC/gccrs Source0: %{url}/archive/%{commit}/gccrs-%{shortcommit}.tar.gz BuildRequires: autoconf BuildRequires: autogen BuildRequires: automake BuildRequires: dejagnu BuildRequires: flex BuildRequires: bison BuildRequires: ccache BuildRequires: coreutils BuildRequires: elfutils-devel BuildRequires: gc-devel BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: glibc-devel BuildRequires: glibc-gconv-extra BuildRequires: glibc-static BuildRequires: gmp-devel BuildRequires: grep BuildRequires: ima-evm-utils-devel BuildRequires: lcov BuildRequires: isl-devel BuildRequires: libmpc-devel BuildRequires: libtool BuildRequires: llvm BuildRequires: mpfr-devel BuildRequires: python3-devel BuildRequires: texinfo BuildRequires: cargo %description gccrs is a full alternative implementation of the Rust language ontop of GCC with the goal to become fully upstream with the GNU toolchain. %prep %autosetup -n gccrs-%{commit} %build cd .. mkdir gccrs-build cd gccrs-build CFLAGS="$CFLAGS -Wno-error=format-security" CXXFLAGS="$CXXFLAGS -Wno-error=format-security" ../gccrs-%{commit}/configure --disable-bootstrap \ --enable-checking=yes \ --disable-multilib \ --enable-languages=rust \ --disable-libsanitizer \ --disable-libitm \ --disable-libgomp \ --disable-libcc1 \ --disable-libvtv make %install cd ../gccrs-build make install %check cd ../gccrs-build make check-rust %files %license COPYING %license COPYING.LIB %license COPYING.RUNTIME %license COPYING3 %license COPYING3.LIB %doc README %doc README.md %doc CODE_OF_CONDUCT.md %doc MAINTAINERS %doc SECURITY.txt %doc ChangeLog %doc ChangeLog.jit %doc ChangeLog.tree-ssa %changelog ## START: Generated by rpmautospec * Thu May 22 2025 John Doe - 0.0^20250519gitf870c29-1 - Uncommitted changes ## END: Generated by rpmautospec