Name: dr14_t.meter
Version: 1.0.16
Release: 8
Summary: Compute the dynamic range DR14 value of the givens audio files
BuildArch: noarch

Group: Applications/Sound
License: GPLv3	
URL: http://dr14tmeter.sourceforge.net	
Source: https://github.com/simon-r/dr14_t.meter/archive/refs/tags/v1.0.16.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: python3
BuildRequires: python3-setuptools
BuildRequires: bash

Requires: python3
Requires: python3-numpy
Requires: flac
Requires: lame
Requires: libmad
Requires: ffmpeg-free

%description
Compute the DR14 value of the given audio files according to the algorithm described by the Pleasurize Music Foundation

%prep
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
zcat $RPM_SOURCE_DIR/v1.0.16.tar.gz | tar -xvf -

%build
cd $RPM_BUILD_DIR/%{name}-%{version}
python3 setup.py build


%install
#rm -rf %{buildroot}
cd $RPM_BUILD_DIR/%{name}-%{version}
python3 setup.py install --root=%{buildroot} --prefix=usr --optimize=1


%clean
#rm -rf %{buildroot}


%files
%defattr(-,root,root)
%{_bindir}/*
/usr/lib/*
%{_mandir}/man1/*



%changelog
* Fri Feb 14 2025 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-8
- Rebuild for Fedora 42
* Fri Jan 10 2025 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-7
- Removed vorbis-tools as required dependency
* Mon Dec 16 2024 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-6
- Removing rpmfusion-free dependencies (ffmpeg & faad2)
- Changed dependency from ffmpeg to ffmpeg-free
- Added libmad package for increased compatibility
* Tue Nov 12 2024 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-5
- Rebuild for Fedora 41, epel-next, epel 10
* Mon Jun 17 2024 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-4
- Rebuild for EL8, EL9, Fedora 39, Fedora 40, Fedora Rawhide
- Update BuildRequires to include python3-setuptools as Python's distutils is deprecated
* Sat Jul 17 2021 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-3
- Rebuild for Fedora 33 and Fedora 34
* Wed Nov 6 2019 Shaun Assam <sassam@fedoraproject.org> - 1.0.16-2
- Update specs for Python 3