Пакет libebur128: Specfile

%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
* Tue May 11 2021 Yuri N. Sedunov <aris@altlinux.org> 1.2.6-alt1.1
- rebuild with new cmake macros

* Sun Feb 14 2021 Yuri N. Sedunov <aris@altlinux.org> 1.2.6-alt1
- 1.2.6

* Wed Feb 03 2021 Yuri N. Sedunov <aris@altlinux.org> 1.2.5-alt1
- 1.2.5

* Sun Jul 29 2018 Yuri N. Sedunov <aris@altlinux.org> 1.2.4-alt1
- first build for Sisyphus