2007-01-16 00:23:17 +01:00
|
|
|
#
|
2011-03-24 09:15:44 +01:00
|
|
|
# spec file for package libsndfile
|
2007-01-16 00:23:17 +01:00
|
|
|
#
|
2011-03-24 09:15:44 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:17 +01:00
|
|
|
#
|
2008-10-14 19:05:25 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:23:17 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-10 18:49:35 +01:00
|
|
|
|
2007-01-16 00:23:17 +01:00
|
|
|
Name: libsndfile
|
2009-05-15 22:09:01 +02:00
|
|
|
BuildRequires: alsa-devel flac-devel gcc-c++ libvorbis-devel pkg-config sqlite-devel
|
2007-01-16 00:23:17 +01:00
|
|
|
Summary: A Library to Handle Various Audio File Formats
|
2011-07-18 17:31:33 +02:00
|
|
|
Version: 1.0.25
|
2011-07-29 09:09:30 +02:00
|
|
|
Release: 2
|
2010-01-07 20:25:39 +01:00
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:23:17 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Obsoletes: libsnd
|
|
|
|
Provides: libsnd
|
2009-01-08 18:44:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libsndfile-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2011-07-18 17:31:33 +02:00
|
|
|
Source: libsndfile-%{version}.tar.gz
|
2010-01-07 20:25:39 +01:00
|
|
|
Source2: baselibs.conf
|
2009-02-09 12:54:48 +01:00
|
|
|
Patch: libsndfile-example-fix.diff
|
2007-09-25 21:12:55 +02:00
|
|
|
Url: http://www.mega-nerd.com/libsndfile/
|
2007-01-16 00:23:17 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Erik de Castro Lopo <erikd@mega-nerd.com>
|
|
|
|
|
|
|
|
%package devel
|
2010-01-07 20:25:39 +01:00
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:23:17 +01:00
|
|
|
Summary: Development package for the libsndfile library
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-03-10 18:49:35 +01:00
|
|
|
Requires: %{name} = %{version} glibc-devel libstdc++-devel
|
2007-01-16 00:23:17 +01:00
|
|
|
Obsoletes: libsndd
|
|
|
|
Provides: libsndd
|
2009-01-08 18:44:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libsndfile-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:23:17 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the files needed to compile programs that use the
|
|
|
|
libsndfile library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Erik de Castro Lopo <erikd@mega-nerd.com>
|
|
|
|
|
|
|
|
%prep
|
2008-03-10 18:49:35 +01:00
|
|
|
%setup -q
|
2007-04-13 16:39:11 +02:00
|
|
|
%patch
|
2007-01-16 00:23:17 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
|
2009-02-09 12:54:48 +01:00
|
|
|
# autoreconf --force --install
|
2011-07-29 02:45:15 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
|
2007-01-16 00:23:17 +01:00
|
|
|
export CFLAGS
|
2011-07-29 02:45:15 +02:00
|
|
|
%configure --disable-silent-rules \
|
2008-03-10 18:49:35 +01:00
|
|
|
--disable-static \
|
2011-07-29 02:45:15 +02:00
|
|
|
--enable-sqlite \
|
2008-03-10 18:49:35 +01:00
|
|
|
--with-pic
|
2010-01-07 20:25:39 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:23:17 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2007-04-17 00:38:35 +02:00
|
|
|
# remove unnecessary files
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2009-04-24 17:14:03 +02:00
|
|
|
# remove programs; built in another spec file
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man1
|
2007-01-16 00:23:17 +01:00
|
|
|
# remove binaries from examples directory
|
|
|
|
make -C examples distclean
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libsndfile1-dev
|
|
|
|
|
2008-03-10 18:49:35 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:23:17 +01:00
|
|
|
|
2008-03-10 18:49:35 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:23:17 +01:00
|
|
|
|
|
|
|
%clean
|
2008-03-10 18:49:35 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-16 00:23:17 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libsndfile.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2009-05-15 22:09:01 +02:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
2007-04-17 00:38:35 +02:00
|
|
|
%doc doc/*.html doc/*.jpg doc/*.css doc/*.HOWTO
|
2007-01-16 00:23:17 +01:00
|
|
|
%{_libdir}/libsndfile.so
|
|
|
|
%{_includedir}/sndfile.h
|
|
|
|
%{_includedir}/sndfile.hh
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%doc examples
|
|
|
|
|
2007-04-13 16:39:11 +02:00
|
|
|
%changelog
|