name = binutils
version = 2.22
-release = 1
+release = 3
maintainer = Michael Tremer <michael.tremer@ipfire.org>
groups = Development/Tools
sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
end
+ configure_options += \
+ --build=%{DISTRO_BUILDTARGET} \
+ --host=%{DISTRO_BUILDTARGET} \
+ --target=%{DISTRO_BUILDTARGET} \
+ --disable-werror \
+ --disable-static \
+ --enable-64-bit-bfd \
+ --enable-plugins \
+ --with-bugurl="http://bugzilla.ipfire.org/"
build
- BINUTILS_TARGET_PLATFORM=$(echo "%{DISTRO_MACHINE}" | sed -e "s/-gnu//")
-
cd %{DIR_SRC}/binutils-build
../%{thisapp}/configure \
- --host=${BINUTILS_TARGET_PLATFORM} \
- --build=${BINUTILS_TARGET_PLATFORM} \
- --target=${BINUTILS_TARGET_PLATFORM} \
- --prefix=/usr \
- --mandir=/usr/share/man \
- --enable-shared \
- --disable-nls \
- --disable-werror \
- --disable-static
+ %{configure_options}
make tooldir=/usr %{PARALLELISMFLAGS}
end
# Prevent packages from linking against libbfd and libopcodes,
# because they change too often.
- rm -rfv %{BUILDROOT}/usr/lib/lib{bfd,opcodes}.so
+ rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
end
# Keep static version of libiberty.
keep_libraries
- /usr/lib/libiberty.a
+ %{libdir}/libiberty.a
end
end
# Don't package libbfd and libopcodes in the -devel package.
files
/usr/include
- /usr/lib/*.a
+ %{libdir}/*.a
end
end