File trng.spec of Package failed_trng

Name:           trng
Version:        1.0
Release:        2.1
Summary:        A random number generator library
License:        MIT
Group:          Development/Libraries
URL:            https://example.com/trng
Source0:        %{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  make

%description
TRNG is a library for generating random numbers.

%prep
%setup -q

%build
mkdir -p build
cd build
cmake ..
make %{?_smp_mflags}

%install
cd build
make install DESTDIR=%{buildroot}

%check
cd build
ctest --output-on-failure

%files
%license LICENSE
%doc README.md
%{_libdir}/libtrng.so.*
%{_includedir}/trng/

%changelog
* Fri Aug 08 2025 Your Name <your.email@example.com> - 1.0-2.1
- Fixed invalid ctest command in spec file
```

### Explanation of Changes
1. **Line 75 Fix**: The invalid `ctest(:-:)` command was replaced with `ctest --output-on-failure`. This ensures that tests are executed correctly, and any failures will produce detailed output for debugging.
2. **No Other Changes**: The rest of the file remains unchanged, as no other issues were identified in the build log.

### Next Steps
After applying this fix, rebuild the package to verify that the issue is resolved. If additional errors arise, they can be addressed based on the new build logs.
openSUSE Build Service is sponsored by