mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Modernize.
This commit is contained in:
@@ -18,7 +18,7 @@ $(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binuti
|
|||||||
-e "/[@]SOURCES[@]/d" \
|
-e "/[@]SOURCES[@]/d" \
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
|
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
||||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
CLEANFILES += $(TARGET)-binutils.spec.in
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add
|
|||||||
-e "/[@]PREP[@]/d" \
|
-e "/[@]PREP[@]/d" \
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
|
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
-e "/[@]tool_target[@]-newlib/d" \
|
||||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
||||||
-e "/--with-newlib/d" \
|
-e "/--with-newlib/d" \
|
||||||
|
|||||||
@@ -5,38 +5,19 @@ TARGET = i586-pc-freebsd7.0
|
|||||||
include $(top_srcdir)/mkspec.am
|
include $(top_srcdir)/mkspec.am
|
||||||
|
|
||||||
FREEBSD_VERS = 7.0
|
FREEBSD_VERS = 7.0
|
||||||
FREEBSD_RPMREL = @VERSION@
|
FREEBSD_RPMREL = 0.20090827.1
|
||||||
EXTRA_DIST += libs.add
|
EXTRA_DIST += libs.add
|
||||||
EXTRA_DIST += target-libs.add
|
EXTRA_DIST += target-libs.add
|
||||||
|
include ../libs.am
|
||||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
|
||||||
|
|
||||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(LIBS_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
|
||||||
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{freebsd_rpmvers},g" \
|
|
||||||
> $(TARGET)-libs.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-libs.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
|
|
||||||
|
|
||||||
BINUTILS_VERS = 2.19
|
BINUTILS_VERS = 2.19
|
||||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||||
BINUTILS_RPMREL = @VERSION@%{?dist}
|
BINUTILS_RPMREL = 0.20090827.1
|
||||||
include ../binutils.am
|
include ../binutils.am
|
||||||
BINUTILS_OPTS +=
|
BINUTILS_OPTS +=
|
||||||
|
|
||||||
GCC_VERS = 4.3.3
|
GCC_VERS = 4.3.4
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
GCC_PKGVERS = $(GCC_VERS)
|
||||||
GCC_RPMREL = @VERSION@%{?dist}
|
GCC_RPMREL = 0.20090827.1
|
||||||
include ../gcc.am
|
include ../gcc.am
|
||||||
GCC_OPTS += --languages=cxx,fortran,objc
|
GCC_OPTS += --languages=cxx,fortran,objc
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Name: i586-pc-freebsd7.0-binutils
|
|||||||
Summary: Binutils for target i586-pc-freebsd7.0
|
Summary: Binutils for target i586-pc-freebsd7.0
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{binutils_rpmvers}
|
Version: %{binutils_rpmvers}
|
||||||
Release: 0.20090506.1%{?dist}
|
Release: 0.20090827.1%{?dist}
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|||||||
@@ -31,9 +31,9 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 4.3.3
|
%define gcc_pkgvers 4.3.4
|
||||||
%define gcc_version 4.3.3
|
%define gcc_version 4.3.4
|
||||||
%define gcc_rpmvers %{expand:%(echo "4.3.3" | tr - _ )}
|
%define gcc_rpmvers %{expand:%(echo "4.3.4" | tr - _ )}
|
||||||
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd7.0-gcc
|
Name: i586-pc-freebsd7.0-gcc
|
||||||
@@ -41,7 +41,7 @@ Summary: i586-pc-freebsd7.0 gcc
|
|||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Version: %{gcc_rpmvers}
|
Version: %{gcc_rpmvers}
|
||||||
Release: 0.20090506.1%{?dist}
|
Release: 0.20090827.1%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
URL: http://gcc.gnu.org
|
URL: http://gcc.gnu.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@@ -83,10 +83,11 @@ BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
|
|||||||
|
|
||||||
%if %{defined _mpfr_minvers}
|
%if %{defined _mpfr_minvers}
|
||||||
# FIXME: This is an ugly cludge
|
# FIXME: This is an ugly cludge
|
||||||
%{?fc9:%global mpfr_provided 2.3.1}
|
|
||||||
%{?fc10:%global mpfr_provided 2.3.2}
|
%{?fc10:%global mpfr_provided 2.3.2}
|
||||||
%{?fc11:%global mpfr_provided 2.4.1}
|
%{?fc11:%global mpfr_provided 2.4.1}
|
||||||
%{?suse10_3:%global mpfr_provided 2.2.1}
|
%{?suse10_3:%global mpfr_provided 2.2.1}
|
||||||
|
%{?suse11_0:%global mpfr_provided 2.3.1}
|
||||||
|
%{?suse11_1:%global mpfr_provided 2.3.2}
|
||||||
%{?cygwin:%global mpfr_provided 2.4.1}
|
%{?cygwin:%global mpfr_provided 2.4.1}
|
||||||
%{?mingw32:%global mpfr_provided %{nil}}
|
%{?mingw32:%global mpfr_provided %{nil}}
|
||||||
|
|
||||||
@@ -123,13 +124,7 @@ Requires: i586-pc-freebsd7.0-binutils
|
|||||||
Requires: i586-pc-freebsd7.0-sys-root
|
Requires: i586-pc-freebsd7.0-sys-root
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "3.4"
|
%define _gcclibdir %{_prefix}/lib
|
||||||
%define gcclib %{_libdir}/gcc
|
|
||||||
%define gccexec %{_libexecdir}/gcc
|
|
||||||
%else
|
|
||||||
%define gcclib %{_libdir}/gcc-lib
|
|
||||||
%define gccexec %{_libdir}/gcc-lib
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
@@ -187,7 +182,7 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
|
|
||||||
languages="c"
|
languages="c"
|
||||||
languages="$languages,c++"
|
languages="$languages,c++"
|
||||||
languages="$languages,f95"
|
languages="$languages,fortran"
|
||||||
languages="$languages,objc"
|
languages="$languages,objc"
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||||
@@ -201,7 +196,7 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
--exec_prefix=%{_exec_prefix} \
|
--exec_prefix=%{_exec_prefix} \
|
||||||
--includedir=%{_includedir} \
|
--includedir=%{_includedir} \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_gcclibdir} \
|
||||||
--libexecdir=%{_libexecdir} \
|
--libexecdir=%{_libexecdir} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
@@ -241,12 +236,19 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
# Misplaced header file
|
# Misplaced header file
|
||||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
||||||
$RPM_BUILD_ROOT%{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include/
|
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include/
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# host library
|
# host library
|
||||||
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
|
# libiberty doesn't honor --libdir, but always installs to a
|
||||||
|
# magically guessed _libdir
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||||
|
%else
|
||||||
|
# libiberty installs to --libdir=...
|
||||||
|
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
||||||
|
%endif
|
||||||
|
|
||||||
# We use the version from binutils
|
# We use the version from binutils
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.0-c++filt%{_exeext}
|
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.0-c++filt%{_exeext}
|
||||||
@@ -258,20 +260,13 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
# Conflict with a native GCC's man pages
|
# Conflict with a native GCC's man pages
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
||||||
|
|
||||||
# # Bug in gcc-4.0.0pre
|
|
||||||
# mv $RPM_BUILD_ROOT%{_bindir}/gfortran $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.0-gfortran
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "3.4"
|
|
||||||
# Bug in gcc-3.4.0pre
|
# Bug in gcc-3.4.0pre
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.0-i586-pc-freebsd7.0-gcjh%{_exeext}
|
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.0-i586-pc-freebsd7.0-gcjh%{_exeext}
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "3.3"
|
|
||||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
||||||
# the fixinclude-install-tools
|
# the fixinclude-install-tools
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/install-tools
|
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/install-tools
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{gccexec}/i586-pc-freebsd7.0/%{gcc_version}/install-tools
|
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/install-tools
|
||||||
%endif
|
|
||||||
|
|
||||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.0/include/bits; then
|
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.0/include/bits; then
|
||||||
@@ -284,10 +279,10 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
|
|
||||||
rm -f dirs ;
|
rm -f dirs ;
|
||||||
echo "%defattr(-,root,root,-)" >> dirs
|
echo "%defattr(-,root,root,-)" >> dirs
|
||||||
echo "%dir %{gcclib}" >> dirs
|
echo "%dir %{_gcclibdir}/gcc" >> dirs
|
||||||
echo "%dir %{gcclib}/i586-pc-freebsd7.0" >> dirs
|
echo "%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.0" >> dirs
|
||||||
|
|
||||||
TGTDIR="%{gcclib}/i586-pc-freebsd7.0/%{gcc_version}"
|
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}"
|
||||||
for i in $f; do
|
for i in $f; do
|
||||||
case $i in
|
case $i in
|
||||||
\.) echo "%dir ${TGTDIR}" >> dirs
|
\.) echo "%dir ${TGTDIR}" >> dirs
|
||||||
@@ -299,13 +294,12 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
|
|
||||||
# Collect files to go into different packages
|
# Collect files to go into different packages
|
||||||
cp dirs build/files.gcc
|
cp dirs build/files.gcc
|
||||||
cp dirs build/files.g77
|
|
||||||
cp dirs build/files.gfortran
|
cp dirs build/files.gfortran
|
||||||
cp dirs build/files.objc
|
cp dirs build/files.objc
|
||||||
cp dirs build/files.gcj
|
cp dirs build/files.gcj
|
||||||
cp dirs build/files.g++
|
cp dirs build/files.g++
|
||||||
|
|
||||||
TGTDIR="%{gcclib}/i586-pc-freebsd7.0/%{gcc_version}"
|
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}"
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||||
for i in $f; do
|
for i in $f; do
|
||||||
case $i in
|
case $i in
|
||||||
@@ -320,6 +314,7 @@ Cross gcc for i586-pc-freebsd7.0.
|
|||||||
*include/objc*) ;;
|
*include/objc*) ;;
|
||||||
*include/g++*);;
|
*include/g++*);;
|
||||||
*include/c++*);;
|
*include/c++*);;
|
||||||
|
*finclude/*);;
|
||||||
*adainclude*);;
|
*adainclude*);;
|
||||||
*adalib*);;
|
*adalib*);;
|
||||||
*gnat1);;
|
*gnat1);;
|
||||||
@@ -367,7 +362,7 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i586-pc-freebsd7.0/' | %__find_provides
|
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.0/'} | %__find_provides
|
||||||
EOF
|
EOF
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||||
@@ -375,7 +370,7 @@ chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i586-pc-freebsd7.0/' | %__find_requires
|
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.0/'} | %__find_requires
|
||||||
EOF
|
EOF
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||||
@@ -427,37 +422,33 @@ GNU cc compiler for i586-pc-freebsd7.0.
|
|||||||
%files -n i586-pc-freebsd7.0-gcc -f build/files.gcc
|
%files -n i586-pc-freebsd7.0-gcc -f build/files.gcc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.0-gcc.1*
|
%{_mandir}/man1/i586-pc-freebsd7.0-gcc.1*
|
||||||
%if "%{gcc_version}" >= "3.4"
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.0-cpp.1*
|
%{_mandir}/man1/i586-pc-freebsd7.0-cpp.1*
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.0-gcov.1*
|
%{_mandir}/man1/i586-pc-freebsd7.0-gcov.1*
|
||||||
%endif
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd7.0-cpp%{_exeext}
|
%{_bindir}/i586-pc-freebsd7.0-cpp%{_exeext}
|
||||||
%{_bindir}/i586-pc-freebsd7.0-gcc%{_exeext}
|
%{_bindir}/i586-pc-freebsd7.0-gcc%{_exeext}
|
||||||
%if "%{gcc_version}" >= "3.3"
|
|
||||||
%{_bindir}/i586-pc-freebsd7.0-gcc-%{gcc_version}%{_exeext}
|
%{_bindir}/i586-pc-freebsd7.0-gcc-%{gcc_version}%{_exeext}
|
||||||
%endif
|
|
||||||
%{_bindir}/i586-pc-freebsd7.0-gcov%{_exeext}
|
%{_bindir}/i586-pc-freebsd7.0-gcov%{_exeext}
|
||||||
%{_bindir}/i586-pc-freebsd7.0-gccbug
|
%{_bindir}/i586-pc-freebsd7.0-gccbug
|
||||||
|
|
||||||
%dir %{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include
|
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
%if "%{gcc_version}" > "4.0.3"
|
||||||
%if "i586-pc-freebsd7.0" != "bfin-rtems4.10"
|
%if "i586-pc-freebsd7.0" != "bfin-rtems4.10"
|
||||||
%if "i586-pc-freebsd7.0" != "avr-rtems4.10"
|
%if "i586-pc-freebsd7.0" != "avr-rtems4.10"
|
||||||
%dir %{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include/ssp
|
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include/ssp
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
%dir %{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include-fixed
|
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include-fixed
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%dir %{gccexec}
|
%dir %{_libexecdir}/gcc
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0/%{gcc_version}
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}
|
||||||
%{gccexec}/i586-pc-freebsd7.0/%{gcc_version}/cc1%{_exeext}
|
%{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/cc1%{_exeext}
|
||||||
%{gccexec}/i586-pc-freebsd7.0/%{gcc_version}/collect2%{_exeext}
|
%{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/collect2%{_exeext}
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# i586-pc-freebsd7.0-gcc-c++
|
# i586-pc-freebsd7.0-gcc-c++
|
||||||
@@ -486,13 +477,13 @@ GCC c++ compiler for i586-pc-freebsd7.0.
|
|||||||
%{_bindir}/i586-pc-freebsd7.0-c++%{_exeext}
|
%{_bindir}/i586-pc-freebsd7.0-c++%{_exeext}
|
||||||
%{_bindir}/i586-pc-freebsd7.0-g++%{_exeext}
|
%{_bindir}/i586-pc-freebsd7.0-g++%{_exeext}
|
||||||
|
|
||||||
%dir %{gccexec}
|
%dir %{_libexecdir}/gcc
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0/%{gcc_version}
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}
|
||||||
%{gccexec}/i586-pc-freebsd7.0/%{gcc_version}/cc1plus%{_exeext}
|
%{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/cc1plus%{_exeext}
|
||||||
|
|
||||||
%dir %{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include
|
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include
|
||||||
%{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include/c++
|
%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include/c++
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# i586-pc-freebsd7.0-gcc-gfortran
|
# i586-pc-freebsd7.0-gcc-gfortran
|
||||||
@@ -518,10 +509,14 @@ GCC fortran compiler for i586-pc-freebsd7.0.
|
|||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.0-gfortran.1*
|
%{_mandir}/man1/i586-pc-freebsd7.0-gfortran.1*
|
||||||
|
|
||||||
%dir %{gccexec}
|
%dir %{_libexecdir}/gcc
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0/%{gcc_version}
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}
|
||||||
%{gccexec}/i586-pc-freebsd7.0/%{gcc_version}/f951%{_exeext}
|
%{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/f951%{_exeext}
|
||||||
|
|
||||||
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
|
%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/finclude
|
||||||
|
%endif
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# i586-pc-freebsd7.0-gcc-objc
|
# i586-pc-freebsd7.0-gcc-objc
|
||||||
@@ -542,10 +537,10 @@ GCC objc compiler for i586-pc-freebsd7.0.
|
|||||||
%files -n i586-pc-freebsd7.0-gcc-objc -f build/files.objc
|
%files -n i586-pc-freebsd7.0-gcc-objc -f build/files.objc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%dir %{gccexec}
|
%dir %{_libexecdir}/gcc
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0
|
||||||
%dir %{gccexec}/i586-pc-freebsd7.0/%{gcc_version}
|
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}
|
||||||
%{gccexec}/i586-pc-freebsd7.0/%{gcc_version}/cc1obj%{_exeext}
|
%{_libexecdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/cc1obj%{_exeext}
|
||||||
|
|
||||||
%{gcclib}/i586-pc-freebsd7.0/%{gcc_version}/include/objc
|
%{_gcclibdir}/gcc/i586-pc-freebsd7.0/%{gcc_version}/include/objc
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
%define __debug_install_post %{nil}
|
%define __debug_install_post %{nil}
|
||||||
|
|
||||||
Name: i586-pc-freebsd7.0
|
Name: i586-pc-freebsd7.0
|
||||||
Release: 0.20090506.1%{?dist}
|
Release: 0.20090827.1%{?dist}%{?dist}
|
||||||
License: FreeBSD
|
License: FreeBSD
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|||||||
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i586-pc-freebsd7.0/' | %__find_provides
|
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.0/'} | %__find_provides
|
||||||
EOF
|
EOF
|
||||||
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
||||||
%define __find_provides %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
%define __find_provides %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
||||||
@@ -160,7 +160,7 @@ chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|||||||
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.0/(lib|include|sys-root)' \
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i586-pc-freebsd7.0/' | %__find_requires
|
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.0/'} | %__find_requires
|
||||||
EOF
|
EOF
|
||||||
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
||||||
%define __find_requires %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
%define __find_requires %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ $(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binuti
|
|||||||
-e "/[@]SOURCES[@]/d" \
|
-e "/[@]SOURCES[@]/d" \
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
|
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
||||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
CLEANFILES += $(TARGET)-binutils.spec.in
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add
|
|||||||
-e "/[@]PREP[@]/d" \
|
-e "/[@]PREP[@]/d" \
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
|
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
-e "/[@]tool_target[@]-newlib/d" \
|
||||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
||||||
-e "/--with-newlib/d" \
|
-e "/--with-newlib/d" \
|
||||||
|
|||||||
Reference in New Issue
Block a user