summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2014-09-19 17:03:56 +0200
committerRonan Le Martret <ronan@fridu.net>2014-09-19 17:03:56 +0200
commite734afa84536d8e89f46534a46d35905758dc6aa (patch)
tree569226d0e2d91d7ce1f28293df831d9d85af2570
parent895fcea706038f92d3569179641cb2a5567d26a4 (diff)
downloadqemu-accel-accepted/tizen_3.0.2014.q3_common.tar.gz
qemu-accel-accepted/tizen_3.0.2014.q3_common.tar.bz2
qemu-accel-accepted/tizen_3.0.2014.q3_common.zip
- improve rpmlint score Change-Id: I0c494c6483055bc181b152b720e64623d8ca8305 Signed-off-by: Ronan Le Martret <ronan@fridu.net>
-rw-r--r--packaging/qemu-accel-armv7l.spec24
1 files changed, 15 insertions, 9 deletions
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index 154fb9d..e05f6b7 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -31,7 +31,6 @@
Name: qemu-accel-armv7l
Version: 0.4
Release: 0
-VCS: platform/upstream/qemu-accel#submit/tizen/20131025.201555-0-g039eeafa6b52fd126f38fed9cd2fdf36a26a3065
AutoReqProv: off
BuildRequires: cross-arm-binutils
BuildRequires: cross-armv7l-gcc%{gcc_version}-icecream-backend
@@ -50,9 +49,10 @@ BuildRequires: qemu-linux-user
Requires: coreutils
Summary: Native binaries for speeding up cross compile
License: GPL-2.0
-Group: Development/Libraries/Cross
+Group: Platform Development/Build
ExclusiveArch: x86_64 %ix86
+
# default path in qemu
%define HOST_ARCH %(echo -n "%{_host_cpu}" | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
%define our_path /emul/%{HOST_ARCH}-for-arm
@@ -157,8 +157,8 @@ cp -a /usr/lib64/gconv/* "%{buildroot}/usr/lib64/gconv/"
%endif
# create symlinks for bash
-#ln -sf ../usr/bin/bash "%{buildroot}%{our_path}/bin/sh"
-#ln -sf ../../bin/bash "%{buildroot}%{our_path}/usr/bin/sh"
+#ln -sf ../usr/bin/bash "%%{buildroot}%%{our_path}/bin/sh"
+#ln -sf ../../bin/bash "%%{buildroot}%%{our_path}/usr/bin/sh"
# binutils needs to be exposed in /usr/bin
for i in ar ld ld.bfd objcopy objdump; do
@@ -182,7 +182,7 @@ ln -sf ../lib64/gcc "%{buildroot}%{our_path}/usr/lib/gcc"
ln -sf g++ "%{buildroot}%{our_path}/usr/bin/c++"
# gcc can also be called cc
ln -sf gcc "%{buildroot}%{our_path}/usr/bin/cc"
-# gcc can also be called gcc-%{gcc_version_dot}
+# gcc can also be called gcc-%%{gcc_version_dot}
ln -sf gcc "%{buildroot}%{our_path}/usr/bin/gcc-%{gcc_version_dot}"
# nasty hack: If LIBRARY_PATH is set, native gcc adds the contents to its
@@ -253,8 +253,6 @@ ln -sf ../include %{buildroot}/usr/armv7l-tizen-linux-gnueabi/include
mkdir %buildroot/qemu
cp -L /usr/bin/qemu-arm{,-binfmt} %buildroot/qemu/
-%fdupes -s %{buildroot}
-
export NO_BRP_CHECK_RPATH="true"
# Install glibc-locale, otherwise msgmerge >= 0.18.3 fails
@@ -271,6 +269,12 @@ cp -R /usr/share/locale %{buildroot}%{our_path}/usr/share
# Fix permissions for abuild
chmod 755 %{buildroot}%{our_path}/usr/share/locale
+%find_lang gettext-runtime
+%find_lang gettext-tools
+%find_lang libc
+
+%fdupes -s %{buildroot}
+
%post
set -x
if [ $(uname -m) = armv7l ]; then
@@ -314,7 +318,9 @@ builtin echo "All done"
rm -rf /usr/armv7l-tizen-linux-gnueabi/lib
ln -s /lib /usr/armv7l-tizen-linux-gnueabi/usr/lib
-%files
+ldconfig
+
+%files -f gettext-runtime.lang -f gettext-tools.lang -f libc.lang
%defattr(-,root,root)
%dir /usr/armv7l-tizen-linux-gnueabi
/usr/armv7l-tizen-linux-gnueabi/usr
@@ -322,7 +328,7 @@ ln -s /lib /usr/armv7l-tizen-linux-gnueabi/usr/lib
/emul
/qemu
%ifarch x86_64
-/usr/lib64
+/usr/lib64/*
%endif
%changelog