fix buffer overflow in case of length of str equal to 255
[platform/core/multimedia/libmm-streamrecorder.git] / packaging / libmm-streamrecorder.spec
1 Name:       libmm-streamrecorder
2 Summary:    Media Stream Recorder library
3 Version:    0.0.8
4 Release:    0
5 Group:      Multimedia/Other
6 License:    Apache-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(mm-log)
12 BuildRequires:  pkgconfig(gstreamer-base-1.0)
13 BuildRequires:  pkgconfig(gstreamer-video-1.0)
14 BuildRequires:  pkgconfig(gstreamer-app-1.0)
15 BuildRequires:  pkgconfig(iniparser)
16
17 %description
18 This library is for making video/audio files with gstreamer
19
20
21 %package devel
22 Summary:    Common recorder development library
23 Group:      libdevel
24 Version:    %{version}
25 Requires:   %{name} = %{version}-%{release}
26
27 %description devel
28 Media Stream Recorder development library
29
30
31 %prep
32 %setup -q
33
34
35 %build
36 #export CFLAGS+=" -DGST_EXT_TIME_ANALYSIS"
37 export CFLAGS+=" -Wall -Wextra -Wno-array-bounds -Wno-empty-body -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow -Wwrite-strings -Wswitch-default -Wno-unused-but-set-parameter -Wno-unused-but-set-variable"
38 export CFLAGS+=" -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
39 ./autogen.sh
40 %configure --disable-static
41 make %{?jobs:-j%jobs}
42
43 %install
44 rm -rf %{buildroot}
45 mkdir -p %{buildroot}/usr/share/license
46 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
47 %make_install
48
49 %clean
50 rm -rf %{buildroot}
51
52 %post
53 /sbin/ldconfig
54
55 %postun -p /sbin/ldconfig
56
57 %files
58 %manifest libmm-streamrecorder.manifest
59 %defattr(-,root,root,-)
60 %{_bindir}/*
61 %{_libdir}/*.so.*
62 %{_datadir}/license/%{name}
63
64
65 %files devel
66 %defattr(-,root,root,-)
67 %{_includedir}/mmf/mm_streamrecorder.h
68 %{_libdir}/pkgconfig/mm-streamrecorder.pc
69 %{_libdir}/*.so