File mingw64-speexdsp.spec of Package mingw64-speexdsp
#
# spec file for package mingw64-speexdsp
#
# Copyright (c) 2024, 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 speexdsp
%define sover 1
%define libname mingw64-lib%{realname}%{sover}
Name: mingw64-%{realname}
Version: 1.2.1
Release: 0
Summary: Patent free speech codec
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://www.speex.org/
#Git-Clone: https://github.com/xiph/speexdsp
Source0: https://github.com/xiph/speexdsp/archive/refs/tags/SpeexDSP-%{version}.tar.gz
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: mingw64-libogg-devel
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem
%_mingw64_package_header_debug
BuildArch: noarch
%description
Speex is a patent free audio codec designed especially for voice
(unlike Vorbis which targets general audio) signals and providing good
narrowband and wideband quality. This project aims to be complementary
to the Vorbis codec.
%package -n %{libname}
Summary: Patent-free speech codec
%description -n %{libname}
Speex is a patent free audio codec designed especially for voice
(unlike Vorbis which targets general audio) signals and providing good
narrowband and wideband quality. This project aims to be complementary
to the Vorbis codec.
%package -n mingw64-%{realname}-devel
Summary: Development package for SpeeX
Group: Development/Libraries/C and C++
License: BSD-3-Clause AND GFDL-1.1-or-later
Requires: %{libname} = %{version}
%description -n mingw64-%{realname}-devel
This package contains the files needed to compile programs that use the
SpeeX library.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-SpeexDSP-%{version}
%build
autoreconf -fiv
%{_mingw64_configure}
%make_build
%install
%{_mingw64_make_install}
rm %{buildroot}%{_mingw64_libdir}/libspeexdsp.a
rm -rf %{buildroot}%{_mingw64_docdir}/speexdsp
%files -n %{libname}
%{_mingw64_bindir}/libspeexdsp-1.dll
%files -n mingw64-%{realname}-devel
%license COPYING
%{_mingw64_includedir}/speex
%{_mingw64_libdir}/libspeexdsp.dll.a
%{_mingw64_libdir}/pkgconfig/speexdsp.pc
%changelog