[Common] Fixed devel package for 64bit systems.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 8 Dec 2015 14:25:22 +0000 (15:25 +0100)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 8 Dec 2015 14:25:22 +0000 (15:25 +0100)
[Verification] Code copiles on both armv7l and aarch64 systems.
               It's possible to use devel package on both of these systems.

Change-Id: Ie6696536679dd869a2e0f02319bd45e5cefbe2b3
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
packaging/webapi-plugins.pc [deleted file]
packaging/webapi-plugins.pc.in [new file with mode: 0644]
packaging/webapi-plugins.spec

diff --git a/packaging/webapi-plugins.pc b/packaging/webapi-plugins.pc
deleted file mode 100755 (executable)
index 2cd06ac..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-project_name=webapi-plugins
-dirname=tizen-extensions-crosswalk
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${prefix}/lib/${dirname}
-includedir=${prefix}/include/${project_name}/src
-
-Name: ${project_name}
-Description: ${project_name}
-Version:
-Requires: dbus-1 dlog glib-2.0
-Libs: -L${libdir} -ltizen_common
-Cflags: -I${includedir}
diff --git a/packaging/webapi-plugins.pc.in b/packaging/webapi-plugins.pc.in
new file mode 100644 (file)
index 0000000..e9cade2
--- /dev/null
@@ -0,0 +1,10 @@
+project_name=webapi-plugins
+libdir=__LIB_DIR__
+includedir=__INCLUDE_DIR__
+
+Name: ${project_name}
+Description: ${project_name}
+Version:
+Requires: dbus-1 dlog glib-2.0
+Libs: -L${libdir} -ltizen_common
+Cflags: -I${includedir}
index 47c9d9076abdf43a5a14ba98642fba338f948780..62ebda06d70ff8cddcdad16183e61754b95f71ed 100644 (file)
@@ -500,7 +500,9 @@ install -p -m 644 out/Default/libtizen*.so %{buildroot}%{crosswalk_extensions_pa
 
 # devel files
 mkdir -p %{buildroot}%{_libdir}/pkgconfig
-cp packaging/%{name}.pc %{buildroot}%{_libdir}/pkgconfig
+sed -i s,__LIB_DIR__,%{crosswalk_extensions_path},g packaging/%{name}.pc.in
+sed -i s,__INCLUDE_DIR__,%{_includedir}/%{name}/src,g packaging/%{name}.pc.in
+cp packaging/%{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
 mkdir -p %{buildroot}%{_includedir}/%{name}/src/common
 install -p -m 644 src/common/*.h %{buildroot}%{_includedir}/%{name}/src/common
 install -p -m 644 src/common/*.gypi %{buildroot}%{_includedir}/%{name}/src/common