Package arm-none-eabi-newlib: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | # FORCE NOARCH # This package is noarch intentionally, although it supplies binaries, # as they're not intended for the build platform, but for ARM. #define _binaries_in_noarch_packages_terminate_build 0 %define target arm-none-eabi %define pkg_version 3.3.0 %define _libexecdir /usr/libexec %add_verify_elf_skiplist %_libexecdir/%target/lib/* Name: arm-none-eabi-newlib Version: %pkg_version Release: alt1 Summary: C library intended for use on %target embedded systems Group: Development/Tools # For a breakdown of the licensing, see NEWLIB-LICENSING License: BSD and MIT and LGPLv2+ and ISC Url: http://sourceware.org/newlib/ Packager: Anton Midyukov <antohami@altlinux.org> Source: %name-%version.tar Source1: README.alt Source2: NEWLIB-LICENSING BuildRequires: %target-binutils %target-gcc %target-gcc-c++ BuildArch: noarch %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 %build rm -rf build-{newlib,nano} mkdir build-{newlib,nano} pushd build-newlib export CFLAGS="-g -O2 -ffunction-sections -fdata-sections" ../configure \ --prefix=%_libexecdir \ --libdir=%_libexecdir \ --mandir=%_mandir \ --target=%target \ --enable-interwork \ --enable-multilib \ --enable-newlib-io-long-long \ --disable-nls \ --disable-libssp \ --disable-nls \ --disable-newlib-supplied-syscalls \ --with-float=soft %make_build popd pushd build-nano export CFLAGS="-g -Os -ffunction-sections -fdata-sections" ../configure \ --prefix=%_libexecdir \ --libdir=%_libexecdir \ --mandir=%_mandir \ --target=%target \ --disable-nls \ --disable-newlib-supplied-syscalls \ --enable-newlib-reent-small \ --disable-newlib-fvwrite-in-streamio \ --disable-newlib-fseek-optimization \ --disable-newlib-wide-orient \ --enable-newlib-nano-malloc \ --disable-newlib-unbuf-stream-opt \ --enable-lite-exit \ --enable-newlib-global-atexit \ --enable-newlib-nano-formatted-io \ --disable-nls %make_build popd %install pushd build-newlib %makeinstall_std popd pushd build-nano NANO_ROOT=%buildroot/nano make install DESTDIR=$NANO_ROOT for i in $(find $NANO_ROOT -regex ".*/lib\(c\|g\|rdimon\)\.a"); do file=$(basename $i | sed "s|\.a|_nano\.a|") target_path=$(dirname $i | sed "s|$NANO_ROOT||") mv $i "%buildroot$target_path/$file" done popd cp %SOURCE1 . cp %SOURCE2 . # we don't want these as we are a cross version rm -rf %buildroot%_infodir rm -rf $NANO_ROOT %files %doc README.alt %doc NEWLIB-LICENSING COPYING* %dir %_libexecdir/%target %dir %_libexecdir/%target/include/ %_libexecdir/%target/include/* %dir %_libexecdir/%target/lib %_libexecdir/%target/lib/* %changelog * Sat Feb 06 2021 Anton Midyukov <antohami@altlinux.org> 3.3.0-alt1 - New version 3.3.0 * Tue Apr 09 2019 Anton Midyukov <antohami@altlinux.org> 3.1.0-alt1 - New version 3.1.0 * Wed Apr 18 2018 Anton Midyukov <antohami@altlinux.org> 3.0.0-alt1 - New version 3.0.0 * Fri Jun 30 2017 Anton Midyukov <antohami@altlinux.org> 2.4.0-alt1 - Initial build for ALT Sisyphus. |