Summary: A standalone library for reading MAME's CHDv1-v5 formats Name: libchdr Version: 0.3.0 Release: 2%{?dist} License: BSD-3-Clause Group: System Environment/Libraries URL: https://github.com/rtissera/libchdr Source: https://github.com/rtissera/libchdr/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: make BuildRequires: gcc BuildRequires: zlib-devel # system copy of libzstd supports CMake starting with F44 %if 0%{?fedora} >= 44 BuildRequires: libzstd-devel %endif %description libchdr is a standalone library for reading MAME's CHDv1-v5 formats. The code is based off of MAME's old C codebase which read up to CHDv4 with OS-dependent features removed, and CHDv5 support backported from MAME's current C++ codebase. %package devel Summary: A standalone library for reading MAME's CHDv1-v5 formats Group: Development/Libraries Requires: pkgconfig Requires: %{name} = %{version}-%{release} %description devel libchdr is a standalone library for reading MAME's CHDv1-v5 formats. The code is based off of MAME's old C codebase which read up to CHDv4 with OS-dependent features removed, and CHDv5 support backported from MAME's current C++ codebase. This package contains files needed to develop with libchdr. %prep %setup -q %build %cmake \ -DWITH_SYSTEM_ZLIB=ON \ %if 0%{?fedora} >= 44 -DWITH_SYSTEM_ZSTD=ON %endif %cmake_build %install %cmake_install %post /sbin/ldconfig %postun /sbin/ldconfig %files %defattr(-, root, root, -) %doc CHANGELOG.md LICENSE.txt README.md %{_libdir}/libchdr.so.* %files devel %defattr(-, root, root, -) %{_libdir}/lib*.so %{_includedir}/* %{_libdir}/pkgconfig/* %changelog * Sat May 16 2026 Rok Mandeljc - 0.3.0-2 - Use bundled copy of libzstd on F43 and earlier since system version lacks CMake support * Sat May 16 2026 Rok Mandeljc - 0.3.0-1 - Initial RPM build