File rem.spec of Package failed_rem

Name: rem
Version: 2.10.0
Release: 1
Summary: rem media library
License: BSD
Source0: rem-2.10.0.tar.gz
BuildRequires: cmake, gcc, make, zlib-devel, openssl-devel
%description
rem media library

%prep
%setup -q

%build
# Provide ARRAY_SIZE macro via compiler command line on platforms where it's missing
# Using a function-like macro definition with -D; ensure it's passed as a single token
export CFLAGS="$CFLAGS -D'ARRAY_SIZE(x)=(sizeof(x)/sizeof((x)[0]))'"
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -- -j$(nproc)

%install
cd build
cmake --install . --prefix=%{_prefix}

%files
%doc rem.changes
%license LICENSE
%{_bindir}/*

%changelog
* Thu Aug 29 2025 Repair <repair@example.com> - 2.10.0-1
- Define ARRAY_SIZE via CFLAGS to avoid implicit declaration errors
openSUSE Build Service is sponsored by