File binutils.spec of Package binutils
Name: binutils
# List of additional build dependencies
#BuildRequires: gcc-c++ libxml2-devel
Version: 2.18
Release: 1
License: GPL v2 or later
Source: binutils-2.18.tar.bz2
Group: System/Base
Summary: Binutils
Patch0: binutils-2.18-configure-1.patch
Patch1: binutils-2.18-GCC43-1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Binutils package contains a linker, an assembler, and other tools
for handling object files.
%prep
%setup -q
%patch0
%patch1
%build
# Assume that the package is built by plain 'make' if there's no ./configure.
# This test is there only because the wizard doesn't know much about the
# package, feel free to clean it up
rm -fv etc/standards.info
sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in
mkdir -v ../binutils-build
cd ../binutils-build
../binutils-2.18/configure --prefix=/usr \
--enable-shared
make tooldir=/usr
%install
make DESTDIR=%buildroot install
cp -v ../binutils-2.18/include/libiberty.h %buildroot/usr/include
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
echo '%%defattr(-,root,root)' >filelist
find %buildroot -type f -printf '/%%P*\n' >>filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
# This is a place for a proper filelist:
# /usr/bin/binutils
# You can also use shell wildcards:
# /usr/share/binutils/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here
%changelog
* Wed Nov 26 2008 bravoall1552@yahoo.com
- packaged binutils version 2.18 using the buildservice spec file wizard