tizen 2.3.1 release
[external/alsa-lib.git] / packaging / alsa-lib-1.0.25.spec
1 Name:       alsa-lib-1.0.25
2 Summary:    The Advanced Linux Sound Architecture (ALSA) library
3 Version:    1.0.25
4 Release:    5
5 Group:      System/Libraries
6 License:    LGPL-2.1+
7 URL:        http://www.alsa-project.org/
8 Source0:    %{name}-%{version}.tar.gz
9
10
11 %description
12 The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
13 functionality to the Linux operating system.
14
15 This package includes the ALSA runtime libraries to simplify application
16 programming and provide higher level functionality as well as support for
17 the older OSS API, providing binary compatibility for most OSS programs.
18
19
20
21 %package -n libasound-1.0.25
22 Summary:    ALSA Library package for multimedia framework middleware package
23 Group:      Development/Libraries
24 Requires(post): /sbin/ldconfig
25 Requires(postun): /sbin/ldconfig
26
27 %description -n libasound-1.0.25
28 ALSA Library package for multimedia framework middleware package
29
30
31 %package -n libasound-1.0.25-devel
32 Summary:    ALSA Library package for multimedia framework middleware package
33 Group:      Development/Libraries
34 Requires:   libasound-1.0.25
35
36 %description -n libasound-1.0.25-devel
37 ALSA Library package for multimedia framework middleware development package
38
39
40 %prep
41 %setup -q
42
43
44 %build
45 export CFLAGS+=" -fPIC"
46 export LDFLAGS+=" -Wl,--warn-unresolved-symbols -Wl,--hash-style=both -Wl,--as-needed"
47 chmod +x autogen.sh
48
49 %autogen --disable-static
50 %configure --disable-static \
51 %ifarch %{arm}
52     --with-alsa-devdir=/dev/snd \
53 %endif
54 %ifarch %{arm}
55     --disable-alisp \
56 %endif
57 %ifarch %{arm}
58     --disable-seq \
59 %endif
60 %ifarch %{arm}
61     --disable-rawmidi \
62 %endif
63 %ifarch %{arm}
64     --disable-python \
65 %endif
66 %ifarch %{arm}
67     --with-gnu-ld \
68 %endif
69 %ifarch %{arm}
70     --with-pcm-plugins=rate,linear,plug,dmix,dsnoop,asym,mmap,ioplug,null
71 %endif
72
73 make %{?jobs:-j%jobs}
74
75 %install
76 rm -rf %{buildroot}
77 mkdir -p %{buildroot}/usr/share/license
78 cp COPYING %{buildroot}/usr/share/license/%{name}
79 %make_install
80
81 rm -f %{buildroot}/%{_bindir}/aserver
82
83 %post -n libasound-1.0.25 -p /sbin/ldconfig
84
85 %postun -n libasound-1.0.25 -p /sbin/ldconfig
86
87 %files
88 %manifest alsa-lib.manifest
89 %defattr(-,root,root,-)
90 %{_datadir}/license/%{name}
91
92 %files -n libasound-1.0.25
93 %defattr(-,root,root,-)
94 %{_libdir}/lib*.so.*
95 %{_libdir}/alsa-lib/smixer/*.so
96 %{_datadir}/alsa/*
97
98 %files -n libasound-1.0.25-devel
99 %defattr(-,root,root,-)
100 %{_includedir}/*
101 %{_libdir}/lib*.so
102 %{_libdir}/pkgconfig/*
103 %{_datadir}/aclocal