speexdsp/speexdsp.spec

92 lines
2.8 KiB
RPMSpec

#
# spec file for package speexdsp
#
# Copyright (c) 2015 SUSE LINUX 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 package_version 1.2rc3
Name: speexdsp
Version: 1.1.999_%{package_version}
Release: 0
Summary: An Open Source, Patent Free Speech Codec
License: BSD-3-Clause
Group: System/Libraries
Url: http://www.speex.org/
Source: http://downloads.xiph.org/releases/speex/%{name}-%{package_version}.tar.gz
Source2: baselibs.conf
BuildRequires: pkg-config
BuildRequires: pkgconfig(ogg)
Conflicts: speex <= 1.1.999_1.2rc1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 libspeexdsp1
Summary: An Open Source, Patent Free Speech Codec Library
Group: System/Libraries
%description -n libspeexdsp1
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: libspeexdsp1 = %{version}
Conflicts: speex-devel <= 1.1.999_1.2rc1
%description devel
This package contains the files needed to compile programs that use the
SpeeX library.
%prep
%setup -q -n %{name}-%{package_version}
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
# remove unneeded *.a and *.la files
rm -f %{buildroot}%{_libdir}/*.a
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libspeexdsp1 -p /sbin/ldconfig
%postun -n libspeexdsp1 -p /sbin/ldconfig
%files -n libspeexdsp1
%defattr(-,root,root)
%{_libdir}/libspeexdsp.so.*
%files devel
%defattr(-,root,root)
%dir %{_datadir}/doc/%{name}
%doc %{_datadir}/doc/%{name}/manual.pdf
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%changelog