summaryrefslogtreecommitdiff
path: root/packaging/ug-bluetooth-efl.spec
blob: 72cf07c18495fd255ab099f9c03725549bf0a03d (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 _optdir	/opt
%define _usrdir	/usr
%define _ugdir	%{_usrdir}/ug

Name:       ug-bluetooth-efl
Summary:    UI gadget about the bluetooth
Version:    0.2.144
Release:    2
Group:      TO_BE/FILLED_IN
License:    Flora Software License
Source0:    %{name}-%{version}.tar.gz
Requires(post): vconf
Requires(post): coreutils
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: pkgconfig(edje)
BuildRequires: gettext-tools
BuildRequires: pkgconfig(elementary)
BuildRequires: efl-assist-devel
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(appcore-efl)
BuildRequires: pkgconfig(syspopup-caller)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(capi-appfw-application)
BuildRequires:  pkgconfig(capi-system-info)
BuildRequires:  pkgconfig(notification)
BuildRequires : pkgconfig(glib-2.0)
BuildRequires : pkgconfig(gio-2.0)

%description
UI gadget about the bluetooth

%prep
%setup -q

%build
LDFLAGS="$LDFLAGS -Wl,-z -Wl,nodelete"
export LDFLAGS
cmake . -DCMAKE_INSTALL_PREFIX=%{_ugdir}

make %{?jobs:-j%jobs}

%post
vconftool set -tf int file/private/libug-setting-bluetooth-efl/visibility_time "0" -g 6520
mkdir -p /usr/ug/bin/
ln -sf /usr/bin/ug-client /usr/ug/bin/setting-bluetooth-efl
chsmack -a '_' /usr/share/icons/default/small

%install
rm -rf %{buildroot}
%make_install

mkdir -p %{buildroot}/usr/share/license
cp LICENSE.Flora %{buildroot}/usr/share/license/%{name}

%files
%manifest ug-bluetooth-elf.manifest
%defattr(-,root,root,-)
%{_ugdir}/res/edje/ug-setting-bluetooth-efl/*.edj
%{_ugdir}/res/locale/*/LC_MESSAGES/*
%{_ugdir}/res/images/ug-setting-bluetooth-efl/*
%{_ugdir}/lib/libug-setting-bluetooth-efl.so.0.1.0
%{_ugdir}/lib/libug-setting-bluetooth-efl.so
%{_usrdir}/share/packages/ug-bluetooth-efl.xml
%{_usrdir}/share/icons/default/small/ug-bluetooth-efl.png
/usr/share/license/%{name}