]> git.pld-linux.org Git - packages/mold.git/blobdiff - mold.spec
up to 1.2.1
[packages/mold.git] / mold.spec
index 37b510d215d6ad3257cf47b9f23c4a97f86dcb6f..f695c533bdfdbd8e6a73abf942ba9cfe7f52b310 100644 (file)
--- a/mold.spec
+++ b/mold.spec
@@ -1,20 +1,26 @@
 Summary:       mold: A Modern Linker
 Name:          mold
-Version:       1.1
+Version:       1.2.1
 Release:       1
 License:       GPL v3+
 Group:         Development/Libraries
 Source0:       https://github.com/rui314/mold/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: fa5df61762cdce46a69e9f6aa39bf9e5
+# Source0-md5: 69ba53ea65a09354a5cec09d9c574472
+Patch0:                atomic.patch
 URL:           https://github.com/rui314/mold
+%ifarch %{armv6} riscv64
+BuildRequires: libatomic-devel
+%endif
 BuildRequires: libstdc++-devel >= 6:10
 BuildRequires: mimalloc-devel >= 1.7
 BuildRequires: openssl-devel
 BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 2.007
 BuildRequires: tbb-devel >= 2021.3.0
 BuildRequires: zlib-devel
 Requires:      mimalloc >= 1.7
 Requires:      tbb >= 2021.3.0
+ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 riscv64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,11 +32,13 @@ especially in rapid debug-edit-rebuild cycles.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__rm} -r third-party/{mimalloc,tbb}
 
 %build
 %{__make} \
+       ARCH="%{_target_cpu}" \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
        CFLAGS="%{rpmcppflags} %{rpmcflags}" \
This page took 0.113277 seconds and 4 git commands to generate.