LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mingw32-binutils.spec of Package mingw32-cross-binutils (Project home:Ximi1970:Toolchains:MinGW:2.0.1:win32)

#
# spec file for package mingw32-binutils
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-binutils
Version:        2.24.51
Release:        0
Summary:        GNU Binutils
License:        GPL-2.0+ and LGPL-2.1+ and GPL-3.0+ and LGPL-3.0+
Group:          Development/Libraries
Url:            http://www.gnu.org/software/binutils/
#Source:         http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
Source:         ftp://sourceware.org/pub/binutils/snapshots/binutils-%{version}.tar.bz2
Source99:       mingw32-binutils-rpmlintrc
#!BuildIgnore: post-build-checks
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-filesystem
BuildRequires:  texinfo
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw32_package_header_debug
BuildArch:      noarch

%description
The GNU Binutils are a collection of binary tools.
These utilities (like 'as', 'ld', 'strip') understand Windows executables and DLLs.

%package devel
Summary:        %{summary}
Group:          Development/Libraries

%description devel
libbfd and libopcodes.a

%_mingw32_debug_package

%prep
%setup -q -n binutils-%{version}

%build
mkdir -p build
cd build
%{_mingw32_configure} \
  --verbose --disable-nls \
  --without-included-gettext \
  --disable-win32-registry \
  --with-sysroot=%{_mingw32_prefix} \
  --disable-werror

make %{?_smp_mflags} || make

%install
cd build
make DESTDIR=%{buildroot} install %{?_smp_mflags}

rm -f %{buildroot}%{_mingw32_infodir}/dir

%files
%defattr(-,root,root)
%{_mingw32_bindir}/*.exe
%{_mingw32_prefix}/%{_mingw32_target}/bin/*.exe
%{_mingw32_prefix}/%{_mingw32_target}/lib/ldscripts/
%{_mingw32_mandir}/man1/*
%{_mingw32_infodir}/*.info*

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/
%{_mingw32_libdir}/libbfd.a
%{_mingw32_libdir}/libopcodes.a

%changelog