blob: 98faa79692ccfe78feb69e9c3a708dff37b0618f (
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
77
|
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
Version: 0.1.14
Release: 0
Group: Multimedia/Framework
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(capi-media-tool)
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(opencv)
BuildRequires: pkgconfig(zbar)
# Change to the pkgconfig(zint) after zint package refactor
BuildRequires: zint
BuildRequires: zint-devel
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: dlogutil
BuildRequires: libjpeg-turbo
BuildRequires: libjpeg-turbo-devel
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libswscale)
Requires(post): /sbin/ldconfig
%description
Media Vision library for Tizen Native API. Includes barcode detecting and generating modules.
%package devel
Summary: Multimedia Vision Library (DEV)
Group: Multimedia/Framework
Requires: %{name} = %{version}-%{release}
%description devel
Media Vision library for Tizen Native API (DEV). Includes barcode detecting and generating modules.
%prep
%setup -q
%build
%if 0%{?sec_build_binary_debug_enable}
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
%endif
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/license/
mkdir -p %{buildroot}/usr/share/config/%{name}
cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
cp media-vision-config.json %{buildroot}/usr/share/config/%{name}/
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest capi-media-vision.manifest
%{_datadir}/license/%{name}
%{_datadir}/config/%{name}/media-vision-config.json
%{_libdir}/libcapi-media-vision.so.*
%{_libdir}/libmv*.so
%files devel
%{_datadir}/config/%{name}/media-vision-config.json
%{_includedir}/media/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib%{name}.so
/opt/usr/devel/media/testsuites/*
|