File mingw64-faad2.spec of Package mingw64-faad2

#
# spec file for package mingw64-faad2
#
# Copyright (c) 2015-2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define realname faad2
Name:           mingw64-%{realname}
Version:        2.11.2
Release:        0
Summary:        Freeware Advanced Audio (AAC) Decoder including SBR decoding
License:        GPL-2.0-or-later
URL:            https://github.com/knik0/faad2
Source:         %{realname}-%{version}.tar.zst
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
%{_mingw64_package_header_debug}
BuildArch:      noarch

%description
FAAD2 is a HE, LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder.
FAAD2 includes code for SBR (HE AAC) decoding.

%package -n mingw64-libfaad2
Summary:        Shared library part of faad2
Group:          System/Libraries

%description -n mingw64-libfaad2
FAAD2 is a HE, LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder.
FAAD2 includes code for SBR (HE AAC) decoding.

The shared library part of faad2

%package devel
Summary:        Development files for the faad2 library
Group:          Development/Libraries/C and C++
Requires:       mingw64-libfaad2 = %{version}

%description devel
This subpackage contains libraries and header files for developing
applications that want to make use of libfaad2.

%{_mingw64_debug_package}

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{_mingw64_cmake} -DFAAD_BUILD_CLI=OFF
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}
rm %{buildroot}/%{_mingw64_mandir}/man1/faad.1

%files -n mingw64-libfaad2
%{_mingw64_bindir}/libfaad-2.dll
%{_mingw64_bindir}/libfaad_drm-2.dll

%files devel
%license COPYING
%doc ChangeLog README
%{_mingw64_includedir}/faad.h
%{_mingw64_includedir}/neaacdec.h
%{_mingw64_libdir}/libfaad.dll.a
%{_mingw64_libdir}/libfaad_drm.dll.a
%{_mingw64_libdir}/pkgconfig/faad2.pc

%changelog
openSUSE Build Service is sponsored by