Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044211
en ru br
Репозитории ALT
S:2.41-alt1
5.1: 2.19.51.0.14-alt4
4.1: 2.17.50.0.6-alt4
4.0: 2.17.50.0.6-alt1
3.0: 2.15.94.0.2.2-alt3
www.altlinux.org/Changes

Другие репозитории
Upstream:2.18

Группа :: Разработка/Прочее
Пакет: binutils

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: binutils
Version: 2.17.50.0.6
Release: alt4
Serial: 1

Summary: GNU Binary Utility Development Utilities
License: GPL
Group: Development/Other
Url: http://sources.redhat.com/%name/
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source: ftp://ftp.kernel.org/pub/linux/devel/%name/%name-%version.tar
Source1: gcc.sh

# RH

Patch1: binutils-2.17.50.0.6-rh-ltconfig-multilib.patch
Patch2: binutils-2.17.50.0.6-rh-ppc64-pie.patch
Patch3: binutils-2.17.50.0.6-rh-place-orphan.patch
Patch4: binutils-2.17.50.0.6-rh-ia64-lib64.patch
Patch5: binutils-2.17.50.0.6-rh-elfvsb-test.patch
Patch6: binutils-2.17.50.0.6-rh-standards.patch
Patch7: binutils-2.17.50.0.6-rh-build-fixes.patch
Patch8: binutils-2.17.50.0.6-rh-kept-section.patch
Patch9: binutils-2.17.50.0.6-rh-power6-insns.patch
Patch10: binutils-2.17.50.0.6-rh-fixsyms.patch
Patch11: binutils-2.17.50.0.6-rh-gas-debug-ranges-revert.patch
Patch12: binutils-2.17.50.0.6-rh-popcnt.patch
Patch13: binutils-2.17.50.0.6-rh-rh223181.patch
Patch14: binutils-2.17.50.0.6-rh-tekhex.patch
Patch15: binutils-2.17.50.0.6-rh-bz4267.patch
Patch16: binutils-2.17.50.0.6-rh-ppc-relbrlt-test.patch
Patch17: binutils-2.17.50.0.6-rh-rh235221.patch
Patch18: binutils-2.17.50.0.6-rh-sse4.patch
Patch19: binutils-2.17.50.0.6-rh-ppc64-version-script.patch
Patch20: binutils-2.17.50.0.6-rh-rh241252.patch

# ALT

Patch21: binutils-2.16.91.0.3-alt-texinfo.patch
Patch22: binutils-2.17.50.0.6-alt-bfd_elflink_relax_checking.patch
Patch23: binutils-2.17.50.0.3-alt-defaults.patch
Patch24: binutils-2.17.50.0.6-alt-opcodes-libiberty.patch
Patch25: binutils-2.17.50.0.6-alt-makeinfo.patch

Requires(post): %install_info, coreutils
Requires(preun): %uninstall_info, coreutils
Requires: libbfd = %serial:%version-%release
# due to c++filt
Conflicts: gcc-common < 0:1.2.1-alt4

BuildRequires: flex, glibc-devel-static
%{?!_without_check:%{?!_disable_check:BuildRequires: dejagnu, gcc-c++}}

%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(post): %install_info
Requires(preun): %uninstall_info
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

%description
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.

%prep
%setup -q

%patch1 -p0
%patch2 -p0
%patch3 -p0
%ifarch ia64
%if "%_lib" == "lib64"
%patch4 -p0
%endif
%endif
%patch5 -p0
%patch6 -p0
%patch7 -p0
%patch8 -p0
%patch9 -p0
%patch10 -p0
%patch11 -p0 -R
%patch12 -p0
%patch13 -p0
%patch14 -p0
%patch15 -p0
%patch16 -p0
%patch17 -p0
%patch18 -p0
%patch19 -p0
%patch20 -p0

%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1

# Link libopcodes with libbfd.

sed -i '/^libopcodes_la_\(DEPENDENCIES\|LIBADD\)/s|$| ../bfd/libbfd.la|' opcodes/Makefile.*

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

%build
%define _configure_target --host=%_target_platform --build=%_target_platform
ADDITIONAL_TARGETS=
%ifarch ia64 x86_64
ADDITIONAL_TARGETS="--enable-targets=i386-alt-linux"
%endif
%configure --enable-shared --disable-werror $ADDITIONAL_TARGETS

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

RUNTESTFLAGS=
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:if [ -w /dev/ptmx ]; then make -k check CC="%_sourcedir/gcc.sh" RUNTESTFLAGS="$RUNTESTFLAGS" ||:; fi}}}

%install
%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
n="${f##*/}"
n="${n%%.1*}"
[ -f "%buildroot%_bindir/$n" ] || rm -v "$f"
done

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

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

# Relocate include files.

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

# 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*}

# No ugly translations please.

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

%set_verify_elf_method strict

%post -n libbfd -p %post_ldconfig
%postun -n libbfd -p %postun_ldconfig

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

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

%post -n libbfd-devel
%install_info bfd.info

%preun -n libbfd-devel
%uninstall_info bfd.info

%files -n libbfd
%_libdir/*-*.so

%files -n libbfd-devel
%_libdir/libbfd.so
%_libdir/libopcodes.so
%_includedir/bfd
%_includedir/[a-ce-km-z]*.h
%_includedir/dis-asm.h
%_infodir/bfd.info*

%files -n libbfd-devel-static
%_libdir/libbfd.a
%_libdir/libopcodes.a

%files -n libiberty-devel
%_libdir/libiberty.*
%_includedir/libiberty.h
%_includedir/demangle.h

%files -f files.lst
%_bindir/*
%_prefix/lib/ldscripts
%_mandir/man?/*
%_datadir/%name

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin