blob: 526bb4765bc4ab963e43c2218f39b627752276d0 (
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
|
Name: capi-ui-inputmethod-manager
Summary: Input Method Manager Library
Version: 0.0.2
Release: 1
Group: Graphics & UI Framework/Input
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(isf)
BuildRequires: pkgconfig(libsmack)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
Input Method Manager Library
%package devel
Summary: Input Method Manager Library (Development)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Input Method Manager Library (Development)
%prep
%setup -q
%build
export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -fPIC -fvisibility=hidden"
export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -fPIC -fvisibility=hidden"
export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -fPIC -fvisibility=hidden"
rm -rf CMakeFiles
rm -rf CMakeCache.txt
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIB_INSTALL_DIR:PATH=%{_libdir}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
cp LICENSE %{buildroot}/usr/share/license/%{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest capi-ui-inputmethod-manager.manifest
%{_libdir}/libcapi-ui-inputmethod-manager.so*
/usr/share/license/capi-ui-inputmethod-manager
%files devel
%{_includedir}/inputmethod_manager*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libcapi-ui-inputmethod-manager.so
|