summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2015-08-17 15:08:20 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2015-08-17 15:08:58 +0900
commitf007b06fbb6683a098263f7995ee932dfc5259eb (patch)
tree55e6d62217bfe20ed17ef9905a2915c20770687b /packaging
parent8221eba4ed0529912f18e6d31fc14317c494e9fc (diff)
downloadug-nfc-efl-f007b06fbb6683a098263f7995ee932dfc5259eb.tar.gz
ug-nfc-efl-f007b06fbb6683a098263f7995ee932dfc5259eb.tar.bz2
ug-nfc-efl-f007b06fbb6683a098263f7995ee932dfc5259eb.zip
Apply 2.4 nfc ug
Change-Id: Ie0c144f9dad50b1589b7f656242015a0109c5f58
Diffstat (limited to 'packaging')
-rw-r--r--packaging/libug-setting-nfc-efl.install.in4
-rw-r--r--packaging/libug-share-nfc-efl.install.in4
-rw-r--r--packaging/ug-nfc-efl.spec72
3 files changed, 31 insertions, 49 deletions
diff --git a/packaging/libug-setting-nfc-efl.install.in b/packaging/libug-setting-nfc-efl.install.in
deleted file mode 100644
index 15683fb..0000000
--- a/packaging/libug-setting-nfc-efl.install.in
+++ /dev/null
@@ -1,4 +0,0 @@
-/usr/ug/lib/libug-setting-nfc-efl*
-/usr/ug/res/locale/*/LC_MESSAGES/ug-setting-nfc-efl*
-/usr/ug/res/icons/*
-/usr/ug/res/edje/ug-setting-nfc-efl/*
diff --git a/packaging/libug-share-nfc-efl.install.in b/packaging/libug-share-nfc-efl.install.in
deleted file mode 100644
index edd01a1..0000000
--- a/packaging/libug-share-nfc-efl.install.in
+++ /dev/null
@@ -1,4 +0,0 @@
-/usr/ug/lib/libug-share-nfc-efl*
-/usr/ug/res/locale/*/LC_MESSAGES/ug-share-nfc-efl*
-/usr/ug/res/images/*
-/usr/ug/res/edje/ug-share-nfc-efl/*
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index d49e1be..b434c47 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -1,33 +1,40 @@
%define _usrdir /usr
%define _ugdir %{_usrdir}/ug
+%if "%{?tizen_profile_name}" == "wearable"
+ExcludeArch: %{arm} %ix86 x86_64
+%endif
+
+%if "%{?tizen_profile_name}" == "tv"
+ExcludeArch: %{arm} %ix86 x86_64
+%endif
Name: ug-nfc-efl
Summary: UI gadget about the nfc
-Version: 0.0.9
+Version: 0.1.0
Release: 0
-Group: Applications/Network
-License: Flora
+Group: TO_BE/FILLED_IN
+License: Flora-1.1
Source0: %{name}-%{version}.tar.gz
-Source1: libug-setting-nfc-efl.install.in
-Source2: libug-share-nfc-efl.install.in
BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(efl-assist)
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-network-nfc)
BuildRequires: pkgconfig(capi-content-mime-type)
+BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(notification)
-BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: gettext-tools
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
%description
UI gadget about the nfc
@@ -37,58 +44,41 @@ UI gadget about the nfc
%package devel
Summary: ug for nfc setting
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
ug for nfc setting
-%package -n ug-share-nfc-efl
-Summary: ug for nfc share
-Requires: %{name} = %{version}-%{release}
-
-%description -n ug-share-nfc-efl
-ug for nfc share
-
-
%build
+export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
+export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
mkdir cmake_tmp
cd cmake_tmp
-%cmake .. -DCMAKE_INSTALL_PREFIX=%{_ugdir}
+cmake .. -DCMAKE_INSTALL_PREFIX=%{_ugdir}
make %{?jobs:-j%jobs}
-
%install
cd cmake_tmp
+rm -rf %{buildroot}
%make_install
-cd ..
+mkdir -p %{buildroot}/usr/share/license
mkdir -p %{buildroot}/etc/config/nfc/
+cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/
-%find_lang ug-setting-nfc-efl
-%find_lang ug-share-nfc-efl
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%post
+mkdir -p /usr/ug/bin/
+ln -sf /usr/bin/ug-client /usr/ug/bin/setting-nfc-efl
-%post -p /sbin/ldconfig -n ug-share-nfc-efl
+%postun
-%postun -p /sbin/ldconfig -n ug-share-nfc-efl
-
-%files -f ug-setting-nfc-efl.lang
-%manifest ug-nfc-efl.manifest
+%files
%defattr(-,root,root,-)
/usr/ug/lib/libug-setting-nfc-efl*
+/usr/ug/res/edje/ug-setting-nfc-efl/*.edj
+/usr/ug/res/locale/*/LC_MESSAGES/ug-setting-nfc-efl*
/usr/ug/res/icons/*
-/etc/smack/accesses2.d/ug.setting-nfc-efl.include
-%license LICENSE.Flora
-
-%files -n ug-share-nfc-efl -f ug-share-nfc-efl.lang
-%defattr(-,root,root,-)
-%manifest ug-nfc-efl.manifest
-%license LICENSE.Flora
-/usr/ug/lib/libug-share-nfc-efl*
-/usr/ug/res/images/*
-/usr/ug/res/edje/*
-/etc/smack/accesses2.d/ug.share-nfc-efl.include
/etc/config/nfc/*
+/usr/share/license/LICENSE