Name: libgig Version: 4.5.1 Release: 2%{?dist} Summary: C++ library for loading and saving Gigasampler, DLS, and SoundFont files License: GPL-2.0-or-later URL: https://www.linuxsampler.org/libgig.html Source0: https://download.linuxsampler.org/packages/%{name}-%{version}.tar.bz2 BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig BuildRequires: libsndfile-devel BuildRequires: uuid-devel BuildRequires: doxygen BuildRequires: libuuid-devel Requires: libsndfile %description libgig is a C++ library for loading and saving sampler formats such as Gigasampler (.gig), DLS (Downloadable Sounds), and SoundFont 2.0 (.sf2). %prep %autosetup -n %{name}-%{version} %build %configure --disable-static --enable-shared %make_build -j4 %install %make_install # Remove deprecated .la files find %{buildroot} -name "*.la" -delete %post # Create a top-level symlink to libgig.so.13.0.0 for compatibility if [ -f /usr/lib64/libgig/libgig.so.13.0.0 ]; then ln -sf libgig/libgig.so.13.0.0 /usr/lib64/libgig.so.13 echo "Created symlink: /usr/lib64/libgig.so.13 -> libgig/libgig.so.13.0.0" else echo "libgig.so.13.0.0 not found under /usr/lib64/libgig/" fi %files %license COPYING %doc AUTHORS ChangeLog NEWS README TODO %{_bindir}/* %{_libdir}/libgig/*.so* %{_mandir}/man1/* %dir %{_libdir}/libgig %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development headers, static libraries, and pkgconfig files for building against %{name}. %files devel %{_includedir}/libgig/* %{_libdir}/pkgconfig/*.pc %changelog * Fri Nov 07 2025 Jim Hines - 4.5.1-2 - Fedora 41 update, cleaned for Autotools build - Removed all .la and .a files before packaging