1 %define __spec_check_pre exit 0
6 Summary: C library for reading and writing sound files
7 Group: Multimedia/Audio
11 BuildRequires: pkg-config
12 BuildRequires: autogen
13 BuildRequires: pkgconfig(ogg)
14 BuildRequires: pkgconfig(vorbis)
15 BuildRequires: pkgconfig(opus)
16 Url: https://github.com/libsndfile/libsndfile
17 Source: libsndfile-%{version}.tar.gz
18 Source1001: libsndfile.manifest
21 Libsndfile is a C library for reading and writing sound files, such as
22 AIFF, AU, and WAV files, through one standard interface. It can
23 currently read and write 8, 16, 24, and 32-bit PCM files as well as
24 32-bit floating point WAV files and a number of compressed formats.
28 Summary: Development package for the libsndfile library
29 Group: Development/Libraries
30 Requires: %{name} = %{version}
32 Requires: libstdc++-devel
35 This package contains the files needed to compile programs that use the
43 %define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
44 autoreconf --force --install
45 CFLAGS="%{optflags} %{warn_flags} -D__TIZEN__"
49 %configure --disable-static \
50 --disable-dependency-tracking \
51 --disable-sqlite --disable-alsa
62 # remove programs; built in another spec file
63 rm -rf %{buildroot}%{_bindir}
64 rm -rf %{buildroot}%{_mandir}/man1
65 # remove binaries from examples directory
66 rm -rf %{buildroot}%{_datadir}/doc/libsndfile
68 %post -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
73 %manifest %{name}.manifest
74 %defattr(-, root, root)
76 %{_libdir}/libsndfile.so.1*
79 %manifest %{name}.manifest
80 %defattr(-, root, root)
81 %{_libdir}/libsndfile.so
82 %{_includedir}/sndfile.h
83 %{_includedir}/sndfile.hh
84 %{_libdir}/pkgconfig/*.pc