Name: libjxl
Summary: JPEG XL encoder and decoder library
Version: 0.9.0
-Release: 0
+Release: 1
Group: Multimedia/Libraries
URL: https://github.com/libjxl/libjxl/
License: BSD-3-Clause and Apache-2.0
%setup -q
cp %{SOURCE1} .
-# add defines for highway(libhwy) in libjxl
-%ifarch armv7l
-CFLAGS+=" -D__arm__"
-CXXFLAGS+=" -D__arm__"
-%endif
-%ifarch aarch64
-CFLAGS+=" -D__aarch64__"
-CXXFLAGS+=" -D__aarch64__"
-%endif
-%ifarch %{ix86}
-CFLAGS+=" -D__i386__"
-CXXFLAGS+=" -D__i386__"
-%endif
-%ifarch x86_64
-CFLAGS+=" -D__x86_64__"
-CXXFLAGS+=" -D__x86_64__"
-%endif
-
-# add S/W coder define for highway(libhwy)
-# if H/W accelerator can be used, below options should be removed
-CFLAGS+=" -DHWY_COMPILE_ONLY_SCALAR"
-CXXFLAGS+=" -DHWY_COMPILE_ONLY_SCALAR"
-
%build
%cmake . -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \