Tizen 2.0 Release
[platform/core/location/ug-setting-location-efl.git] / packaging / ug-setting-location-efl.spec
1 Name:       ug-setting-location-efl
2 Summary:    UG setting location EFL
3 Version:    0.3.45
4 Release:    1
5 Group:      System/Libraries
6 License:    Flora Software License
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires: pkgconfig(elementary)
9 BuildRequires: pkgconfig(edje)
10 BuildRequires: pkgconfig(bundle)
11 BuildRequires: pkgconfig(ui-gadget-1)
12 buildRequires: pkgconfig(location)
13 buildRequires: pkgconfig(location-appman)
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(capi-location-manager)
16 BuildRequires: edje-bin
17 BuildRequires: cmake
18 BuildRequires: gettext-tools 
19 Requires(post):   /sbin/ldconfig
20 Requires(post):   /usr/bin/vconftool
21 requires(postun): /sbin/ldconfig
22 %description
23 ug setting location efl.
24
25 %prep
26 %setup -q -n %{name}-%{version}
27
28 %build
29 export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed -Wl,--hash-style=both"
30
31 LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
32
33 make %{?jobs:-j%jobs}
34
35 %install
36 %make_install
37
38
39 %post 
40 /sbin/ldconfig
41 mkdir -p /usr/ug/bin/
42 mkdir -p /usr/ug/res/locale/
43 ln -sf /usr/bin/ug-client /usr/ug/bin/setting-location-efl
44
45
46 %postun -p /sbin/ldconfig
47
48
49 %files
50 %manifest ug-setting-location-efl.manifest
51 %defattr(-,root,root,-)
52 /usr/ug/lib/libug-setting-location-efl.so*
53 /usr/share/packages/ug-setting-location-efl.xml
54 /usr/ug/res/edje/ug-setting-location-efl/setting-location.edj
55 /usr/ug/res/locale/*