fba65ef59f2f6ab8fb3035e238b4417b1b20eb1e
[platform/adaptation/spreadtrum/audio-hal-sc7727.git] / packaging / audio-hal-sc7727.spec
1 Name:       audio-hal-sc7727
2 Summary:    TIZEN Audio HAL for SC7727
3 Version:    0.1.5
4 Release:    0
5 Group:      System/Libraries
6 License:    Apache-2.0
7 URL:        http://tizen.org
8 Source0:    audio-hal-sc7727-%{version}.tar.gz
9 BuildRequires: pkgconfig(vconf)
10 BuildRequires: pkgconfig(iniparser)
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(alsa)
13 #BuildRequires: pkgconfig(tinyalsa)
14 BuildRequires: pkgconfig(expat)
15 Provides: libtizen-audio.so
16
17 %description
18 TIZEN Audio HAL for SC7727
19
20 %prep
21 %setup -q -n %{name}-%{version}
22
23 %build
24 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
25 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
26 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
27
28 export USE_TINYALSA="0"
29
30 %autogen
31 %configure
32
33 make %{?jobs:-j%jobs}
34
35 %install
36 rm -rf %{buildroot}
37 mkdir -p %{buildroot}%{_datadir}/license
38 cp LICENSE.Apache-2.0 %{buildroot}%{_datadir}/license/%{name}
39 %make_install
40
41 %post
42 /sbin/ldconfig
43
44 %postun
45 /sbin/ldconfig
46
47 %files
48 %manifest audio-hal-sc7727.manifest
49 %defattr(-,root,root,-)
50 %{_libdir}/libtizen-audio.so
51 %{_datadir}/license/%{name}