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)
17 Url: https://github.com/libsndfile/libsndfile
18 Source: libsndfile-%{version}.tar.gz
19 Source1001: libsndfile.manifest
22 Libsndfile is a C library for reading and writing sound files, such as
23 AIFF, AU, and WAV files, through one standard interface. It can
24 currently read and write 8, 16, 24, and 32-bit PCM files as well as
25 32-bit floating point WAV files and a number of compressed formats.
29 Summary: Development package for the libsndfile library
30 Group: Development/Libraries
31 Requires: %{name} = %{version}
33 Requires: libstdc++-devel
36 This package contains the files needed to compile programs that use the
44 %define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
45 autoreconf --force --install
46 CFLAGS="%{optflags} %{warn_flags} -D__TIZEN__"
50 %configure --disable-static \
51 --disable-dependency-tracking \
52 --disable-sqlite --disable-alsa
63 # remove programs; built in another spec file
64 rm -rf %{buildroot}%{_bindir}
65 rm -rf %{buildroot}%{_mandir}/man1
66 # remove binaries from examples directory
67 rm -rf %{buildroot}%{_datadir}/doc/libsndfile
69 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
74 %manifest %{name}.manifest
75 %defattr(-, root, root)
77 %{_libdir}/libsndfile.so.1*
80 %manifest %{name}.manifest
81 %defattr(-, root, root)
82 %{_libdir}/libsndfile.so
83 %{_includedir}/sndfile.h
84 %{_includedir}/sndfile.hh
85 %{_libdir}/pkgconfig/*.pc