Fix issue detected by static analysis tool
[platform/core/uifw/isf.git] / isf-control.spec.in
1 %define nam             isf-control
2 %define ver             0.0.1
3 %define rel             1
4
5 # Something's not quite right with libtool....
6 %define __libtoolize    echo
7
8 Summary:        Tizen platform ISF control library
9 Name:           %{nam}
10 Version:        %{ver}
11 Release:        %{rel}
12 License:        LGPL
13 Group:          System Environment/Libraries
14 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
15
16 Source0:        %{name}-%{version}.tar.gz
17 #NoSource: 0
18
19 PreReq:         /sbin/ldconfig, /bin/sh
20
21 BuildRequires:  pkgconfig >= 0.12
22
23 %description
24 ISF-CONTROL provides the functions of isf_control API.
25
26 %package devel
27 Summary:        Tizen platform ISF control library
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}
30 Requires:       pkgconfig >= 0.12
31
32 %description devel
33 The isf-control-devel package includes the static libraries and header files
34 for the isf-control package.
35
36 #--------------------------------------------------
37
38 %prep
39
40 %setup -n %{name}-%{version}
41
42 %build
43 CFLAGS="-O3" CXXFLAGS="-O3" \
44 %configure \
45
46 make
47
48 %install
49 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
50
51 make DESTDIR=${RPM_BUILD_ROOT} install
52
53 rm -f ${RPM_BUILD_ROOT}/%{_libdir}/isf-control/*/*/*.{a,la}
54
55 %clean
56 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
57
58 %post
59 /sbin/ldconfig
60
61 %postun
62 /sbin/ldconfig
63
64
65 %files
66 %defattr(-, root, root)
67 %dir %{_sysconfdir}/isf-control
68 %{_bindir}/isf-control
69 %{_libdir}/isf-control.so.*
70
71 %files devel
72 %defattr(-, root, root)
73 %{_libdir}/libisf-control.so
74 %{_libdir}/lib*.a
75 %{_libdir}/lib*.la
76 %{_libdir}/pkgconfig/*.pc
77 %{_includedir}/isf-control