forked from Imagelibrary/rtems
Remove.
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
install-sh
|
||||
missing
|
||||
setup.cache
|
||||
aclocal.m4
|
||||
autom4te*.cache
|
||||
config.*
|
||||
configure
|
||||
Makefile
|
||||
Makefile.in
|
||||
i686-pc-cygwin-binutils.spec
|
||||
i686-pc-cygwin-gcc.spec
|
||||
i686-pc-cygwin-libs.spec
|
||||
i686-pc-cygwin-mingw.spec
|
||||
i686-pc-cygwin-w32api.spec
|
||||
@@ -1,118 +0,0 @@
|
||||
2006-01-08 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* .cvsignore: Add install-sh and missing.
|
||||
|
||||
2004-11-05 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* i686-pc-cygwin-binutils.spec.in, i686-pc-cygwin-gcc.spec.in,
|
||||
i686-pc-cygwin-libs.spec.in, i686-pc-cygwin-mingw.spec.in,
|
||||
i686-pc-cygwin-w32api.spec.in: New.
|
||||
* i386-cygwin-binutils.spec.in, i386-cygwin-gcc.spec.in,
|
||||
i386-cygwin-libs.spec.in, i386-cygwin-mingw.spec.in,
|
||||
i386-cygwin-w32api.spec.in: Remove.
|
||||
* setup.def: Update to current cygwin.
|
||||
* Makefile.am, configure.ac: Reflect changes above.
|
||||
|
||||
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require automake > 1.9.
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Cosmetics.
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Require automake >= 1.8, autoconf >= 2.59.
|
||||
|
||||
2003-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Cosmetics.
|
||||
|
||||
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AC_PREREQ(2.57).
|
||||
|
||||
2003-02-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* i386-cygwin-gcc.spec.in: Use %_prefix instead of %prefix.
|
||||
Add gnatlib.
|
||||
Add %defattr(-,root,root).
|
||||
Provide virtual packages i386-cygwin-[c++|g++|gnat].
|
||||
|
||||
2003-01-28 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* .cvsignore: Add entries to .cvsignore.
|
||||
|
||||
2003-01-27 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* i386-cygwin-gcc.spec.in, setup.def: Enabled building of GNAT for
|
||||
revision 2.
|
||||
|
||||
2003-01-27 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* i386-cygwin-gcc.spec.in, i386-cygwin-mingw.spec.in, setup.def:
|
||||
Updated to current Cygwin versions and fixed some minor nits in
|
||||
the specifications.
|
||||
|
||||
2003-01-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* setup.def: Update to binutils-20021117-1.
|
||||
* i386-cygwin-binutils.spec.in: Reflect update to binutils-20021127-1.
|
||||
Adaptations to RH-8.0/rpm-4.1.
|
||||
|
||||
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Reformat.
|
||||
Add autom4te*cache.
|
||||
Remove autom4te.cache.
|
||||
|
||||
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac:
|
||||
AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.6]).
|
||||
* Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
|
||||
2001-02-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* i386-cygwin-libs.spec.in, i386-cygwin-mingw.spec.in,
|
||||
i386-cygwin-w32api.spec.in: Modified group.
|
||||
|
||||
2001-01-22 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* i386-cygwin-binutils.spec.in, i386-cygwin-gcc.spec.in,
|
||||
i386-cygwin-libs.spec.in, i386-cygwin-mingw.spec.in,
|
||||
i386-cygwin-w32api.spec.in, setup.def: Updated to reflect latest
|
||||
versions and packaging.
|
||||
|
||||
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
|
||||
* configure.in: Remove.
|
||||
* configure.ac: New file, generated from configure.in by autoupdate.
|
||||
|
||||
2001-09-13 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* .cvsignore: Corrected for missing files.
|
||||
|
||||
2001-08-31 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* .cvsignore: Missed in previous commit.
|
||||
|
||||
2001-08-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am, .cvsignore, configure.in, i386-cygwin-binutils.spec.in,
|
||||
i386-cygwin-gcc.spec.in, i386-cygwin-libs.spec.in,
|
||||
i386-cygwin-w32api.spec.in, i386-cygwin-mingw.spec.in, setup, setup.def:
|
||||
New files that support building RPMs for Linux hosted cross compilers
|
||||
targeting Cygwin.
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
RPM_SPECS_DATA = i686-pc-cygwin-binutils.spec i686-pc-cygwin-libs.spec \
|
||||
i686-pc-cygwin-mingw.spec i686-pc-cygwin-w32api.spec \
|
||||
i686-pc-cygwin-gcc.spec
|
||||
|
||||
CONFIGURE_DEPENDENCIES = setup.cache
|
||||
setup.cache: setup.def
|
||||
cp setup.def $@
|
||||
|
||||
DISTCLEANFILES = setup.cache
|
||||
|
||||
noinst_SCRIPTS = setup
|
||||
noinst_DATA = setup.def
|
||||
|
||||
EXTRA_DIST = $(noinst_SCRIPTS) $(noinst_DATA) .cvsignore
|
||||
@@ -1,80 +0,0 @@
|
||||
## $Id$
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([rtems-contrib-cygwin],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
|
||||
AC_CONFIG_SRCDIR([setup])
|
||||
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.9])
|
||||
|
||||
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
||||
. ./setup.cache
|
||||
|
||||
# Some linux distributions use /usr/src/packages
|
||||
# redhat uses /usr/src/redhat
|
||||
# others might use /usr/src
|
||||
AC_MSG_CHECKING(for rpm SPECS directory)
|
||||
if test -d /usr/src/packages/SPECS;
|
||||
then
|
||||
RPM_SPECSdir=/usr/src/packages/SPECS;
|
||||
elif test -d /usr/src/redhat/SPECS;
|
||||
then
|
||||
RPM_SPECSdir=/usr/src/redhat/SPECS;
|
||||
elif test -d /usr/src/SPECS;
|
||||
then
|
||||
RPM_SPECSdir=/usr/src/SPECS;
|
||||
elif test -d /usr/local/src/redhat/SPECS;
|
||||
then
|
||||
RPM_SPECSdir=/usr/local/src/redhat/SPECS;
|
||||
fi
|
||||
if test x"$RPM_SPECSdir" = x"" ; then
|
||||
AC_MSG_ERROR(not found)
|
||||
fi
|
||||
AC_MSG_RESULT($RPM_SPECSdir)
|
||||
AC_SUBST(RPM_SPECSdir)
|
||||
|
||||
BINUTILS_VERS="${binutils_version}"
|
||||
AC_SUBST(BINUTILS_VERS)
|
||||
BINUTILS_RPMVERS=`echo ${binutils_version} | tr '-' '_'`
|
||||
AC_SUBST(BINUTILS_RPMVERS)
|
||||
BINUTILS_RPMREL="${binutils_rpm_release}"
|
||||
AC_SUBST(BINUTILS_RPMREL)
|
||||
|
||||
MINGW_VERS="${mingw_version}"
|
||||
AC_SUBST(MINGW_VERS)
|
||||
MINGW_RPMVERS=`echo ${mingw_version} | tr '-' '_'`
|
||||
AC_SUBST(MINGW_RPMVERS)
|
||||
MINGW_RPMREL="${mingw_rpm_release}"
|
||||
AC_SUBST(MINGW_RPMREL)
|
||||
|
||||
W32API_VERS="${w32api_version}"
|
||||
AC_SUBST(W32API_VERS)
|
||||
W32API_RPMVERS=`echo ${w32api_version} | tr '-' '_'`
|
||||
AC_SUBST(W32API_RPMVERS)
|
||||
W32API_RPMREL="${w32api_rpm_release}"
|
||||
AC_SUBST(W32API_RPMREL)
|
||||
|
||||
CYGWIN_VERS="${cygwin_version}"
|
||||
AC_SUBST(CYGWIN_VERS)
|
||||
CYGWIN_RPMVERS=`echo ${cygwin_version} | tr '-' '_'`
|
||||
AC_SUBST(CYGWIN_RPMVERS)
|
||||
CYGWIN_RPMREL="${cygwin_rpm_release}"
|
||||
AC_SUBST(CYGWIN_RPMREL)
|
||||
|
||||
GCC_VERS="${gcc_version}"
|
||||
AC_SUBST(GCC_VERS)
|
||||
GCC_RPMVERS=`echo ${gcc_version} | tr '-' '_'`
|
||||
AC_SUBST(GCC_RPMVERS)
|
||||
GCC_RPMREL="${gcc_rpm_release}"
|
||||
AC_SUBST(GCC_RPMREL)
|
||||
|
||||
RPM_BUILD_ROOT="$rpm_build_root/%{name}-root"
|
||||
AC_SUBST(RPM_BUILD_ROOT)
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
i686-pc-cygwin-binutils.spec
|
||||
i686-pc-cygwin-libs.spec
|
||||
i686-pc-cygwin-w32api.spec
|
||||
i686-pc-cygwin-gcc.spec
|
||||
i686-pc-cygwin-mingw.spec
|
||||
])
|
||||
AC_OUTPUT
|
||||
@@ -1,68 +0,0 @@
|
||||
#
|
||||
# spec file for binutils package targetting cygwin
|
||||
#
|
||||
|
||||
%define binutils_version @BINUTILS_VERS@
|
||||
%define binutils_rpmvers %{expand: %(echo @BINUTILS_VERS@ | tr - _)}
|
||||
|
||||
Distribution: Linux
|
||||
Name: i686-pc-cygwin-binutils
|
||||
Summary: binutils for target i686-pc-cygwin
|
||||
Group: Cygwin
|
||||
Release: @BINUTILS_RPMREL@
|
||||
Summary: binutils for i686-pc-cygwin
|
||||
License: GPL/LGPL
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
BuildRequires: bison
|
||||
|
||||
Version: %binutils_rpmvers
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_version}-src.tar.bz2
|
||||
NoSource: 0
|
||||
%description
|
||||
|
||||
Cross binutils for target cygwin
|
||||
|
||||
%prep
|
||||
# untar the sources inside i686-pc-cygwin-binutils
|
||||
%setup -q -c -n i686-pc-cygwin-binutils -a 0
|
||||
|
||||
%build
|
||||
test -d build || mkdir build
|
||||
cd build
|
||||
../binutils-%{binutils_version}/configure --target=i686-pc-cygwin \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--verbose \
|
||||
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
||||
--bindir=%{_bindir} --libdir=%{_libdir} --includedir=%{_includedir}
|
||||
|
||||
make all
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
cd build
|
||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
|
||||
# BUG: The info files don't get canonicalized
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{prefix}/lib/libiberty.a
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%doc %{_mandir}/man1/i686-pc-cygwin-*.1*
|
||||
|
||||
%{_bindir}/*
|
||||
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%dir %{_prefix}/i686-pc-cygwin/bin
|
||||
%{_prefix}/i686-pc-cygwin/bin/*
|
||||
|
||||
%dir %{_prefix}/i686-pc-cygwin/lib
|
||||
%{_prefix}/i686-pc-cygwin/lib/ldscripts
|
||||
@@ -1,126 +0,0 @@
|
||||
#
|
||||
# spec file for building gcc for cygwin
|
||||
#
|
||||
|
||||
%define gcc_pkgvers @GCC_VERS@
|
||||
%define gcc_version %{expand:%%(echo "@GCC_VERS@" | sed -e 's,-.*,,')}
|
||||
%define gcc_rpmvers %{expand:%%(echo "@GCC_VERS@" | tr - _ )}
|
||||
|
||||
# RH's brp-strip* scripts are not able to handle foreign binaries
|
||||
# Switch of all stripping
|
||||
%define __os_install_post /usr/lib/rpm/redhat/brp-compress
|
||||
|
||||
Distribution: Linux
|
||||
Name: i686-pc-cygwin-gcc
|
||||
Summary: i686-pc-cygwin gcc.
|
||||
|
||||
Group: Cygwin
|
||||
Release: @GCC_RPMREL@
|
||||
License: GPL
|
||||
Version: %gcc_rpmvers
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/gcc/gcc-core/gcc-core-%{gcc_pkgvers}-src.tar.bz2
|
||||
Source1: ftp://cygwin.com/pub/cygwin/release/gcc/gcc-g++/gcc-g++-%{gcc_pkgvers}-src.tar.bz2
|
||||
Source2: ftp://cygwin.com/pub/cygwin/release/gcc/gcc-ada/gcc-ada-%{gcc_pkgvers}-src.tar.bz2
|
||||
NoSource: 0
|
||||
NoSource: 1
|
||||
NoSource: 2
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: i686-pc-cygwin-binutils
|
||||
BuildRequires: i686-pc-cygwin-libs
|
||||
BuildRequires: i686-pc-cygwin-w32api-libs
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
Requires: i686-pc-cygwin-binutils
|
||||
Requires: i686-pc-cygwin-libs
|
||||
Requires: i686-pc-cygwin-w32api-libs
|
||||
|
||||
Provides: i686-pc-cygwin-c++
|
||||
|
||||
%description
|
||||
Cross gcc for target cygwin
|
||||
|
||||
%prep
|
||||
# untar the sources inside i686-pc-cygwin-gcc
|
||||
%setup -c -n %{name} -a 0 -a 1 -a 2
|
||||
# Cygwin's packaging sucks ;)
|
||||
tar xjvf gcc-core-%{gcc_version}.tar.bz2
|
||||
tar xjvf gcc-g++-%{gcc_version}.tar.bz2
|
||||
tar xjvf gcc-ada-%{gcc_version}.tar.bz2
|
||||
pushd gcc-%{gcc_version} > /dev/null
|
||||
patch -p1 -f < ../gcc-%{gcc_pkgvers}.patch || true
|
||||
popd > /dev/null
|
||||
test -d build || mkdir build
|
||||
|
||||
%build
|
||||
# touch gcc-%{gcc_version}/gcc/ada/treeprs.ads
|
||||
# touch gcc-%{gcc_version}/gcc/ada/[es]info.h
|
||||
# touch gcc-%{gcc_version}/gcc/ada/nmake.ad[bs]
|
||||
|
||||
pushd build > /dev/null
|
||||
|
||||
../gcc-%{gcc_version}/configure --target=i686-pc-cygwin \
|
||||
--with-gnu-as --with-gnu-ld --verbose \
|
||||
--with-system-zlib \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--enable-languages=c,c++ \
|
||||
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
||||
--bindir=%{_bindir} --libdir=%{_libdir} --includedir=%{_includedir} \
|
||||
--datadir=%{_datadir}
|
||||
|
||||
# This would require write access to %{_prefix}/i686-pc-cygwin
|
||||
# --with-headers=%{_prefix}/i686-pc-cygwin/sys-root/usr/include \
|
||||
# --with-libs=%{_prefix}/i686-pc-cygwin/sys-root/usr/lib
|
||||
|
||||
# Doesn't work with gcc-3.3.1-1
|
||||
# --with-sysroot=%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
make all
|
||||
|
||||
# Building with an external libc -> the nominal way to building gnat works!
|
||||
# make -C gcc cross-gnattools
|
||||
# make -C gcc ada.all.cross
|
||||
# make -C gcc gnatlib
|
||||
popd > /dev/null
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
pushd build > /dev/null
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
# cd back to build/
|
||||
popd > /dev/null
|
||||
|
||||
# We don't want info files
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
|
||||
# libiberty comes from cygwin-libs
|
||||
rm -f $RPM_BUILD_ROOT%{_prefix}/i686-pc-cygwin/lib/libiberty.a
|
||||
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
|
||||
|
||||
# GCC ships broken *.la's
|
||||
find $RPM_BUILD_ROOT%{_prefix} -name '*.la' -exec rm -f {} \;
|
||||
|
||||
# Not required for cygwin
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/gcc-lib/i686-pc-cygwin/*/install-tools
|
||||
|
||||
# These conflict with the native gcc's man pages
|
||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/cpp.*
|
||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gcov.*
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_prefix}/lib/gcc-lib
|
||||
%{_mandir}/man1/i686-pc-cygwin*.1*
|
||||
|
||||
# Conflicts with native gcc
|
||||
# %{_datadir}/locale/*/LC_MESSAGES/*.mo
|
||||
@@ -1,78 +0,0 @@
|
||||
#
|
||||
# spec file for package i686-pc-cygwin-libs
|
||||
#
|
||||
|
||||
%define cygwin_version @CYGWIN_VERS@
|
||||
%define cygwin_rpmvers %{expand: %(echo @CYGWIN_VERS@ | tr - _)}
|
||||
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Distribution: Linux
|
||||
Name: i686-pc-cygwin
|
||||
Release: @CYGWIN_RPMREL@
|
||||
License: Red Hat Inc.
|
||||
Group: Development/Tools/Cygwin
|
||||
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %cygwin_rpmvers
|
||||
Summary: Cygwin Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2
|
||||
NoSource: 0
|
||||
|
||||
%description
|
||||
Cygwin libraries.
|
||||
|
||||
%prep
|
||||
%setup -c
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
cp -a usr i686-pc-cygwin/sys-root
|
||||
|
||||
# Setup sys-lib and sys-include (Required by gcc < 3.4)
|
||||
mkdir -p i686-pc-cygwin/lib
|
||||
cp -a i686-pc-cygwin/sys-root/usr/lib/* i686-pc-cygwin/lib
|
||||
mkdir -p i686-pc-cygwin/include
|
||||
cp -a i686-pc-cygwin/sys-root/usr/include/* i686-pc-cygwin/include
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%package libs
|
||||
Group: Development/Tools/Cygwin
|
||||
Summary: i686-pc-cygwin target files for gcc < 3.4
|
||||
AutoReqProv: No
|
||||
|
||||
%description libs
|
||||
Cygwin target files or gcc < 3.4
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/include
|
||||
%{_prefix}/i686-pc-cygwin/lib
|
||||
|
||||
%package sys-root
|
||||
Group: Development/Tools/Cygwin
|
||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
||||
AutoReqProv: No
|
||||
|
||||
%description sys-root
|
||||
Cygwin target files for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
@@ -1,79 +0,0 @@
|
||||
#
|
||||
# spec file for package i686-pc-cygwin-mingw
|
||||
#
|
||||
|
||||
%define mingw_version @MINGW_VERS@
|
||||
%define mingw_rpmvers @MINGW_RPMVERS@
|
||||
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Vendor: Ralf Corsepius
|
||||
Distribution: Linux
|
||||
Name: i686-pc-cygwin-mingw
|
||||
Release: @MINGW_RPMREL@
|
||||
Copyright: Red Hat Inc.
|
||||
Group: Development/Tools/Cygwin
|
||||
|
||||
Packager: ralf@links2linux.de
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
|
||||
Version: %mingw_rpmvers
|
||||
Summary: Cygwin's mingw libs
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/mingw/mingw-runtime-%{mingw_version}.tar.bz2
|
||||
NoSource: 0
|
||||
|
||||
%description
|
||||
Cygwin mingw-runtime
|
||||
|
||||
%prep
|
||||
%setup -c
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
cp -a usr i686-pc-cygwin/sys-root
|
||||
|
||||
# Setup sys-lib and sys-include (Required by gcc < 3.4)
|
||||
mkdir -p i686-pc-cygwin/lib
|
||||
cp -a i686-pc-cygwin/sys-root/usr/lib/* i686-pc-cygwin/lib
|
||||
mkdir -p i686-pc-cygwin/include
|
||||
cp -a i686-pc-cygwin/sys-root/usr/include/* i686-pc-cygwin/include
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%package libs
|
||||
Group: Development/Tools/Cygwin
|
||||
Summary: i686-pc-cygwin mingw target files for gcc < 3.4
|
||||
AutoReqProv: No
|
||||
|
||||
%description libs
|
||||
Cygwin mingw target files or gcc < 3.4
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/include
|
||||
%{_prefix}/i686-pc-cygwin/lib
|
||||
|
||||
%package sys-root
|
||||
Group: Development/Tools/Cygwin
|
||||
Summary: i686-pc-cygwin mingw target files for gcc >= 3.4
|
||||
AutoReqProv: No
|
||||
|
||||
%description sys-root
|
||||
Cygwin mingw target files for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
@@ -1,78 +0,0 @@
|
||||
#
|
||||
# spec file for package i686-pc-cygwin-w32api
|
||||
#
|
||||
|
||||
%define w32api_version @W32API_VERS@
|
||||
%define w32api_rpmvers %{expand: %(echo @W32API_VERS@ | tr - _)}
|
||||
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Distribution: Linux
|
||||
Name: i686-pc-cygwin-w32api
|
||||
Release: @W32API_RPMREL@
|
||||
License: Red Hat Inc.
|
||||
Group: Cygwin
|
||||
Provides: i686-pc-cygwin-w32api
|
||||
|
||||
Autoreqprov: off
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %w32api_rpmvers
|
||||
Summary: Cygwin's w32api libs
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2
|
||||
|
||||
NoSource: 0
|
||||
|
||||
%description
|
||||
Cygwin's w32api libs
|
||||
|
||||
%prep
|
||||
%setup -c
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
cp -a usr i686-pc-cygwin/sys-root
|
||||
|
||||
# Setup lib and include (Required by gcc < 3.4)
|
||||
mkdir -p i686-pc-cygwin/lib
|
||||
cp -a i686-pc-cygwin/sys-root/usr/lib/* i686-pc-cygwin/lib
|
||||
mkdir -p i686-pc-cygwin/include
|
||||
cp -a i686-pc-cygwin/sys-root/usr/include/* i686-pc-cygwin/include
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%package libs
|
||||
Group: Development/Tools/Cygwin
|
||||
Summary: i686-pc-cygwin w32api libs for gcc < 3.4
|
||||
AutoReqProv: No
|
||||
|
||||
%description libs
|
||||
Cygwin w32api libs or gcc < 3.4
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/include
|
||||
%{_prefix}/i686-pc-cygwin/lib
|
||||
|
||||
%package sys-root
|
||||
Group: Development/Tools/Cygwin
|
||||
Summary: i686-pc-cygwin w32api libs for gcc >= 3.4
|
||||
AutoReqProv: No
|
||||
|
||||
%description sys-root
|
||||
Cygwin w32api libs for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
@@ -1,111 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
CFG=setup.cache
|
||||
|
||||
# RTEMS tools setup
|
||||
|
||||
if test ! -f ./$CFG;
|
||||
then
|
||||
echo -n "restoring default setup.cache .."
|
||||
cp ./setup.def ./$CFG
|
||||
echo " done"
|
||||
fi
|
||||
|
||||
echo -n "loading setup from ./$CFG .."
|
||||
. ./$CFG
|
||||
echo " done"
|
||||
echo
|
||||
|
||||
menu_setup()
|
||||
{
|
||||
while true;
|
||||
do
|
||||
echo
|
||||
echo " Source packages setup"
|
||||
echo
|
||||
echo "0 binutils version : $binutils_version"
|
||||
echo "1 binutils rpm release : $binutils_rpm_release"
|
||||
echo "2 cygwin version : $cygwin_version"
|
||||
echo "3 cygwin rpm release : $cygwin_rpm_release"
|
||||
echo "4 mingw version : $mingw_version"
|
||||
echo "5 mingw rpm release : $mingw_rpm_release"
|
||||
echo "6 w32api version : $w32api_version"
|
||||
echo "7 w32api rpm release : $w32api_rpm_release"
|
||||
echo "8 gcc version : $gcc_version"
|
||||
echo "9 gcc rpm release : $gcc_rpm_release"
|
||||
echo "a rpm build root : $rpm_build_root"
|
||||
echo
|
||||
|
||||
echo -n "[0-9a] or any other key to quit >"
|
||||
read sel
|
||||
case $sel in
|
||||
0) echo -n "BINUTILS source >"
|
||||
read binutils_version ;;
|
||||
1) echo -n "BINUTILS rpm release >"
|
||||
read binutils_rpm_release ;;
|
||||
2) echo -n "CYGWIN source >"
|
||||
read cygwin_version ;;
|
||||
3) echo -n "CYGWIN rpm release >"
|
||||
read cygwin_rpm_release ;;
|
||||
4) echo -n "MINGW source >"
|
||||
read mingw_version ;;
|
||||
5) echo -n "MINGW rpm release >"
|
||||
read mingw_rpm_release ;;
|
||||
6) echo -n "W32API source >"
|
||||
read w32api_version ;;
|
||||
7) echo -n "W32API rpm release >"
|
||||
read w32api_rpm_release ;;
|
||||
8) echo -n "GCC source >"
|
||||
read gcc_version ;;
|
||||
9) echo -n "GCC RPM release >"
|
||||
read gcc_rpm_release ;;
|
||||
a) echo -n "RPM build root >"
|
||||
read rpm_build_root ;;
|
||||
*)
|
||||
return 0 ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
save_setup()
|
||||
{
|
||||
echo -n "saving setup to $CFG .."
|
||||
|
||||
echo "# RTEMS tools setup" > $CFG
|
||||
|
||||
echo "binutils_version=$binutils_version" >> $CFG
|
||||
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
|
||||
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
|
||||
|
||||
echo "mingw_version=$mingw_version" >> $CFG
|
||||
echo "mingw_patch_version=$mingw_patch_version" >> $CFG
|
||||
echo "mingw_rpm_release=$mingw_rpm_release" >> $CFG
|
||||
|
||||
echo "cygwin_version=$cygwin_version" >> $CFG
|
||||
echo "cygwin_patch_version=$cygwin_patch_version" >> $CFG
|
||||
echo "cygwin_rpm_release=$cygwin_rpm_release" >> $CFG
|
||||
|
||||
echo "w32api_version=$w32api_version" >> $CFG
|
||||
echo "w32api_patch_version=$w32api_patch_version" >> $CFG
|
||||
echo "w32api_rpm_release=$w32api_rpm_release" >> $CFG
|
||||
|
||||
echo "gcc_version=$gcc_version" >> $CFG
|
||||
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
|
||||
echo "gcc_rpm_release=$gcc_rpm_release" >> $CFG
|
||||
|
||||
echo "rpm_build_root=$rpm_build_root" >> $CFG
|
||||
|
||||
echo " done"
|
||||
test -f Makefile || ./configure
|
||||
}
|
||||
|
||||
menu_setup
|
||||
|
||||
echo
|
||||
echo -n "Save setup [y|n] >"
|
||||
read sel
|
||||
case $sel in
|
||||
''|y*|Y*) save_setup ;;
|
||||
*) ;;
|
||||
esac
|
||||
@@ -1,16 +0,0 @@
|
||||
#
|
||||
# Cygwin cross tools setup
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
binutils_version=20040725-2
|
||||
binutils_rpm_release=0
|
||||
mingw_version=3.5-1
|
||||
mingw_rpm_release=0
|
||||
w32api_version=3.1-1
|
||||
w32api_rpm_release=0
|
||||
cygwin_version=1.5.11-1
|
||||
cygwin_rpm_release=0
|
||||
gcc_version=3.3.3-3
|
||||
gcc_rpm_release=0
|
||||
rpm_build_root=/var/tmp
|
||||
@@ -1,9 +0,0 @@
|
||||
aclocal.m4
|
||||
autom4te*.cache
|
||||
config.*
|
||||
configure
|
||||
install-sh
|
||||
Makefile
|
||||
Makefile.in
|
||||
missing
|
||||
*.spec
|
||||
@@ -1,50 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
RPM_BUILD_ROOT = /var/tmp/%{name}-%{version}
|
||||
|
||||
PREFIX = /opt/i386-freebsd5.2.1
|
||||
FREEBSD_VERS = 5.2.1
|
||||
FREEBSD_RPMREL = 0.rc.2
|
||||
BINUTILS_VERS = 2.15
|
||||
BINUTILS_RPMREL = 0
|
||||
GCC_VERS = 3.4.0
|
||||
GCC_RPMREL = 0
|
||||
|
||||
noinst_DATA =
|
||||
EXTRA_DIST =
|
||||
DISTCLEANFILES =
|
||||
|
||||
noinst_DATA += i386-freebsd-libs.spec
|
||||
i386-freebsd-libs.spec: i386-freebsd-libs.spec.in Makefile.am
|
||||
sed \
|
||||
-e 's,[@]FREEBSD_VERS[@],$(FREEBSD_VERS),g' \
|
||||
-e 's,[@]FREEBSD_RPMREL[@],$(FREEBSD_RPMREL),g' \
|
||||
-e 's,[@]RPM_BUILD_ROOT[@],$(RPM_BUILD_ROOT),g' \
|
||||
-e 's,[@]PREFIX[@],$(PREFIX),g' \
|
||||
< $< > $@
|
||||
EXTRA_DIST += i386-freebsd-libs.spec.in
|
||||
DISTCLEANFILES += i386-freebsd-libs.spec
|
||||
|
||||
noinst_DATA += i386-freebsd-binutils.spec
|
||||
i386-freebsd-binutils.spec: i386-freebsd-binutils.spec.in Makefile.am
|
||||
sed \
|
||||
-e 's,[@]BINUTILS_VERS[@],$(BINUTILS_VERS),g' \
|
||||
-e 's,[@]BINUTILS_RPMREL[@],$(BINUTILS_RPMREL),g' \
|
||||
-e 's,[@]RPM_BUILD_ROOT[@],$(RPM_BUILD_ROOT),g' \
|
||||
-e 's,[@]PREFIX[@],$(PREFIX),g' \
|
||||
< $< > $@
|
||||
EXTRA_DIST += i386-freebsd-binutils.spec.in
|
||||
DISTCLEANFILES += i386-freebsd-binutils.spec
|
||||
|
||||
noinst_DATA += i386-freebsd-gcc.spec
|
||||
i386-freebsd-gcc.spec: i386-freebsd-gcc.spec.in Makefile.am
|
||||
sed \
|
||||
-e 's,[@]GCC_VERS[@],$(GCC_VERS),g' \
|
||||
-e 's,[@]GCC_RPMREL[@],$(GCC_RPMREL),g' \
|
||||
-e 's,[@]RPM_BUILD_ROOT[@],$(RPM_BUILD_ROOT),g' \
|
||||
-e 's,[@]PREFIX[@],$(PREFIX),g' \
|
||||
< $< > $@
|
||||
EXTRA_DIST += i386-freebsd-gcc.spec.in
|
||||
DISTCLEANFILES += i386-freebsd-gcc.spec
|
||||
@@ -1,13 +0,0 @@
|
||||
## $Id$
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([rtems-contrib-freebsd],[0.0],[rtems-bugs@rtems.com])
|
||||
AC_CONFIG_AUX_DIR(.)
|
||||
AC_CONFIG_SRCDIR([i386-freebsd-libs.spec.in])
|
||||
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.9])
|
||||
|
||||
AC_PATH_PROG(RPM,rpm)
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
@@ -1,83 +0,0 @@
|
||||
#
|
||||
# spec file for binutils package targetting freebsd
|
||||
#
|
||||
|
||||
%define _prefix @PREFIX@
|
||||
|
||||
%define binutils_version @BINUTILS_VERS@
|
||||
%define binutils_rpmvers %{expand: %(echo @BINUTILS_VERS@ | tr - _)}
|
||||
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Vendor: RTEMS.org
|
||||
Distribution: Linux
|
||||
Name: i386-freebsd5-binutils
|
||||
Summary: binutils for target i386-freebsd5
|
||||
Group: freebsd
|
||||
Release: @BINUTILS_RPMREL@
|
||||
Summary: binutils for i386-freebsd5
|
||||
License: GPL/LGPL
|
||||
Packager: Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
|
||||
Version: %binutils_rpmvers
|
||||
Source0: ftp://ftp.gnu.org.com/pub/gnu/binutils/binutils-%{binutils_version}-20040411.tar.bz2
|
||||
NoSource: 0
|
||||
|
||||
# Urgh, but RH's find-* is too stupid to cope with foreign objects
|
||||
# Autoreqprov: off
|
||||
|
||||
%description
|
||||
|
||||
Cross binutils for target freebsd
|
||||
|
||||
%prep
|
||||
# untar the sources inside i386-freebsd5-binutils
|
||||
%setup -c -n i386-freebsd5-binutils -a 0
|
||||
|
||||
%build
|
||||
test -d build || mkdir build
|
||||
cd build
|
||||
../binutils-%{binutils_version}/configure --target=i386-freebsd5 \
|
||||
--disable-nls --disable-win32-registry \
|
||||
--verbose --prefix=%{prefix}
|
||||
|
||||
make all
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
cd build
|
||||
make prefix=$RPM_BUILD_ROOT%{prefix} install
|
||||
|
||||
# A bug in binutils: binutils does not install share/locale
|
||||
# however it uses it
|
||||
../binutils-%{binutils_version}/mkinstalldirs \
|
||||
$RPM_BUILD_ROOT%{prefix}/share/locale
|
||||
|
||||
# We don't want info files
|
||||
rm -rf $RPM_BUILD_ROOT%{prefix}/info
|
||||
|
||||
%files
|
||||
|
||||
%dir %{prefix}/man
|
||||
%dir %{prefix}/man/man1
|
||||
%doc %{prefix}/man/man1/i386-freebsd5*
|
||||
|
||||
# %dir %{prefix}/include
|
||||
# %{prefix}/include/*.h
|
||||
|
||||
%exclude %{prefix}/lib
|
||||
|
||||
%dir %{prefix}/share
|
||||
%dir %{prefix}/share/locale
|
||||
|
||||
%dir %{prefix}/bin
|
||||
%{prefix}/bin/*
|
||||
|
||||
%dir %{prefix}/i386-freebsd5
|
||||
%dir %{prefix}/i386-freebsd5/bin
|
||||
%{prefix}/i386-freebsd5/bin/*
|
||||
|
||||
%dir %{prefix}/i386-freebsd5/lib
|
||||
%{prefix}/i386-freebsd5/lib/ldscripts
|
||||
@@ -1,92 +0,0 @@
|
||||
#
|
||||
# spec file for building gcc for freebsd
|
||||
#
|
||||
|
||||
%define _prefix @PREFIX@
|
||||
|
||||
%define gcc_version @GCC_VERS@
|
||||
%define gcc_rpmvers %{expand: %(echo @GCC_VERS@ | tr - _)}
|
||||
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Vendor: RTEMS.org
|
||||
Distribution: Linux
|
||||
Name: i386-freebsd5-gcc
|
||||
Summary: i386-freebsd5 gcc.
|
||||
Group: FreeBSD
|
||||
Release: @GCC_RPMREL@
|
||||
License: gcc is GPL/LGPL
|
||||
Packager: Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
Version: %gcc_rpmvers
|
||||
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-%{gcc_version}-20040412.tar.bz2
|
||||
NoSource: 0
|
||||
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
|
||||
# Urgh, but RH's find-* is too stupid to cope with foreign objects
|
||||
Autoreqprov: off
|
||||
|
||||
BuildRequires: i386-freebsd5-binutils
|
||||
BuildRequires: i386-freebsd5-libs
|
||||
Requires: i386-freebsd5-binutils
|
||||
Requires: i386-freebsd5-libs
|
||||
Provides: i386-freebsd5-gcc
|
||||
|
||||
%description
|
||||
Cross gcc for target solaris
|
||||
|
||||
%prep
|
||||
# untar the sources inside i386-freebsd5-gcc
|
||||
%setup -c -n %{name}-%{version} -a 0
|
||||
|
||||
# touch gcc-%{gcc_version}/gcc/ada/treeprs.ads
|
||||
# touch gcc-%{gcc_version}/gcc/ada/[es]info.h
|
||||
# touch gcc-%{gcc_version}/gcc/ada/nmake.ad[bs]
|
||||
|
||||
pushd gcc-%{gcc_version}
|
||||
contrib/gcc_update --touch
|
||||
popd
|
||||
|
||||
test -d build || mkdir build
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
cd build
|
||||
|
||||
../gcc-%{gcc_version}/configure --target=i386-freebsd5 \
|
||||
--with-gnu-as --with-gnu-ld --without-newlib --verbose \
|
||||
--disable-nls --enable-languages=c,c++ \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--with-sysroot=%{_prefix}/i386-freebsd5/sys-root \
|
||||
--prefix=%{_prefix}
|
||||
|
||||
make all
|
||||
|
||||
# make -C gcc gnatlib
|
||||
# make -C gcc cross-gnattools
|
||||
# make -C gcc ada.all.cross
|
||||
|
||||
# We don't want info files
|
||||
# make info
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
cd build
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} install
|
||||
# cd back to build/
|
||||
cd ..
|
||||
|
||||
# libiberty comes from freebsd5-libs or binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_prefix}/i386-freebsd5/lib/libiberty.a
|
||||
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
|
||||
|
||||
# GCC ships broken *.la's
|
||||
find $RPM_BUILD_ROOT%{_prefix} -name '*.la' -exec rm -f {} \;
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_prefix}
|
||||
# We don't want infos
|
||||
%exclude %{_prefix}/info
|
||||
@@ -1,103 +0,0 @@
|
||||
#
|
||||
# spec file for package i386-freebsd5-libs
|
||||
#
|
||||
|
||||
%define _prefix @PREFIX@
|
||||
|
||||
%define freebsd_version @FREEBSD_VERS@
|
||||
%define freebsd_rpmvers %{expand: %(echo @FREEBSD_VERS@ | tr - _)}
|
||||
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Vendor: RTEMS.org
|
||||
Distribution: Linux
|
||||
Name: i386-freebsd5-libs
|
||||
Release: @FREEBSD_RPMREL@
|
||||
Copyright: FreeBSD
|
||||
Group: freebsd
|
||||
|
||||
Packager: Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: @RPM_BUILD_ROOT@
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %freebsd_rpmvers
|
||||
Summary: freebsd
|
||||
Prefix: %{_prefix}
|
||||
|
||||
# Urgh, but RH's find-* is too stupid to cope with foreign objects
|
||||
Autoreqprov: off
|
||||
Provides: i386-freebsd5-libs
|
||||
|
||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aa
|
||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ab
|
||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ac
|
||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ad
|
||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ae
|
||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.af
|
||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ag
|
||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ah
|
||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ai
|
||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aj
|
||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ak
|
||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.al
|
||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.am
|
||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.an
|
||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ao
|
||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ap
|
||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aq
|
||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ar
|
||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.as
|
||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.at
|
||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.au
|
||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.av
|
||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.aw
|
||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ax
|
||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.ay
|
||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/base.az
|
||||
|
||||
%description
|
||||
FreeBSD libs
|
||||
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
cat \
|
||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
||||
%SOURCE25 | tar xzvf -
|
||||
|
||||
%build
|
||||
mkdir -p i386-freebsd5/sys-root
|
||||
tar cvf - usr/lib usr/include lib | ( cd i386-freebsd5/sys-root ; tar xvf -)
|
||||
|
||||
pushd i386-freebsd5/sys-root/usr/lib
|
||||
# missing files
|
||||
rm -f lib*_p.*
|
||||
# not needed
|
||||
rm -rf aout compat
|
||||
|
||||
# Fix up symlinks
|
||||
find -type l -exec ls -l {} \; | \
|
||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
||||
case $aA in
|
||||
/lib* ) # link
|
||||
rm $a8;
|
||||
b=`basename $aA`
|
||||
ln -s ../../lib/$b $a8
|
||||
;;
|
||||
esac
|
||||
done
|
||||
popd
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{prefix}
|
||||
cp -a i386-freebsd5 $RPM_BUILD_ROOT%{prefix}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{prefix}/i386-freebsd5
|
||||
@@ -1,12 +0,0 @@
|
||||
install-sh
|
||||
missing
|
||||
aclocal.m4
|
||||
autom4te*.cache
|
||||
config.*
|
||||
configure
|
||||
Makefile
|
||||
Makefile.in
|
||||
setup.cache
|
||||
sparc-solaris-binutils.spec
|
||||
sparc-solaris-gcc.spec
|
||||
sparc-solaris-libs.spec
|
||||
Reference in New Issue
Block a user