Sisyphus repositório
Última atualização: 30 novembro 2021 | SRPMs: 17427 | Visitas: 22418563
en ru br
ALT Linux repositórios

Outros repositórios

Group :: Desenvolvimento/Outros
RPM: binutils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: binutils
Release: alt5
Serial: 1

Summary: GNU Binary Utility Development Utilities
License: GPLv3+
Group: Development/Other
Packager: Dmitry V. Levin <ldv at>


# RH

Patch1: binutils-
Patch2: binutils-
Patch3: binutils-
Patch4: binutils-
Patch5: binutils-
Patch6: binutils-
Patch7: binutils-
Patch8: binutils-
Patch9: binutils-
Patch10: binutils-
Patch11: binutils-


Patch101: binutils-
Patch102: binutils-
Patch103: binutils-
Patch104: binutils-
Patch105: binutils-

Requires: libbfd = %serial:%version-%release
# due to c++filt
Conflicts: gcc-common < 0:1.2.1-alt4

BuildRequires: flex, glibc-devel-static, zlib-devel-static
%{?!_without_check:%{?!_disable_check:BuildRequires: dejagnu, gcc-c++, /proc, /dev/pts}}

%package -n libbfd
Summary: Binary File Descriptor library
Group: System/Libraries

%package -n libbfd-devel
Summary: Include files for development with BFD library
Group: Development/C
Requires: libbfd = %serial:%version-%release

%package -n libbfd-devel-static
Summary: Static libraries for development with BFD library
Group: Development/C
Requires: libbfd-devel = %serial:%version-%release

%package -n libiberty-devel
Summary: Development files for development with libiberty
Group: Development/C
Requires: libbfd-devel = %serial:%version-%release

Binutils is a collection of binary utilities, including:
+ addr2line: converting addresses to file and line;
+ ar: creating modifying and extracting from archives;
+ nm: listing symbols from object files;
+ objcopy: copying and translating object files;
+ objdump: displaying information from object files;
+ ranlib: generating an index for the contents of an archive;
+ size: listing the section sizes of an object or archive file;
+ strings: listing printable strings from files;
+ strip: discarding symbols.

%description -n libbfd
This package contains shared libraries needed to run programs
dynamically linked with Binary File Descriptor library.

%description -n libbfd-devel
This package contains include files needed for development software
based on Binary File Descriptor library.

%description -n libbfd-devel-static
This package contains static libraries needed for development
statically linked software based on Binary File Descriptor library.

%description -n libiberty-devel
This package contains include files and static library
needed for development software using libiberty.

%setup -q

%patch1 -p0
%patch2 -p0
%patch3 -p0
#patch4 -p0
%patch5 -p0
%patch6 -p0
%patch7 -p0
%patch8 -p0
%patch9 -p0
%patch10 -p0
%patch11 -p0

%patch101 -p2
%patch102 -p2
%patch103 -p2
#patch104 -p2
%patch105 -p1

find -type f -name \*.orig -delete

sed -i 's/%%{release}/%release/g' bfd/Makefile{.am,.in}

%define _configure_target --host=%_target_platform --build=%_target_platform
%undefine __libtoolize
%ifarch %ix86
%ifarch ia64 x86_64
%ifarch ppc
ADDITIONAL_TARGETS="--enable-targets=powerpc64-alt-linux --enable-targets=spu --enable-64-bit-bfd"
%configure --enable-shared --disable-werror \
--with-bugurl= \

%make_build tooldir=%_prefix all
%make_build tooldir=%_prefix info

%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:if [ -w /dev/ptmx -a -f /proc/self/maps ]; then make -k check CC="%_sourcedir/" CXX="%_sourcedir/" RUNTESTFLAGS="$RUNTESTFLAGS"; fi}}}

%makeinstall tooldir=%buildroot%_prefix install-info
# Install PIC version of the libiberty.a
install -pm644 libiberty/pic/libiberty.a %buildroot%_libdir/

# Remove unrelated manpages.

find %buildroot%_man1dir -type f |while read f; do
[ -f "%buildroot%_bindir/$n" ] || rm -v "$f"

# Prepare info file lists.

ls %buildroot%_infodir/*.info |
fgrep -v /bfd |
sed "s|^%buildroot\(.*\)|\1*|g" >files.lst
mkdir %buildroot%_datadir/%name
ls %buildroot%_infodir/*.info |
fgrep -v /bfd |
sed "s|^%buildroot%_infodir/||g" >%buildroot%_datadir/%name/info.files

# Sanity check --enable-64-bit-bfd really works.

grep -qs '^#define BFD_ARCH_SIZE 64$' %{buildroot}%{_prefix}/include/bfd.h
# Fix multilib conflicts of generated values by __WORDSIZE-based expressions.
%ifarch %ix86 x86_64 ppc ppc64 s390 s390x sparc sparc64
sed -i -e '/^#include "ansidecl.h"/{p;s|^.*|#include <bits/wordsize.h>|}' \
   -e 's/^\(#define BFD_DEFAULT_TARGET_SIZE \)\(32\|64\) *$/\1__WORDSIZE/' \
   -e 's/^\(#define BFD_HOST_64BIT_LONG \)[01] *$/\1(__WORDSIZE == 64)/' \
   -e 's/^\(#define BFD_HOST_64_BIT \)\(long \)\?long *$/#if __WORDSIZE == 32\
\1long long\
#endif/' \
   -e 's/^\(#define BFD_HOST_U_64_BIT unsigned \)\(long \)\?long *$/\1BFD_HOST_64_BIT/' \
touch -r bfd/bfd-in2.h %buildroot%_includedir/bfd.h

# Relocate include files.

pushd %buildroot%_includedir
mkdir bfd
for f in *.h; do
mv "$f" bfd/
ln -s bfd/"$f" .

# Add more include files.

install -pm644 include/{demangle,libiberty}.h %buildroot%_includedir/
install -pm644 bfd/{elf-bfd,lib*}.h %buildroot%_includedir/bfd/
cp -a include/{coff,elf,nlm} %buildroot%_includedir/bfd/
rm -f %buildroot%_includedir/bfd/{*in.h,*/ChangeLog*}

# Install NEWS.

for n in binutils gas ld; do
install -pm644 $n/NEWS NEWS-$n

# No ugly translations please.

#%%find_lang %name bfd gas gprof ld opcodes --append --output files.lst

%set_verify_elf_method strict

%install_info `cat %_datadir/%name/info.files`

%uninstall_info `cat %_datadir/%name/info.files`

%post -n libbfd-devel

%preun -n libbfd-devel

%files -n libbfd

%files -n libbfd-devel

%files -n libbfd-devel-static

%files -n libiberty-devel

%files -f files.lst
%doc NEWS*


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009