summaryrefslogtreecommitdiff
path: root/packaging/org.tizen.smartsearch.spec
diff options
context:
space:
mode:
authorHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:00:57 +0900
committerHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:00:57 +0900
commitcc411fe3142413dc1341ad4d074d9596cd8bf3ef (patch)
tree13492e8870c607304fe4e80abae5cf49efc10bf9 /packaging/org.tizen.smartsearch.spec
parent636878b6968ffd73d0fee4722d992ecb47e9f3a4 (diff)
downloadsmartsearch-accepted/tizen_2.0/20130215.204608.tar.gz
smartsearch-accepted/tizen_2.0/20130215.204608.tar.bz2
smartsearch-accepted/tizen_2.0/20130215.204608.zip
Diffstat (limited to 'packaging/org.tizen.smartsearch.spec')
-rwxr-xr-xpackaging/org.tizen.smartsearch.spec95
1 files changed, 95 insertions, 0 deletions
diff --git a/packaging/org.tizen.smartsearch.spec b/packaging/org.tizen.smartsearch.spec
new file mode 100755
index 0000000..d50d758
--- /dev/null
+++ b/packaging/org.tizen.smartsearch.spec
@@ -0,0 +1,95 @@
+Name: org.tizen.smartsearch
+Summary: Smartsearch Application
+Version: 0.3.16
+Release: 1
+Group: main
+License: Flora Software License
+Source0: %{name}-%{version}.tar.gz
+Requires: elementary-bin libslp-memo
+BuildRequires: pkgconfig(appcore-efl)
+BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(ecore-imf)
+BuildRequires: pkgconfig(ecore-input)
+BuildRequires: pkgconfig(ecore-x)
+BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(email-service)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(icu-i18n)
+BuildRequires: pkgconfig(json-glib-1.0)
+BuildRequires: pkgconfig(libsoup-2.4)
+BuildRequires: pkgconfig(memo)
+BuildRequires: pkgconfig(msg-service)
+BuildRequires: pkgconfig(ui-gadget-1)
+BuildRequires: pkgconfig(utilX)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(capi-content-media-content)
+BuildRequires: pkgconfig(capi-appfw-application)
+BuildRequires: pkgconfig(capi-appfw-app-manager)
+BuildRequires: pkgconfig(capi-web-favorites)
+BuildRequires: libug-contacts-devel
+BuildRequires: pkgconfig(cert-svc)
+BuildRequires: pkgconfig(cert-svc-vcore)
+BuildRequires: pkgconfig(contacts-service2)
+BuildRequires: pkgconfig(calendar-service2)
+
+BuildRequires: cmake
+BuildRequires: edje-tools
+BuildRequires: gettext-devel
+
+Requires: libug-worldclock-efl libug-phone-efl
+
+%description
+Smartsearch Application.
+
+%prep
+%setup -q
+
+%build
+
+%define PREFIX "/usr/apps/org.tizen.smartsearch"
+%define RESDIR "/usr/apps/org.tizen.smartsearch/res"
+%define DATADIR "/opt/usr/apps/org.tizen.smartsearch/data"
+
+cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX}
+make %{?jobs:-j%jobs}
+
+%install
+%make_install
+
+touch %{buildroot}/opt/usr/apps/org.tizen.smartsearch/data/.search.db
+touch %{buildroot}/opt/usr/apps/org.tizen.smartsearch/data/.search.db-journal
+
+%post
+SEARCHPKG="org.tizen.smartsearch"
+
+# create db
+if [ ! -s /opt/usr/apps/$SEARCHPKG/data/.search.db ]
+then
+ sqlite3 /opt/usr/apps/org.tizen.smartsearch/data/.search.db 'PRAGMA journal_mode = PERSIST;
+ CREATE TABLE IF NOT EXISTS search_category (item_name text not null, item_string int, item_visible int, item_order int, item_contents_type int, item_object_type int, def_pkg_name text);'
+
+fi
+
+# owner & permission
+chown -R 5000:5000 /opt/usr/apps/$SEARCHPKG/data
+chown -R 5000:5000 /opt/usr/apps/$SEARCHPKG/data/.search.db
+chown -R 5000:5000 /opt/usr/apps/$SEARCHPKG/data/.search.db-journal
+
+chmod 660 /opt/usr/apps/$SEARCHPKG/data/.search.db
+chmod 660 /opt/usr/apps/$SEARCHPKG/data/.search.db-journal
+
+vconftool set -t int file/private/org.tizen.smartsearch/category 0 -u 5000 -g 5000 2> /dev/null
+vconftool set -t string file/private/org.tizen.smartsearch/keyword '' -u 5000 -g 5000 2> /dev/null
+
+%files
+%manifest org.tizen.smartsearch.manifest
+/usr/share/packages/*
+/usr/share/icons/default/small/*
+/usr/apps/org.tizen.smartsearch/bin/*
+/usr/apps/org.tizen.smartsearch/res/*
+%attr(-,inhouse,inhouse) /opt/usr/apps/org.tizen.smartsearch/data/
+%config(noreplace,missingok) /opt/usr/apps/org.tizen.smartsearch/data/.search.db
+%config(noreplace,missingok) /opt/usr/apps/org.tizen.smartsearch/data/.search.db-journal