fixed spec file to build properly 81/152881/1 submit/tizen/20170927.094349
authorIckhee Woo <ickhee.woo@samsung.com>
Wed, 27 Sep 2017 09:37:43 +0000 (18:37 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Wed, 27 Sep 2017 09:37:43 +0000 (18:37 +0900)
Change-Id: I93848df31f670486a9fee868e7c710a1fd640130
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
packaging/push.spec

index f106026..ded15a7 100644 (file)
@@ -84,19 +84,36 @@ mkdir -p %{buildroot}%{_bindir}
 mkdir -p %{buildroot}/usr/share/push
 
 
-%ifarch %{arm}
+%ifarch armv7l
 
-pushd arm/lib/
+pushd armv7l/lib/
 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
 popd
-pushd arm/bin/
+pushd armv7l/bin/
 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
 popd
-pushd arm/share/push/
+pushd armv7l/share/push/
 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
 popd
 %if %{_support_weblog}
-       arm/bin/pushlog_tool
+       armv7l/bin/pushlog_tool
+%endif
+%endif
+
+
+%ifarch armv7hl
+
+pushd armv7hl/lib/
+for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
+popd
+pushd armv7hl/bin/
+for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
+popd
+pushd armv7hl/share/push/
+for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
+popd
+%if %{_support_weblog}
+       armv7hl/bin/pushlog_tool
 %endif
 %endif
 
@@ -115,7 +132,6 @@ popd
 %if %{_support_weblog}
        aarch64/bin/pushlog_tool
 %endif
-
 %endif