ece82c8ca2e18d650619e1bdf55c04c4071c4b26
[platform/adaptation/ap_samsung/libomxil-e3250-v4l2.git] / packaging / libomxil-e3250-v4l2.spec
1 Name: libomxil-e3250-v4l2
2 Summary: OpenMAX IL for e3250-v4l2
3 Version: 0.0.16
4 License: TO BE FILLED IN
5 Group: Development/Libraries
6 Release: 0
7 ExclusiveArch: %arm
8 Source: %{name}-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires: kernel-headers
12 BuildRequires:  pkgconfig(dlog)
13 BuildRequires: pkgconfig(mm-common)
14
15 %description
16 implementation of OpenMAX IL for e3250-v4l2 for B2
17
18
19 %package devel
20 Summary: OpenMAX IL for e3250-v4l2 (Developement)
21 Group: Development/Libraries
22 Requires: %{name} = %{version}-%{release}
23
24 %description devel
25 development package for libomxil-e3250-v4l2
26
27 %prep
28 %setup -q
29
30 %build
31 ./autogen.sh
32
33 export CFLAGS+="\
34 %ifnarch aarch64
35  -mfpu=neon\
36  -DUSE_NEON\
37 %endif
38  -DUSE_PB\
39  -DUSE_DMA_BUF\
40  -DUSE_H264_PREPEND_SPS_PPS\
41  -DGST_EXT_TIME_ANALYSIS\
42  -DKERNEL_HEADER_MODIFICATION"
43
44 %ifnarch aarch64
45 %configure --prefix=%{_prefix} --disable-static --enable-dlog --enable-exynos3250 --enable-neon
46 %else
47 %configure --prefix=%{_prefix} --disable-static --enable-dlog --enable-exynos3250 --disable-neon
48 %endif
49
50 #make %{?jobs:-j%jobs}
51 make
52
53
54 %install
55 rm -rf %{buildroot}
56 #mkdir -p %{buildroot}/usr/share/license
57 #cp COPYING %{buildroot}/usr/share/license/%{name}
58 %make_install
59
60
61 %post -p /sbin/ldconfig
62
63 %postun -p /sbin/ldconfig
64
65
66 %files
67 %manifest libomxil-e3250-v4l2.manifest
68 %{_libdir}/*.so*
69 %{_libdir}/omx/*.so
70
71
72 %files devel
73 /usr/include/*
74 %{_libdir}/pkgconfig/*
75