summaryrefslogtreecommitdiff
path: root/packaging/org.tizen.attach-panel-document.spec
blob: 77af74e41df703b7c478babd5293e60d487087b3 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
Name:       attach-panel-document
Summary:    attach-panel-document UX
Version:    0.0.1
Release:    1
Group:      Applications
License:    Flora-1.1
Source0:    %{name}-%{version}.tar.gz

%if "%{?tizen_profile_name}" == "wearable" || "%{?tizen_profile_name}" == "tv"
ExcludeArch: %{arm} %ix86 x86_64
%endif

BuildRequires: cmake
BuildRequires: gettext-tools
BuildRequires: edje-tools
BuildRequires: libicu-devel
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-content-media-content)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(storage)
BuildRequires: pkgconfig(libtzplatform-config)

%description
Description: attach-panel-document UG

%prep
%setup -q

%build

%if 0%{?tizen_build_devel_mode}
export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
%endif

cmake . \
    -DPREFIX=%{PREFIX}   \
    -DPKGDIR=%{name}     \
    -DIMGDIR=%{IMGDIR}   \
    -DEDJDIR=%{EDJDIR}   \
    -DPKGNAME=%{name}    \
    -DBINDIR=%{BINDIR}   \
    -DMANIFESTDIR=%{MANIFESTDIR}   \
    -DEDJIMGDIR=%{EDJIMGDIR}   \
    -DLIBDIR=%{LIBDIR}   \
    -DICONDIR=%{ICONDIR}   \
    -DLOCALEDIR=%{LOCALEDIR}   \
    -DIMGICONDIR=%{IMGICONDIR}   \
    -DPREFIX1=%{TZ_SYS_RO_UG}   \
    -DRESDIR=%{RESDIR}

%ifarch %{arm}
CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
%endif

cmake . -DCMAKE_INSTALL_PREFIX=%{TZ_SYS_RO_UG} \
		-DARCH=%{ARCH} \
		-DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES}

make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}

%make_install

%post
mkdir -p /usr/ug/bin/
ln -sf /usr/bin/ug-client %{TZ_SYS_RO_UG}/bin/attach-panel-document
%postun

%files
%manifest attach-panel-document.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_UG}/lib/libug-attach-panel-document.so*
%{TZ_SYS_RO_UG}/res/edje/ug-attach-panel-document/*
%{TZ_SYS_RO_UG}/res/images/ug-attach-panel-document/*
%{TZ_SYS_RO_UG}/res/locale/*/*/attach-panel-document.mo
%{TZ_SYS_RO_PACKAGES}/attach-panel-document.xml
%{TZ_SYS_RO_UG}/shared/res/org.tizen.attach-panel-document.png
%{TZ_SYS_RO_UG}/res/edje/icons/*
%license LICENSE