%global debug_package %{nil} Name: loudness-scanner Version: 0.5.1 Release: 3%{?dist} Summary: A loudness scanner (according to the EBU R128 standard) URL: https://github.com/jiixyj/loudness-scanner Group: Applications/Multimedia Source0: loudness-scanner.tar.gz # git clone https://github.com/jiixyj/loudness-scanner # cd loudness-scanner # git checkout v0.5.1 # git submodule init # git submodule update # find . -name .git -exec rm -rf {} \; # cd .. # tar cvfz loudness-scanner.tar.gz loudness-scanner/* # rm -rf loudness-scanner License: MIT BuildRequires: gcc gcc-c++ BuildRequires: cmake BuildRequires: chrpath BuildRequires: qt-devel BuildRequires: glib2-devel BuildRequires: libsndfile-devel BuildRequires: taglib-devel BuildRequires: mpg123-devel BuildRequires: libmpcdec-devel %if 0%{?fedora} >= 32 BuildRequires: gstreamer1-devel BuildRequires: gstreamer1-plugins-base-devel %else BuildRequires: gstreamer-devel BuildRequires: gstreamer-plugins-base-devel %endif BuildRequires: ffmpeg-devel BuildRequires: librsvg2-devel BuildRequires: gtk2-devel BuildRequires: harfbuzz-devel BuildRequires: speexdsp-devel BuildRequires: libebur128-devel %description loudness-scanner is a tool that scans your music files according to the EBU R128 standard for loudness normalisation. It optionally adds ReplayGain compatible tags to the files. %prep %autosetup -n %{name} %ifarch x86_64 sed -i -e "s/DESTINATION lib/DESTINATION lib64/g" ebur128/ebur128/CMakeLists.txt %endif # Remove the build of ebur128, it's a Fedora package sed -i -e "s/add_subdirectory(ebur128\/ebur128)/#add_subdirectory(ebur128\/ebur128)/g" CMakeLists.txt %build %{set_build_flags} mkdir build cd build %__cmake -DEBUR128_INCLUDE_DIR=/usr/include .. %make_build %install cd build #make DESTDIR=%{buildroot} install install -d -m 755 %{buildroot}/%{_bindir} install -pm 755 loudness %{buildroot}/%{_bindir}/ install -pm 755 loudness-drop-gtk %{buildroot}/%{_bindir}/ install -pm 755 loudness-drop-qt %{buildroot}/%{_bindir}/ install -d -m 755 %{buildroot}/%{_libdir} %if 0%{?fedora} < 32 install -pm 755 libinput_gstreamer.so %{buildroot}/%{_libdir}/ %endif install -pm 755 libinput_mpg123.so %{buildroot}/%{_libdir}/ install -pm 755 libinput_sndfile.so %{buildroot}/%{_libdir}/ chrpath --delete $RPM_BUILD_ROOT/usr/bin/* %files %doc README.md %license COPYING %{_bindir}/* %{_libdir}/* %changelog * Thu May 28 2020 Yann Collette - 0.5.1-3 - fix install * Thu May 28 2020 Yann Collette - 0.5.1-2 - disable the build of libebur128 * Wed Nov 6 2019 Yann Collette - 0.5.1-1 - fix for Fedora 31 * Thu Sep 12 2019 Yann Collette - 0.5.1-1 - Initial spec file