Репозиторий Sisyphus
Последнее обновление: 26 сентября 2022 | Пакетов: 17649 | Посещений: 25042875
en ru br
Репозитории ALT

Другие репозитории

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

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

Name: binutils
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-
Patch2: binutils-
Patch3: binutils-
Patch4: binutils-
Patch5: binutils-
Patch6: binutils-
Patch7: binutils-
Patch8: binutils-
Patch9: binutils-
Patch10: binutils-
Patch11: binutils-
Patch12: binutils-
Patch13: binutils-
Patch14: binutils-
Patch15: binutils-
Patch16: binutils-
Patch17: binutils-
Patch18: binutils-
Patch19: binutils-
Patch20: binutils-


Patch21: binutils-
Patch22: binutils-
Patch23: binutils-
Patch24: binutils-
Patch25: binutils-

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

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
%ifarch ia64
%if "%_lib" == "lib64"
%patch4 -p0
%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

%define _configure_target --host=%_target_platform --build=%_target_platform
%ifarch ia64 x86_64
%configure --enable-shared --disable-werror $ADDITIONAL_TARGETS

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

%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:if [ -w /dev/ptmx ]; then make -k check CC="%_sourcedir/gcc.sh" 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"

/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" .

# 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

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

%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

%files -n libbfd-devel

%files -n libbfd-devel-static

%files -n libiberty-devel

%files -f files.lst


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

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