summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon, Tracy <tracy.graydon@intel.com>2012-12-10 15:28:36 -0800
committerGraydon, Tracy <tracy.graydon@intel.com>2012-12-10 15:28:36 -0800
commitbd7cccb80e1dc86eeada3fb3eac963cf948b7089 (patch)
tree72ab8401a48b7268f96248adee37b7944d97deed
parent64796071a9a2c274e5c31c52b09863f6bc694625 (diff)
downloadrpm-build-x86-submit/master/20121210.232903.tar.gz
rpm-build-x86-submit/master/20121210.232903.tar.bz2
rpm-build-x86-submit/master/20121210.232903.zip
-rw-r--r--packaging/baselibs.conf3
-rw-r--r--packaging/binaries_to_prepare4
-rw-r--r--packaging/rpm-build-x86.changes3
-rw-r--r--packaging/rpm-build-x86.spec99
4 files changed, 68 insertions, 41 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
index 657ed9d..a3e67d6 100644
--- a/packaging/baselibs.conf
+++ b/packaging/baselibs.conf
@@ -1,2 +1 @@
-arch i586 targets armv5tel:arm armv7l:arm armv7hl:arm armv7nhl:arm
-
+arch i586 targets armv5tel:arm armv6l:arm armv7l:arm armv7hl:arm armv7nhl:arm
diff --git a/packaging/binaries_to_prepare b/packaging/binaries_to_prepare
index b7f740c..bca65e3 100644
--- a/packaging/binaries_to_prepare
+++ b/packaging/binaries_to_prepare
@@ -1,3 +1,5 @@
/usr/bin/rpmbuild
/usr/lib/rpm/debugedit
-
+#/usr/lib/rpm/elfdeps
+/usr/lib/rpm/javadeps
+/usr/lib/rpm/rpmdeps
diff --git a/packaging/rpm-build-x86.changes b/packaging/rpm-build-x86.changes
index c4227a2..4c56752 100644
--- a/packaging/rpm-build-x86.changes
+++ b/packaging/rpm-build-x86.changes
@@ -1,3 +1,6 @@
+* Fri Jul 6 14:30:00 KST 2012 - UkJung Kim <ujkim@samsung.com> - 1.0
+- Added and updated OBS-Accelerator-0.1.tar.bz2
+
* Sun Apr 24 08:02:35 UTC 2011 - Jan-Simon Möller <jsmoeller@linuxfoundation.org> - 1.0
- Add baselibs.conf to src.rpm
diff --git a/packaging/rpm-build-x86.spec b/packaging/rpm-build-x86.spec
index 484c565..254dfd1 100644
--- a/packaging/rpm-build-x86.spec
+++ b/packaging/rpm-build-x86.spec
@@ -1,33 +1,58 @@
%define __strip /bin/true
-%define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.dontuse.rpm
-# meta spec file for cross-chroot setup
+%define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.vanish.rpm
+# meta spec file for cross-chroot setup
#
-# Copyright (c) 2010 Jan-Simon Möller (jsmoeller@linuxfoundation.org)
-# License: GPLv2
-
-## README
-##
-## In this file:
-## 1) define name of original package (see oldname)
-##
-## File binaries_to_prepare:
-## 2) fill in the binaries which need to be available to the foreign chroot
-## e.g. /bin/bash - this will make a i586 bash available
-##
+# Copyright (c) 2009-2011 Martin Mohring (martin.mohring@opensuse.org)
+# Copyright (c) 2011 5eEcoSystems (info@5eecosystems.com)
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of the copyright owners, unless otherwise agreed
+# upon. The cross build accelerators as is, and modifications
+# and additions to the it, are licensed under the GPLv2.
+# In addition, the cross build accelerators are licensed together with
+# a package where they will be contained in
+# under the license of the prestine package (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
#\/\/\/\/\/\/\/\/\/\/
### only changes here
+
#
# The original package name
%define oldname rpm-build
+
#
# The architectures this meta package is built on
%define myexclusive i586
+
#
-### no changes needed below this line
-# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+# The required package for building this package
+# This can be distribution dependent. Good start is:
+# e.g. rpm grep tar sed patchelf
+#
+BuildRequires: rpm grep tar sed patchelf
+
+#
+# Additional required packages needed in addition to those of original package
+# e.g. (usually empty) for an accelerator to be 100% compatible
+#
+Requires: rpm
+# For a real accelerator, also the old packge is required for compatibility
+# pls change this only if you know what you do
+Requires: %oldname
+#
+# Release under which to put the accelerator
+# e.g. 1 or higher
+#
+Release: 8
+
+### no changes needed below this line
+# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
### no changes needed
#
@@ -35,13 +60,13 @@
%define newname %{oldname}-x86
#
# The version of the original package is read from its rpm db info
-%{expand:%%define newversion %(rpm -q --qf '[%{version}]' %oldname)}
+%{expand:%%define newversion %(rpm -q --qf '[%{version}]' %{oldname})}
#
# The license of the original package is read from its rpm db info
-%{expand:%%define newlicense %(rpm -q --qf '[%{license}]' %oldname)}
+%{expand:%%define newlicense %(rpm -q --qf '[%{license}]' %{oldname})}
#
# The group information of the original package
-%{expand:%%define newgroup %(rpm -q --qf '[%{group}]' %oldname)}
+%{expand:%%define newgroup %(rpm -q --qf '[%{group}]' %{oldname})}
#
# The summary of the original package
%{expand:%%define newsummary %(rpm -q --qf '[%{summary} - special version ]' %oldname)}
@@ -63,17 +88,14 @@
Name: %newname
Version: %newversion
-Release: 9
AutoReqProv: 0
Provides: %newname
-BuildRequires: rpm grep tar patchelf sed -rpmlint-Moblin -rpmlint-mini -post-build-checks
BuildRequires: %oldname
-Requires: %oldname
# no auto requirements - they're generated
License: %newlicense
Group: %newgroup
ExclusiveArch: %myexclusive
-Summary: Don't use! %newsummary
+Summary: Dont use %newsummary !
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %binaries_to_prepare
Source10: binaries_to_prepare
@@ -165,16 +187,18 @@ for binary in `cat %{_sourcedir}/binaries_to_prepare` ; do
%else
debug="--debug"
%endif
- ldd $binary | grep -v "ld-linux" | grep -v "linux-gate" | sed -e "s#=.*##g" -e "s#^\t*##g" > $tmp
- deps=$(for i in `cat $tmp` ; do rpm -q --whatprovides "$i" | grep -v "no package"; done)
- cleandeps=$(echo "$cleandeps" "$deps" | sort | uniq | sed -e "s/-[0-9].*//g")
- patchelf $debug --set-rpath %newrpath %buildroot/$binary
- patchelf $debug --set-interpreter %newinterpreter %buildroot/$binary
- patchelf $debug --set-rpath %newrpath %buildroot/$binary
- patchelf $debug --set-interpreter %newinterpreter %buildroot/$binary
- if test -n "$debug"; then
- patchelf --print-rpath %buildroot/$binary
- patchelf --print-interpreter %buildroot/$binary
+ if file $binary | grep -q dynamic; then
+ ldd $binary | grep -v "ld-linux" | grep -v "linux-gate" | sed -e "s#=.*##g" -e "s#^\t*##g" > $tmp
+ deps=$(for i in `cat $tmp` ; do rpm -q --whatprovides "$i" | grep -v "no package"; done)
+ cleandeps=$(echo "$cleandeps" "$deps" | sort | uniq | sed -e "s/-[0-9].*//g")
+ patchelf $debug --set-rpath %newrpath %buildroot/$binary
+ patchelf $debug --set-interpreter %newinterpreter %buildroot/$binary
+ patchelf $debug --set-rpath %newrpath %buildroot/$binary
+ patchelf $debug --set-interpreter %newinterpreter %buildroot/$binary
+ if test -n "$debug"; then
+ patchelf --print-rpath %buildroot/$binary
+ patchelf --print-interpreter %buildroot/$binary
+ fi
fi
echo "$binary" >> %buildroot/%{_prefix}/share/applybinary/%name
echo ""
@@ -239,15 +263,15 @@ shellquote " targettype arm requires \"tizen-accelerator\"" >> /tmp/baselibs_ne
%if %binaries_to_prepare
# Todo: error handling if .orig-arm is present
for binary in `cat %{_sourcedir}/binaries_to_prepare` ; do
- shellquote " targettype arm post \" if test -e ${binary}.orig-arm; then \" " >> /tmp/baselibs_new.conf
- shellquote " targettype arm post \" file /emul/ia32-linux/${binary}; echo \"${binary}.orig-arm already present - skipping.\" \" " >> /tmp/baselibs_new.conf
+ shellquote " targettype arm post \" if test -e ${binary}.orig-arm -a -h ${binary}; then \" " >> /tmp/baselibs_new.conf
+ shellquote " targettype arm post \" echo \"${binary}.orig-arm already present - skipping.\" \" " >> /tmp/baselibs_new.conf
shellquote " targettype arm post \" else \" " >> /tmp/baselibs_new.conf
- shellquote " targettype arm post \" mv ${binary} ${binary}.orig-arm ; cp <prefix>${binary} ${binary} ; echo ${binary} \"" >> /tmp/baselibs_new.conf
+ shellquote " targettype arm post \" mv ${binary} ${binary}.orig-arm ; cp <prefix>${binary} ${binary} \"" >> /tmp/baselibs_new.conf
shellquote " targettype arm post \" fi \" " >> /tmp/baselibs_new.conf
done
# shellquote " targettype arm post \" set -x ; for dbi in Basenames Conflictname Dirnames Group Installtid Name Packages Providename Provideversion Requirename Requireversion Triggername Filedigests Pubkeys Sha1header Sigmd5 Obsoletename __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 __db.008 __db.009 ; do rm /var/lib/rpm/\$dbi ; touch /var/lib/rpm/\$dbi ; done ; set +x \" " >> /tmp/baselibs_new.conf
-# shellquote " targettype arm post \" set -x; rpm --initdb; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-tizen; set +x \" " >> /tmp/baselibs_new.conf
+# shellquote " targettype arm post \" set -x; rpm --initdb; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-meego; set +x \" " >> /tmp/baselibs_new.conf
# shellquote " targettype arm post \" set -x; ls /var/lib/rpm; set +x \" " >> /tmp/baselibs_new.conf
# shellquote " targettype arm post \"# XXX this is klunky and ugly, rpm itself should handle this\" " >> /tmp/baselibs_new.conf
@@ -258,7 +282,6 @@ done
# shellquote " targettype arm post \" fi\" " >> /tmp/baselibs_new.conf
# shellquote " targettype arm post \"fi\" " >> /tmp/baselibs_new.conf
-
shellquote " " >> /tmp/baselibs_new.conf
for binary in `cat %{_sourcedir}/binaries_to_prepare` ; do