23a79cd888
- use O_CLOEXEC in library code. OBS-URL: https://build.opensuse.org/request/show/93380 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsndfile?expand=0&rev=33
138 lines
3.9 KiB
RPMSpec
138 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package libsndfile
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
|
|
|
|
Name: libsndfile
|
|
%define lname libsndfile1
|
|
Version: 1.0.25
|
|
Release: 4
|
|
License: LGPLv2.1+
|
|
Summary: Development/Libraries/C and C++
|
|
Group: System/Libraries
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: flac-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: sqlite-devel
|
|
BuildRequires: speex-devel
|
|
Obsoletes: libsnd
|
|
Provides: libsnd
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libsndfile-64bit
|
|
%endif
|
|
Url: http://www.mega-nerd.com/libsndfile/
|
|
#
|
|
Source: libsndfile-%{version}.tar.gz
|
|
Source2: baselibs.conf
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
|
Patch0: libsndfile-example-fix.diff
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
|
Patch1: libsndfile-paf-zero-division-fix.diff
|
|
Patch2: sndfile-ocloexec.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Libsndfile is a C library for reading and writing sound files, such as
|
|
AIFF, AU, and WAV files, through one standard interface. It can
|
|
currently read and write 8, 16, 24, and 32-bit PCM files as well as
|
|
32-bit floating point WAV files and a number of compressed formats.
|
|
|
|
%package -n %lname
|
|
Summary: A Library to Handle Various Audio File Formats
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
Libsndfile is a C library for reading and writing sound files, such
|
|
as AIFF, AU, and WAV files, through one standard interface. It can
|
|
currently read and write 8, 16, 24, and 32-bit PCM files as well as
|
|
32-bit floating point WAV files and a number of compressed formats.
|
|
|
|
%package devel
|
|
Summary: Development package for the libsndfile library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{lname} = %{version}
|
|
Requires: glibc-devel
|
|
Requires: libstdc++-devel
|
|
Obsoletes: libsndd
|
|
Provides: libsndd
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libsndfile-devel-64bit
|
|
%endif
|
|
#
|
|
|
|
%description devel
|
|
This package contains the files needed to compile programs that use the
|
|
libsndfile library.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1 -p1
|
|
%patch2
|
|
|
|
%build
|
|
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
|
|
autoreconf --force --install
|
|
CFLAGS="%{optflags} %{warn_flags}"
|
|
export CFLAGS
|
|
%configure --disable-silent-rules \
|
|
--disable-static \
|
|
--enable-sqlite \
|
|
--with-pic \
|
|
--enable-experimental
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
# remove unnecessary files
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
# remove programs; built in another spec file
|
|
rm -rf %{buildroot}%{_bindir}
|
|
rm -rf %{buildroot}%{_mandir}/man1
|
|
# remove binaries from examples directory
|
|
make -C examples distclean
|
|
rm -rf %{buildroot}%{_datadir}/doc/libsndfile1-dev
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%check
|
|
pushd src
|
|
make check
|
|
popd
|
|
|
|
%files -n %lname
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libsndfile.so.1*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
%doc doc/*.html doc/*.jpg doc/*.css doc/*.HOWTO
|
|
%{_libdir}/libsndfile.so
|
|
%{_includedir}/sndfile.h
|
|
%{_includedir}/sndfile.hh
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%doc examples
|
|
|
|
%changelog
|