f93fb12bcdf61da9c948641440d1ee9f461beabf
[archive/platform/core/multimedia/libmm-scmirroring-common.git] / packaging / libmm-scmirroring-common.spec
1 Name:       libmm-scmirroring-common
2 Summary:    Multimedia Framework Wifi-Display Common Library
3 Version:    0.0.38
4 Release:    0
5 Group:      System/Libraries
6 License:    Apache License 2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Requires(post):  /sbin/ldconfig
9 Requires(postun):  /sbin/ldconfig
10 BuildRequires:  pkgconfig(mm-common)
11 BuildRequires:  pkgconfig(dlog)
12
13 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
14
15 %description
16
17 %package devel
18 Summary:    Multimedia Framework Wifi-Display Common library (DEV)
19 Group:      Development/Libraries
20 Requires:   %{name} = %{version}-%{release}
21
22 %description devel
23
24 %package factory
25 Summary:    Multimedia Framework Wifi-Display Common Library (Factory)
26 Group:      Development/Libraries
27 Requires:   %{name} = %{version}-%{release}
28
29 %description factory
30
31 %prep
32 %setup -q
33
34 %build
35 export CFLAGS+=" -Wcast-align"
36 export CFLAGS+=" -Wextra -Wno-array-bounds"
37 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
38 export CFLAGS+=" -Wwrite-strings -Wswitch-default"
39 export CFLAGS+=" -Wall -Wcast-qual -Wno-empty-body"
40 #export CFLAGS+=" -Werror"
41
42 ./autogen.sh
43
44 # always enable sdk build. This option should go away
45 # to enable context manager add --enable-context-manager in following line
46 # postfix the '--define "sec_product_feature_mmfw_codec_qc 1"' to gbs compilation command to enable QC MSM specific changes. While building for target SCM will automatically take care of it
47 %configure --disable-static
48
49 # Call make instruction with smp support
50 make %{?jobs:-j%jobs}
51
52 %install
53 rm -rf %{buildroot}
54 %make_install
55 mkdir -p %{buildroot}/%{_datadir}/license
56 cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}%{_datadir}/license/%{name}
57
58 %clean
59 rm -rf %{buildroot}
60
61 %post
62 /sbin/ldconfig
63
64 %postun
65 /sbin/ldconfig
66
67 %files
68 %defattr(-,root,root,-)
69 %{_datadir}/license/%{name}
70 %{_libdir}/*.so.*
71
72 %files devel
73 %defattr(-,root,root,-)
74 %{_libdir}/*.so
75 %{_includedir}/mmf/wfdconfigmessage.h
76 %{_libdir}/pkgconfig/*