summaryrefslogtreecommitdiff
path: root/packaging/ug-setting-location-efl.spec
blob: aff138148eed152159c7d615f08b202619f9dade (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
%bcond_with wayland

Name:       ug-setting-location-efl
Summary:    UG setting location EFL
Version:    0.3.46
Release:    1
Group:      System/Libraries
License:    Flora Software License
Source0:    %{name}-%{version}.tar.gz
Source1001: 	ug-setting-location-efl.manifest
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(location)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(capi-location-manager)
BuildRequires: edje-bin
BuildRequires: cmake
BuildRequires: gettext-tools
Requires(post):   /sbin/ldconfig
Requires(post):   /usr/bin/vconftool
requires(postun): /sbin/ldconfig
%description
ug setting location efl.

%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1001} .

%build
export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed -Wl,--hash-style=both"

LDFLAGS="$LDFLAGS" %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
%if %{with wayland}
         -DWAYLAND_SUPPORT=On
%else
         -DWAYLAND_SUPPORT=Off
%endif

make %{?jobs:-j%jobs}

%install
%make_install


%post
/sbin/ldconfig
mkdir -p /usr/ug/bin/
mkdir -p /usr/ug/res/locale/
ln -sf /usr/bin/ug-client /usr/ug/bin/setting-location-efl


%postun -p /sbin/ldconfig


%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
/usr/ug/lib/libug-setting-location-efl.so*
/usr/share/packages/ug-setting-location-efl.xml
/usr/ug/res/edje/ug-setting-location-efl/setting-location.edj
/usr/ug/res/locale/*