summaryrefslogtreecommitdiff
path: root/packaging/maps-plugin-here.spec
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-24 16:45:43 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-24 16:45:43 +0900
commit30aa89fe44757936f60148344791cecbc8e745f4 (patch)
treee28b9feead1d7b37a5923091c5917f0bee05eb6e /packaging/maps-plugin-here.spec
parentd790947a802824c442a22083376dc40a5c786f05 (diff)
downloadmaps-plugin-here-accepted/tizen/2.4/mobile/20151029.032842.tar.gz
maps-plugin-here-accepted/tizen/2.4/mobile/20151029.032842.tar.bz2
maps-plugin-here-accepted/tizen/2.4/mobile/20151029.032842.zip
Diffstat (limited to 'packaging/maps-plugin-here.spec')
-rwxr-xr-xpackaging/maps-plugin-here.spec55
1 files changed, 55 insertions, 0 deletions
diff --git a/packaging/maps-plugin-here.spec b/packaging/maps-plugin-here.spec
new file mode 100755
index 0000000..45e07fe
--- /dev/null
+++ b/packaging/maps-plugin-here.spec
@@ -0,0 +1,55 @@
+Name: maps-plugin-here
+Summary: Tizen HERE Maps Plug-in Library
+Version: 0.1.4
+Release: 1
+Group: Location/Libraries
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gmodule-2.0)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(capi-maps-service)
+BuildRequires: capi-maps-service-plugin-devel
+BuildRequires: pkgconfig(heremaps-engine)
+BuildRequires: pkgconfig(capi-network-connection)
+BuildRequires: pkgconfig(capi-appfw-app-manager)
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+This packages provides Plugin APIs capsulating HERE Maps Engine Library for Maps Service Library.
+
+%prep
+%setup -q
+
+%build
+%if 0%{?tizen_build_binary_release_type_eng}
+export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE -g"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE -g"
+export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
+%endif
+
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DLIBDIR=%{_libdir}
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%manifest maps-plugin-here.manifest
+%defattr(-,root,root,-)
+%{_libdir}/maps/plugins/libmaps-plugin-here.so*
+/usr/share/license/maps-plugin-here