The package rpms/chibicc.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/chibicc.git/commit/?id=f6486cb355cfa....
Change: +ExclusiveArch: x86_64
Thanks.
Full change: ============
commit f6486cb355cfaff960bca3eecbfd9f85f764b16c Author: Benson Muite fed500@fedoraproject.org Date: Thu Jan 2 14:43:02 2025 +0300
Initial import bz# 2325026
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19306a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/chibicc-90d1f7f.tar.gz diff --git a/chibicc.spec b/chibicc.spec new file mode 100644 index 0000000..7a5b786 --- /dev/null +++ b/chibicc.spec @@ -0,0 +1,62 @@ +%global commit 90d1f7f199cc55b13c7fdb5839d1409806633fdb +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global date 20201207 +Name: chibicc +Version: 0.0^%{date}.%{shortcommit} +Release: %{autorelease} +Summary: A small C compiler + +License: MIT +URL: https://github.com/rui314/chibicc +Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz + +BuildRequires: gcc +BuildRequires: glibc-devel +BuildRequires: glibc-static +BuildRequires: make +# Other architectures are not supported +ExclusiveArch: x86_64 + +%description +chibicc is yet another small C compiler that implements most C11 features. +Even though it still probably falls into the "toy compilers" category just +like other small compilers do, chibicc can compile several real-world +programs, including Git, SQLite, libpng and chibicc itself, without making +modifications to the compiled programs. Generated executables of these +programs pass their corresponding test suites. So, chibicc actually supports +a wide variety of C11 features and is able to compile hundreds of thousands +of lines of real-world C code correctly. + +If you like this project, please consider purchasing a copy of the book when +it becomes available! I publish the source code here to give people early +access to it, because I was planing to do that anyway with a permissive +open-source license after publishing the book. If I don't charge for the source +code, it doesn't make much sense to me to keep it private. + +%prep +%autosetup -n %{name}-%{commit} +sed -i 's/CFLAGS=-std=c11/CFLAGS+=-std=c11/g' Makefile + +%build +%make_build + + +%install +install -d -p -m 755 chibicc %{buildroot}%{_bindir}/chibicc +mkdir -p %{buildroot}%{_includedir}/chibicc +install -p -m 644 include/*.h %{buildroot}%{_includedir}/chibicc/ +install -p -m 644 chibicc.h %{buildroot}%{_includedir}/ + +%check +make test-all + +%files +%license LICENSE +%doc README.md +%{_bindir}/chibicc +%{_includedir}/chibicc.h +%dir %{_includedir}/chibicc +%{_includedir}/chibicc/*.h + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..764977d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chibicc-90d1f7f.tar.gz) = e1b0f8f4407a4944ae800e96a105180e073feef240cb559d18b0fec8a36f2c38bcd4fe73dae4f01d40007140e63349c8b8d8c8bb3f4751e7c8d3b6b382936bef
arch-excludes@lists.fedoraproject.org