b051699953
Newlib is a C standard library, used both for some embedded targets and as intermediate step for building glibc or uClibc cross-compilers. This package serves as source package for deriving target-specific cross-*-newlib-devel packages. gcc5/gcc6 packages have already been prepared for this cross dependency. OBS-URL: https://build.opensuse.org/request/show/396466 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/newlib?expand=0&rev=1
18 lines
406 B
Bash
18 lines
406 B
Bash
#!/bin/bash
|
|
|
|
gcc_base_ver=5
|
|
gcc_binsuffix=-5
|
|
|
|
rm -f cross*.spec cross*.changes
|
|
|
|
for arch in ; do
|
|
pkgname=cross-$arch-newlib-devel
|
|
outfile=$pkgname.spec
|
|
echo "%define cross_arch $arch" > $outfile
|
|
echo "%define gcc_binsuffix ${gcc_binsuffix}" >> $outfile
|
|
sed -e "s#@gcc_base_ver@#$gcc_base_ver#" newlib.spec.in >> $outfile
|
|
cp newlib.changes $pkgname.changes
|
|
done
|
|
|
|
osc service localrun format_spec_file
|