summaryrefslogtreecommitdiff
path: root/proto-meta-Tizen_generic/specfile-initial/libmm-fileinfo/packaging/libmm-fileinfo.spec
blob: 6a3139c29017d40df970d5d0ca36d6c7d5a6fe00 (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
78
79
80
81
82
83
Name:       libmm-fileinfo
Summary:    Media Fileinfo
Version:    0.6.0
Release:    0
Group:      System/Libraries
License:    Apache-2.0
Source0:    %{name}-%{version}.tar.gz
Source1001:    libmm-fileinfo.manifest
BuildRequires: pkgconfig
BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(mm-log)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libavformat)

%define use_drm 0

%if %{use_drm}
BuildRequires: libss-client-devel
BuildRequires: pkgconfig(drm-client)
%endif

%description
Multimedia Framework FileInfo Library

%package devel
Summary:    Media Fileinfo
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
Multimedia Framework FileInfo Library (development files)

%prep
%setup -q
cp %{SOURCE1001} .

%build
CFLAGS="${CFLAGS} -D_MM_PROJECT_FLOATER -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
export CFLAGS

%reconfigure \
    --disable-testmode \
    --disable-dump \
    --enable-dyn \
    --disable-iommap \
    --disable-gtk \
%if %{use_drm}
    --enable-drm
%else
    --disable-drm
%endif

%__make

%install
%make_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%{_bindir}/memtrace_reader
%{_bindir}/mm_file_test
%{_libdir}/libmmffile.so.*
%{_libdir}/libmmfile_codecs.so.*
%{_libdir}/libmmfile_formats.so.*
%{_libdir}/libmmfile_utils.so.*
%{_libdir}/libmmffile.so
%{_libdir}/libmmfile_codecs.so
%{_libdir}/libmmfile_formats.so
%{_libdir}/libmmfile_utils.so
%license LICENSE.APLv2.0

%files devel
%manifest %{name}.manifest
%{_includedir}/mmf/mm_file.h
%{_libdir}/pkgconfig/mm-fileinfo.pc