1d94d17ce61183ae1a6603c6c9cfc9eea6c20406
[platform/core/uifw/isf.git] / packaging / isf.spec
1 %define _usrdir /usr
2 %define _ugdir  %{_usrdir}/ug
3
4 Name:       isf
5 Summary:    Input Service Framework
6 Version:    2.4.6329
7 Release:    1
8 Group:      System Environment/Libraries
9 License:    LGPL
10 Source0:    %{name}-%{version}.tar.gz
11 Source1:    scim.service
12 BuildRequires:  edje-bin
13 BuildRequires:  embryo-bin
14 BuildRequires:  gettext-tools
15 BuildRequires:  pkgconfig(appcore-efl)
16 BuildRequires:  pkgconfig(libprivilege-control)
17 BuildRequires:  pkgconfig(elementary)
18 BuildRequires:  pkgconfig(utilX)
19 BuildRequires:  pkgconfig(vconf)
20 BuildRequires:  pkgconfig(ui-gadget-1)
21 BuildRequires:  pkgconfig(ecore)
22 BuildRequires:  pkgconfig(edje)
23 BuildRequires:  pkgconfig(x11)
24 BuildRequires:  pkgconfig(notification)
25 BuildRequires:  pkgconfig(dlog)
26 Requires(post): /sbin/ldconfig /usr/bin/vconftool e17 net-config libmm-sound
27 Requires(postun): /sbin/ldconfig
28
29 %description
30 Input Service Framewok (ISF) is an input method (IM) platform, and it has been derived from SCIM.
31
32
33 %package devel
34 Summary:    ISF header files
35 Group:      Development/Libraries
36 Requires:   %{name} = %{version}-%{release}
37
38 %description devel
39 This package contains ISF header files for ISE development.
40
41
42
43 %prep
44 %setup -q
45
46 %build
47 CFLAGS+=" -fvisibility=hidden "; export CFLAGS
48 CXXFLAGS+=" -fvisibility=hidden -fvisibility-inlines-hidden ";export CXXFLAGS
49
50 %autogen
51 %configure --disable-static \
52                 --disable-tray-icon --disable-filter-sctc
53 make %{?_smp_mflags}
54
55 %install
56 rm -rf %{buildroot}
57
58 %make_install
59 mkdir -p %{buildroot}%{_datadir}/license
60 install -m0644 %{_builddir}/%{buildsubdir}/COPYING %{buildroot}%{_datadir}/license/%{name}
61
62 install -d %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
63 install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/user/
64 ln -sf ../scim.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/scim.service
65
66 %post 
67 /sbin/ldconfig
68 mkdir -p /etc/scim/conf
69 mkdir -p /opt/apps/scim/lib/scim-1.0/1.4.0/Helper
70 mkdir -p /opt/apps/scim/lib/scim-1.0/1.4.0/SetupUI
71 mkdir -p /opt/apps/scim/lib/scim-1.0/1.4.0/IMEngine
72
73
74 /usr/bin/vconftool set -t bool file/private/isf/autocapital_allow 1 -g 6514 || :
75 /usr/bin/vconftool set -t bool file/private/isf/autoperiod_allow 0 -g 6514 || :
76 /usr/bin/vconftool set -t string db/isf/input_language "en_US" -g 5000 || :
77
78 %postun -p /sbin/ldconfig
79
80
81 %files
82 %manifest %{name}.manifest
83 /etc/smack/accesses2.d/%{name}.rule
84 %defattr(-,root,root,-)
85 %{_libdir}/systemd/user/core-efl.target.wants/scim.service
86 %{_libdir}/systemd/user/scim.service
87 %attr(755,root,root) %{_sysconfdir}/profile.d/isf.sh
88 %{_sysconfdir}/scim/global
89 %{_sysconfdir}/scim/config
90 %{_datadir}/scim/*.edj
91 %{_datadir}/scim/icons/*
92 %{_datadir}/locale/*
93 %{_bindir}/isf-demo-efl
94 %{_bindir}/scim
95 %{_bindir}/isf-log
96 %{_bindir}/isf-panel-efl
97 %{_bindir}/isf-query-engines
98 %{_libdir}/*/immodules/*.so
99 %{_libdir}/scim-1.0/1.4.0/IMEngine/socket.so
100 %{_libdir}/scim-1.0/1.4.0/Config/simple.so
101 %{_libdir}/scim-1.0/1.4.0/Config/socket.so
102 %{_libdir}/scim-1.0/1.4.0/FrontEnd/*.so
103 %{_libdir}/scim-1.0/scim-launcher
104 %{_libdir}/scim-1.0/scim-helper-launcher
105 %{_libdir}/libscim-*.so*
106 %{_ugdir}/res/locale/*
107 %{_ugdir}/lib/libug-keyboard-setting-wizard-efl.so
108 %{_ugdir}/lib/libug-isfsetting-efl.so
109 %{_datadir}/license/%{name}
110
111 %files devel
112 %defattr(-,root,root,-)
113 %{_includedir}/scim-1.0/*
114 %{_libdir}/libscim-*.so
115 %{_libdir}/pkgconfig/isf.pc
116 %{_libdir}/pkgconfig/scim.pc