2.0 init
[external/libsndfile.git] / packaging / libsndfile.spec
1 #sbs-git:slp/pkgs/l/libsndfile libsndfile 1.0.21 82073f8ea0cf1e3791fea9362087d4f61db9b9c8
2
3 Name:       libsndfile
4 Summary:    Library for reading and writing sound files
5 Version: 1.0.21
6 Release:    1
7 Group:      System/Libraries
8 License:    LGPLv2+
9 URL:        http://www.mega-nerd.com/libsndfile/
10 Source0:    http://www.mega-nerd.com/libsndfile/libsndfile-%{version}.tar.gz
11 Requires(post): /sbin/ldconfig
12 Requires(postun): /sbin/ldconfig
13 BuildRequires:  pkgconfig(alsa)
14 #BuildRequires:  pkgconfig(ogg)
15 BuildRequires:  pkgconfig(vorbis)
16
17
18 %description
19 libsndfile is a C library for reading and writing sound files such as
20 AIFF, AU, WAV, and others through one standard interface. It can
21 currently read/write 8, 16, 24 and 32-bit PCM files as well as 32 and
22 64-bit floating point WAV files and a number of compressed formats. It
23 compiles and runs on *nix, MacOS, and Win32.
24
25
26
27 %package devel
28 Summary:    Development files for libsndfile
29 Group:      Development/Libraries
30 Requires:   %{name} = %{version}-%{release}
31
32 %description devel
33 libsndfile is a C library for reading and writing sound files such as
34 AIFF, AU, WAV, and others through one standard interface.
35 This package contains files needed to develop with libsndfile.
36
37
38
39 %prep
40 %setup -q -n %{name}-%{version}
41
42
43 %build
44
45 %configure --disable-static \
46     --disable-dependency-tracking
47
48 make %{?jobs:-j%jobs}
49
50 %install
51 rm -rf %{buildroot}
52 %make_install
53
54
55
56
57 %post -p /sbin/ldconfig
58
59 %postun -p /sbin/ldconfig
60
61
62
63 %docs_package
64
65
66 %files
67 %defattr(-,root,root,-)
68 %doc COPYING 
69 %{_bindir}/*
70 %{_libdir}/%{name}.so.*
71
72
73 %files devel
74 %defattr(-,root,root,-)
75 %{_includedir}/sndfile.h
76 %{_includedir}/sndfile.hh
77 %{_libdir}/%{name}.so
78 %{_libdir}/pkgconfig/sndfile.pc
79 /usr/share/doc/libsndfile1-dev
80