blob: d85cf55483d3e13a00c1343db66b902707968458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
Name: libmm-radio
Summary: Multimedia Framework Radio Library
Version: 0.2.42
Release: 0
Group: System/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: libmm-radio.manifest
BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(mm-session)
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(capi-media-sound-manager)
%ifnarch %{arm}
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
%endif
BuildRequires: pkgconfig(mm-resource-manager)
%description
Description: Multimedia Framework Radio Library
%package devel
Summary: Multimedia Framework Radio Library (DEV)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Description: Multimedia Framework Radio Library (DEV)
%prep
%setup -q
cp %{SOURCE1001} .
%build
./autogen.sh
export CFLAGS+=" %{optflags} -Wall"
%ifarch %{arm}
export CFLAGS+=" -DTIZEN_FEATURE_RADIO_HAL "
export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
%endif
%configure \
%ifnarch %{arm}
--enable-emulator \
%endif
--enable-sound-vstream \
--disable-static --prefix=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/libmmfradio.so.*
%license LICENSE.Apache-2.0
%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/libmmfradio.so
%{_libdir}/pkgconfig/mm-radio.pc
%{_includedir}/mmf/mm_radio.h
|