LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File show-readelf.spec of Package show-readelf (Project Ports:ARM:Base:build:cross)

#
# spec file for package binutils (Version 2.19.51)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           show-readelf
ExclusiveArch:  %arm
Version:        0.0.2
Release:        1
License:        GNU Free Documentation License, Version 1.1 (GFDL 1.1); GNU Free Documentation License, Version 1.2 (GFDL 1.2); GPL v2 or later; GPL v3 or later; LGPL v2.0 or later; LGPL v2.1 or later; LGPL v3 or later
Group:          Development/Tools/Building
AutoReqProv:    off
Summary:        this is a fake provides for ia32el, it inserts a file to /etc/ld.so.conf.d/
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Source1:        ldd_i386

%description
Dependency-dummy for arm

%prep

%build
# test bash
echo "##############  bash  ##############"
cp %{S:1} .

#readelf -a /bin/bash
chmod a+x ldd_i386
./ldd_i386 /bin/bash || true
ldd /bin/bash || true
echo "############## /bash  ##############"

# test m4
echo "##############  m4  ##############"
cp %{S:1} .

#readelf -a `which m4`
chmod a+x ldd_i386
./ldd_i386 `which m4` || true
ldd `which m4` || true
echo "############## /m4  ##############"

# test rpm
echo "##############  rpm  ##############"
cp %{S:1} .

#readelf -a `which rpm`
chmod a+x ldd_i386
./ldd_i386 `which rpm` || true
ldd `which rpm` || true
echo "############## /rpm  ##############"

# test perl
echo "##############  perl  ##############"
cp %{S:1} .

#readelf -a `which perl`
chmod a+x ldd_i386
./ldd_i386 `which perl` || true
ldd `which perl` || true
echo "############## /perl  ##############"


%install
mkdir -p %buildroot/usr/share/%{name}/
echo "%{version}" > %buildroot/usr/share/%{name}/version
date > %buildroot/usr/share/%{name}/date

%clean
rm -rf $RPM_BUILD_ROOT

%post


%files
%defattr(-,root,root)
/usr/share/%{name}/version
/usr/share/%{name}/date