speexdsp/speexdsp.spec

96 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package speexdsp
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define sover 1
%define libname lib%{name}%{sover}
Name: speexdsp
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
Source2: baselibs.conf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: pkgconfig(ogg)
Conflicts: speex <= 1.1.999_1.2rc1
%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
Group: System/Libraries
%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 devel
Summary: Development package for SpeeX
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Conflicts: pkgconfig(speex) <= 1.1.999_1.2rc1
License: BSD-3-Clause AND GFDL-1.1-or-later
%description devel
This package contains the files needed to compile programs that use the
SpeeX library.
%prep
%autosetup -n speexdsp-SpeexDSP-%{version}
%build
./autogen.sh
# Disable NEON since it doesn't check for availability of the NEON
# extension at runtime
%configure \
--disable-static \
--disable-neon
%make_build
%install
%make_install
# remove unneeded *.la files
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYING
%{_libdir}/libspeexdsp.so.%{sover}*
%files devel
%dir %{_datadir}/doc/%{name}
%doc %{_datadir}/doc/%{name}/manual.pdf
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%changelog