Group :: Sound
RPM: libebur128
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _name ebur128
%def_enable check
Name: lib%_name
Version: 1.2.6
Release: alt1.1
Summary: A library that implements the EBU R 128 standard for loudness normalization
Group: Sound
License: MIT
Url: https://github.com/jiixyj/%name
Source: https://github.com/jiixyj/%name/archive/v%version/%name-%version.tar.gz
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
%{?_enable_check:BuildRequires: libsndfile-devel}
%description
A library that implements the EBU R 128 standard for loudness
normalization.
It implements M, S and I modes, loudness range measurement (EBU - TECH
3342), true peak scanning and all sample-rates by recalculation of the
filter coefficients.
%package devel
Summary: Development files for %name
Group: Development/C++
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_STATIC_LIBS=OFF \
%{?_enable_check:-DENABLE_TESTS=ON}
%nil
%cmake_build
%install
%cmake_install
%check
%cmake_build -t test
%files
%_libdir/%name.so.*
%doc README.md COPYING
%files devel
%_includedir/%_name.h
%_libdir/%name.so
%_pkgconfigdir/%name.pc
%changelog
…
Full changelog you can see here
%def_enable check
Name: lib%_name
Version: 1.2.6
Release: alt1.1
Summary: A library that implements the EBU R 128 standard for loudness normalization
Group: Sound
License: MIT
Url: https://github.com/jiixyj/%name
Source: https://github.com/jiixyj/%name/archive/v%version/%name-%version.tar.gz
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
%{?_enable_check:BuildRequires: libsndfile-devel}
%description
A library that implements the EBU R 128 standard for loudness
normalization.
It implements M, S and I modes, loudness range measurement (EBU - TECH
3342), true peak scanning and all sample-rates by recalculation of the
filter coefficients.
%package devel
Summary: Development files for %name
Group: Development/C++
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_STATIC_LIBS=OFF \
%{?_enable_check:-DENABLE_TESTS=ON}
%nil
%cmake_build
%install
%cmake_install
%check
%cmake_build -t test
%files
%_libdir/%name.so.*
%doc README.md COPYING
%files devel
%_includedir/%_name.h
%_libdir/%name.so
%_pkgconfigdir/%name.pc
%changelog
…
Full changelog you can see here