File mingw64-speex.spec of Package mingw64-speex
#
# spec file for package mingw64-speex
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 speex
Name: mingw64-%{realname}
Version: 1.2.1
Release: 0
Summary: An Open Source, Patent Free Speech Codec
License: BSD-3-Clause
Group: System/Libraries
URL: https://www.speex.org/
Source0: https://downloads.xiph.org/releases/speex/%{realname}-%{version}.tar.gz
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libogg-devel
#BuildRequires: mingw64-speexdsp-devel >= 1.2.1
%_mingw64_package_header_debug
BuildArch: noarch
%description
Speex is an Open Source/Free Software patent-free audio compression format designed for speech. The Speex Project aims
to lower the barrier of entry for voice applications by providing a free alternative to expensive proprietary speech
codecs. Moreover, Speex is well-adapted to Internet applications and provides useful features that are not present in
most other codecs. Finally, Speex is part of the GNU Project and is available under the revised BSD license.
%package -n mingw64-libspeex1
Summary: Speex: A Free Codec For Free Speech
Group: System/Libraries
%description -n mingw64-libspeex1
This package contains runtime files.
%package -n mingw64-libspeex-devel
Summary: Speex: A Free Codec For Free Speech (development files)
Group: Development/Libraries/C and C++
%description -n mingw64-libspeex-devel
This package contains all necessary include files and libraries needed to develop applications that require these.
%_mingw64_debug_package
%prep
%autosetup -n %{realname}-%{version}
%build
%{_mingw64_configure} \
--enable-sse \
--enable-shared \
--disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%{_mingw64_bindir}/speexenc.exe
%{_mingw64_bindir}/speexdec.exe
%files -n mingw64-libspeex1
%{_mingw64_bindir}/libspeex-1.dll
%files -n mingw64-libspeex-devel
%{_mingw64_datadir}/aclocal/speex.m4
%{_mingw64_datadir}/doc/speex/
%{_mingw64_mandir}/man1/speex*
%{_mingw64_includedir}/speex/
%{_mingw64_libdir}/libspeex.dll.a
%{_mingw64_libdir}/pkgconfig/speex.pc
%changelog