]> git.pld-linux.org Git - packages/mold.git/blobdiff - mold.spec
up to 1.2.1
[packages/mold.git] / mold.spec
index 7860a7872d17998009e6a914dc1a5d2b564a2f7e..f695c533bdfdbd8e6a73abf942ba9cfe7f52b310 100644 (file)
--- a/mold.spec
+++ b/mold.spec
@@ -1,20 +1,26 @@
 Summary:       mold: A Modern Linker
 Name:          mold
-Version:       1.0.2
-Release:       2
+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: 6308dd1775808fdcf83538927239ebdb
+# 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: xxHash-devel
 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.119707 seconds and 4 git commands to generate.