summaryrefslogtreecommitdiff
path: root/isf-control.spec.in
blob: bc645ad79600990985aed5035dd65f6a1ede5d0a (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
%define nam             isf-control
%define ver             0.0.1
%define rel             1

# Something's not quite right with libtool....
%define __libtoolize    echo

Summary:        Tizen platform ISF control library
Name:           %{nam}
Version:        %{ver}
Release:        %{rel}
License:        LGPL
Group:          System Environment/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-root

Source0:        %{name}-%{version}.tar.gz
#NoSource: 0

PreReq:         /sbin/ldconfig, /bin/sh

BuildRequires:  pkgconfig >= 0.12

%description
ISF-CONTROL provides the functions of isf_control API.

%package devel
Summary:        Tizen platform ISF control library
Group:          Development/Libraries
Requires:       %{name} = %{version}
Requires:       pkgconfig >= 0.12

%description devel
The isf-control-devel package includes the static libraries and header files
for the isf-control package.

#--------------------------------------------------

%prep

%setup -n %{name}-%{version}

%build
CFLAGS="-O3" CXXFLAGS="-O3" \
%configure \

make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

make DESTDIR=${RPM_BUILD_ROOT} install

rm -f ${RPM_BUILD_ROOT}/%{_libdir}/isf-control/*/*/*.{a,la}

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig


%files
%defattr(-, root, root)
%dir %{_sysconfdir}/isf-control
%{_bindir}/isf-control
%{_libdir}/isf-control.so.*

%files devel
%defattr(-, root, root)
%{_libdir}/libisf-control.so
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/pkgconfig/*.pc
%{_includedir}/isf-control