summaryrefslogtreecommitdiff
path: root/packaging/mm-hal-interface.spec
blob: 07d89bfce9294ac832fc42c7e68498925839bddf (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:       mm-hal-interface
Summary:    Multimedia HAL Interface
Version:    0.0.9
Release:    0
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 devel
Summary:    Multimedia framework hardware abstraction layer interface development package
Group:      libdevel
Version:    %{version}
Requires:   %{name} = %{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.


%prep
%setup -q

%build
export CFLAGS+=" -D_LARGEFILE64_SOURCE"
./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

%files
%manifest mm-hal-interface.manifest
%license LICENSE.APLv2
%defattr(-,root,root,-)
%{_libdir}/*.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_*