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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
Name: mm-hal-interface
Summary: Multimedia HAL Interface
Version: 0.0.12
Release: 1
Group: Multimedia/Development
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: gtest-devel
%description
Multimedia framework hardware abstraction layer interface package.
%package camera
Summary: Multimedia framework hardware abstraction layer interface library for camera
Group: Multimedia/Libraries
Version: %{version}
%description camera
Multimedia framework hardware abstraction layer interface library for camera.
%package radio
Summary: Multimedia framework hardware abstraction layer interface library for radio
Group: Multimedia/Libraries
Version: %{version}
%description radio
Multimedia framework hardware abstraction layer interface library for radio.
%package devel
Summary: Multimedia framework hardware abstraction layer interface development package
Group: libdevel
Version: %{version}
Requires: %{name}-camera = %{version}-%{release}
Requires: %{name}-radio = %{version}-%{release}
%description devel
Multimedia framework hardware abstraction layer interface development package.
%package -n camera-haltests
Summary: gtest for camera HAL APIs
Group: Development/Tools
Version: %{version}
%description -n camera-haltests
gtest for camera HAL APIs.
%package -n radio-haltests
Summary: gtest for radio HAL APIs
Group: Development/Tools
Version: %{version}
%description -n radio-haltests
gtest for radio HAL APIs.
%prep
%setup -q
%build
export CFLAGS+=" -D_LARGEFILE64_SOURCE"
export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
./autogen.sh
%configure --disable-static
make %{?jobs:-j%jobs}
%install
install -d -m 755 %{buildroot}%{_includedir}
install -m 644 include/audio/*.h %{buildroot}%{_includedir}
install -m 644 include/camera/*.h %{buildroot}%{_includedir}
install -m 644 include/radio/*.h %{buildroot}%{_includedir}
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n camera-haltests -p /sbin/ldconfig
%postun -n camera-haltests -p /sbin/ldconfig
%post -n radio-haltests -p /sbin/ldconfig
%postun -n radio-haltests -p /sbin/ldconfig
%files camera
%manifest mm-hal-interface-camera.manifest
%license LICENSE.APLv2
%defattr(-,root,root,-)
%{_libdir}/libcamera*.so.*
%files radio
%manifest mm-hal-interface-radio.manifest
%license LICENSE.APLv2
%defattr(-,root,root,-)
%{_libdir}/libradio*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%files -n camera-haltests
%manifest mm-haltests.manifest
%license LICENSE.APLv2
%defattr(-,root,root,-)
%{_bindir}/camera_*
%files -n radio-haltests
%manifest mm-haltests.manifest
%license LICENSE.APLv2
%defattr(-,root,root,-)
%{_bindir}/radio_*
|