summaryrefslogtreecommitdiff
path: root/packaging/libheap-monitor.spec
blob: 3eaeeb1d89c856c625be7c57c149b7b39ba0d58f (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
Name: libheap-monitor
Summary: Library for monitoring the heap usage
Version: 0.0.17
Release: 1
Group: HomeTF/Livebox
License: Flora License
Source0: %{name}-%{version}.tar.gz
Source1001: 	libheap-monitor.manifest
BuildRequires: cmake, gettext-tools, coreutils

%description
Monitoring the heap usage to manage them safely.

%package devel
Summary: Files for implementaion of the heap monitor.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
Monitoring the heap usage to manage them safely.(dev)

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

%build
%if 0%{?tizen_build_binary_release_type_eng}
export CFLAGS="${CFLAGS} -DTIZEN_ENGINEER_MODE"
export CXXFLAGS="${CXXFLAGS} -DTIZEN_ENGINEER_MODE"
export FFLAGS="${FFLAGS} -DTIZEN_ENGINEER_MODE"
%endif
%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
CFLAGS+="${CFLAGS} -fvisibility=hidden -Wall -Werror -Winline -fno-builtin-malloc" make %{?jobs:-j%jobs}

%install
%make_install
mkdir -p %{buildroot}/%{_datarootdir}/license

%post

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/*.so*
%{_datarootdir}/license/*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_includedir}/heap-monitor/heap-monitor.h
%{_libdir}/pkgconfig/*.pc