###############################################################################
name = binutils
-version = 2.21.51.0.8
-release = 1
+version = 2.22
+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
-
- cd %{DIR_SRC}/binutils-build && make tooldir=/usr %{PARALLELISMFLAGS}
+ cd %{DIR_SRC}/binutils-build
+ ../%{thisapp}/configure \
+ %{configure_options}
+
+ make tooldir=/usr %{PARALLELISMFLAGS}
end
#def test
cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT}
cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
+
+ # Prevent packages from linking against libbfd and libopcodes,
+ # because they change too often.
+ rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
+ end
+
+ # Keep static version of libiberty.
+ keep_libraries
+ %{libdir}/libiberty.a
end
end
packages
package %{name}
+
+ package %{name}-devel
+ template DEVEL
+
+ # Don't package libbfd and libopcodes in the -devel package.
+ files
+ /usr/include
+ %{libdir}/*.a
+ end
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
end
end