newlib/newlib.spec
Richard Biener 7dd5cbdb55 Accepting request 844448 from home:matthewtrescott:branches:devel:gcc
- Update to v3.3.0
  * Fixes assembly of trap.S when building ARM multilibs (related
    to https://bugzilla.opensuse.org/show_bug.cgi?id=1106014)
- Remove unused configure flag --with-multilib-list. Newlib's configure
  script obtains this information from the GCC used to build it.

OBS-URL: https://build.opensuse.org/request/show/844448
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/newlib?expand=0&rev=18
2020-10-28 08:36:59 +00:00

71 lines
2.0 KiB
RPMSpec

#
# spec file for package newlib
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: newlib
Version: 3.3.0
Release: 0
Summary: C library intended for use on embedded systems
License: BSD-3-Clause AND MIT AND LGPL-2.0-or-later AND ISC
Group: Development/Tools
URL: https://sourceware.org/newlib/
Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz
Patch1: epiphany-fixes.diff
%if %{suse_version} > 1220
BuildRequires: makeinfo
%else
BuildRequires: texinfo
%endif
%description
Newlib is a C library intended for use on embedded systems. It is a
conglomeration of several library parts, all under free software licenses
that make them easily usable on embedded products.
%prep
%setup -q
%patch1 -p1
%build
mkdir build-dir
cd build-dir
# On %%ix86 hosts newlib is documented to be buildable as shared library via --with-newlib,
# but it fails to build for us and we don't need a host library at the moment.
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \
%ifarch %ix86
%if 0
--with-newlib \
%endif
%endif
CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
cd build-dir
make install DESTDIR=%{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING.NEWLIB COPYING.LIBGLOSS COPYING COPYING.LIB COPYING3 COPYING3.LIB
%doc newlib/README newlib/NEWS
%changelog