mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 13:57:15 +00:00
New.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec
|
||||
rtems*.spec
|
||||
*.spec.in
|
||||
|
||||
@@ -5,56 +5,56 @@ TARGET = i686-pc-cygwin
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
CYGWIN_VERS = 1.5.25-15
|
||||
CYGWIN_RPMREL = 0.20081110.1%{?dist}
|
||||
CYGWIN_RPMREL = @VERSION@%{?dist}
|
||||
include ../cygwin.am
|
||||
|
||||
W32API_VERS = 3.12-1
|
||||
W32API_RPMREL = 0.20081110.1%{?dist}
|
||||
W32API_RPMREL = @VERSION@%{?dist}
|
||||
include ../w32api.am
|
||||
|
||||
NCURSES_VERS = 5.5-3
|
||||
NCURSES_RPMREL = 0.20080604.2%{?dist}
|
||||
NCURSES_RPMREL = @VERSION@%{?dist}
|
||||
include ../ncurses.am
|
||||
|
||||
EXPAT_VERS = 1.95.8-2
|
||||
EXPAT_RPMREL = 0.20080323.1%{?dist}
|
||||
EXPAT_RPMREL = @VERSION@%{?dist}
|
||||
include ../expat.am
|
||||
|
||||
READLINE_VERS = 5.2.12-10
|
||||
READLINE_RPMREL = 0.20080323.1%{?dist}
|
||||
READLINE_RPMREL = @VERSION@%{?dist}
|
||||
include ../readline.am
|
||||
|
||||
TERMCAP_VERS = 20050421-1
|
||||
TERMCAP_RPMREL = 0.20080323.1%{?dist}
|
||||
TERMCAP_RPMREL = @VERSION@%{?dist}
|
||||
include ../termcap.am
|
||||
|
||||
TERMINFO_VERS = 5.5_20061104-1
|
||||
TERMINFO_RPMREL = 0.20080604.1%{?dist}
|
||||
TERMINFO_RPMREL = @VERSION@%{?dist}
|
||||
include ../terminfo.am
|
||||
|
||||
ZLIB_VERS = 1.2.3-2
|
||||
ZLIB_RPMREL = 0.20080323.1%{?dist}
|
||||
ZLIB_RPMREL = @VERSION@%{?dist}
|
||||
include ../zlib.am
|
||||
|
||||
GMP_VERS = 4.2.1-1
|
||||
GMP_RPMREL = 0.20080323.1%{?dist}
|
||||
GMP_RPMREL = @VERSION@%{?dist}
|
||||
include ../gmp.am
|
||||
|
||||
MPFR_VERS = 2.4.1-1
|
||||
MPFR_RPMREL = 0.20090420.1%{?dist}
|
||||
MPFR_RPMREL = @VERSION@%{?dist}
|
||||
include ../mpfr.am
|
||||
|
||||
# Cygwin's binutils' versioning is bizarre
|
||||
# Check bfd/configure for the real version number
|
||||
BINUTILS_VERS = 2.18.50
|
||||
BINUTILS_PKGVERS = 20080624-2
|
||||
BINUTILS_RPMREL = 0.20081202.1%{?dist}
|
||||
BINUTILS_RPMREL = @VERSION@%{?dist}
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS += --disable-infos
|
||||
|
||||
GCC_VERS = 3.4.4
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 0.20081202.1%{?dist}
|
||||
GCC_RPMREL = @VERSION@%{?dist}
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=c,cxx
|
||||
GCC_OPTS += --disable-infos
|
||||
|
||||
180
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-binutils.spec
Normal file
180
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-binutils.spec
Normal file
@@ -0,0 +1,180 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define binutils_pkgvers 20080624-2
|
||||
%define binutils_version 2.18.50
|
||||
%define binutils_rpmvers %{expand:%(echo "2.18.50" | tr - _ )}
|
||||
|
||||
Name: i686-pc-cygwin-binutils
|
||||
Summary: Binutils for target i686-pc-cygwin
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
%if "i686-pc-cygwin" == "i686-pc-cygwin"
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_pkgvers}-src.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.17.50"
|
||||
Patch0: binutils-2.17.50-cygwin-%{binutils_pkgvers}.diff
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross binutils for target i686-pc-cygwin
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
%if "i686-pc-cygwin" == "i686-pc-cygwin"
|
||||
# The cygwin sources are leaking memory
|
||||
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
|
||||
%endif
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=i686-pc-cygwin \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--with-sysroot=%{_prefix}/i686-pc-cygwin/sys-root \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
cd ..
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
|
||||
# Conflict with a native binutils' infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# i686-pc-cygwin-binutils
|
||||
# ==============================================================
|
||||
# %package -n i686-pc-cygwin-binutils
|
||||
# Summary: rtems binutils for i686-pc-cygwin
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n i686-pc-cygwin-binutils
|
||||
GNU binutils targetting i686-pc-cygwin.
|
||||
|
||||
%files -n i686-pc-cygwin-binutils
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man1/i686-pc-cygwin-*.1*
|
||||
|
||||
%{_bindir}/i686-pc-cygwin-*
|
||||
|
||||
%dir %{_exec_prefix}/i686-pc-cygwin
|
||||
%dir %{_exec_prefix}/i686-pc-cygwin/bin
|
||||
%{_exec_prefix}/i686-pc-cygwin/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/i686-pc-cygwin/lib
|
||||
%{_exec_prefix}/i686-pc-cygwin/lib/ldscripts
|
||||
|
||||
141
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-expat.spec
Normal file
141
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-expat.spec
Normal file
@@ -0,0 +1,141 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define expat_version 1.95.8-2
|
||||
%define expat_rpmvers %{expand:%(echo 1.95.8-2 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-expat
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %expat_rpmvers
|
||||
Summary: Cygwin expat Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/expat/expat-%{expat_version}.tar.bz2
|
||||
Source1: ftp://cygwin.com/pub/cygwin/release/expat/libexpat0/libexpat0-%{expat_version}.tar.bz2
|
||||
|
||||
Provides: i686-pc-cygwin-expat-devel = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Cygwin expat libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
494
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-gcc.spec
Normal file
494
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-gcc.spec
Normal file
@@ -0,0 +1,494 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
|
||||
%define gcc_pkgvers 3.4.4
|
||||
%define gcc_version 3.4.4
|
||||
%define gcc_rpmvers %{expand:%(echo "3.4.4" | tr - _ )}
|
||||
|
||||
|
||||
Name: i686-pc-cygwin-gcc
|
||||
Summary: i686-pc-cygwin gcc
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
URL: http://gcc.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%define _gmp_minvers 4.1
|
||||
%else
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined _gmp_minvers}
|
||||
BuildRequires: gmp-devel >= %{_gmp_minvers}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%if "%{gcc_version}" >= "4.4.0"
|
||||
%define _mpfr_minvers 2.3.2
|
||||
%define mpfr_version 2.4.1
|
||||
%else
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%define _mpfr_minvers 2.3.1
|
||||
%define mpfr_version 2.3.2
|
||||
%else
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined _mpfr_minvers}
|
||||
# FIXME: This is an ugly cludge
|
||||
%{?fc9:%global mpfr_provided 2.3.1}
|
||||
%{?fc10:%global mpfr_provided 2.3.2}
|
||||
%{?fc11:%global mpfr_provided 2.4.1}
|
||||
%{?suse10_3:%global mpfr_provided 2.2.1}
|
||||
%{?cygwin:%global mpfr_provided 2.4.1}
|
||||
%{?mingw32:%global mpfr_provided %{nil}}
|
||||
|
||||
%if %{defined mpfr_provided}
|
||||
%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
|
||||
%define _build_mpfr 1
|
||||
%else
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
|
||||
%else
|
||||
BuildRequires: mpfr-devel >= %{_mpfr_minvers}
|
||||
%endif
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpfr 1
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: i686-pc-cygwin-gcc = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
BuildRequires: flex bison
|
||||
%endif
|
||||
|
||||
|
||||
BuildRequires: texinfo >= 4.2
|
||||
BuildRequires: i686-pc-cygwin-binutils
|
||||
BuildRequires: i686-pc-cygwin-sys-root
|
||||
|
||||
Requires: i686-pc-cygwin-binutils
|
||||
Requires: i686-pc-cygwin-sys-root
|
||||
Requires: i686-pc-cygwin-w32api
|
||||
|
||||
|
||||
%if "%{gcc_version}" >= "3.4"
|
||||
%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
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
|
||||
# Cygwin patch from
|
||||
# ftp://cygwin.com/pub/cygwin/release/gcc/gcc-core/gcc-core-3.4.4-3-src.tar.bz2
|
||||
Source70: gcc-3.4.4-3.patch
|
||||
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross gcc for i686-pc-cygwin.
|
||||
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
%{?PATCH0:%patch0 -p0}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a1
|
||||
%{?PATCH1:%patch1 -p0}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
%setup -q -T -D -n %{name}-%{version} -a60
|
||||
%{?PATCH60:%patch60 -p1}
|
||||
# Build mpfr one-tree style
|
||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
||||
%endif
|
||||
|
||||
# cygwin patches can't be directly applied through rpm
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
patch -p1 -t < %{SOURCE70} || true
|
||||
cd ..
|
||||
|
||||
# Fix timestamps
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
contrib/gcc_update --touch
|
||||
cd ..
|
||||
%build
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
languages="c"
|
||||
languages="$languages,c++"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
||||
%else
|
||||
# gcc is not ready to be compiled with -std=gnu99
|
||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
%endif
|
||||
../gcc-%{gcc_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--exec_prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_libdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--datadir=%{_datadir} \
|
||||
--build=%_build --host=%_host \
|
||||
--target=i686-pc-cygwin \
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gnu-as --with-gnu-ld --verbose \
|
||||
--with-newlib \
|
||||
--with-system-zlib \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--enable-threads \
|
||||
--with-sysroot=%{_exec_prefix}/i686-pc-cygwin/sys-root \
|
||||
--enable-languages="$languages" $optargs
|
||||
|
||||
%if "%_host" != "%_build"
|
||||
# Bug in gcc-3.2.1:
|
||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
||||
mkdir -p gcc/include
|
||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
cd ..
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
|
||||
%if "%{gcc_version}" <= "4.1.2"
|
||||
# Misplaced header file
|
||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
||||
$RPM_BUILD_ROOT%{gcclib}/i686-pc-cygwin/%{gcc_version}/include/
|
||||
fi
|
||||
%endif
|
||||
|
||||
# host library
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
|
||||
# We use the version from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i686-pc-cygwin-c++filt%{_exeext}
|
||||
|
||||
|
||||
# Conflict with a native GCC's infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
|
||||
# Conflict with a native GCC's man pages
|
||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
||||
|
||||
|
||||
%if "%{gcc_version}" >= "3.4"
|
||||
# Bug in gcc-3.4.0pre
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i686-pc-cygwin-i686-pc-cygwin-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
|
||||
# the fixinclude-install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/%{gcc_version}/install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{gccexec}/i686-pc-cygwin/%{gcc_version}/install-tools
|
||||
%endif
|
||||
|
||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i686-pc-cygwin/include/bits; then
|
||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/i686-pc-cygwin/include/bits
|
||||
fi
|
||||
|
||||
# Collect multilib subdirectories
|
||||
f=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
||||
|
||||
|
||||
rm -f dirs ;
|
||||
echo "%defattr(-,root,root,-)" >> dirs
|
||||
echo "%dir %{gcclib}" >> dirs
|
||||
echo "%dir %{gcclib}/i686-pc-cygwin" >> dirs
|
||||
|
||||
TGTDIR="%{gcclib}/i686-pc-cygwin/%{gcc_version}"
|
||||
for i in $f; do
|
||||
case $i in
|
||||
\.) echo "%dir ${TGTDIR}" >> dirs
|
||||
;;
|
||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Collect files to go into different packages
|
||||
cp dirs build/files.gcc
|
||||
cp dirs build/files.g77
|
||||
cp dirs build/files.gfortran
|
||||
cp dirs build/files.objc
|
||||
cp dirs build/files.gcj
|
||||
cp dirs build/files.g++
|
||||
|
||||
TGTDIR="%{gcclib}/i686-pc-cygwin/%{gcc_version}"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
||||
*f771) ;;
|
||||
*f951) ;;
|
||||
*cc1) ;;
|
||||
*cc1obj) ;;
|
||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
||||
*collect2) ;;
|
||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
||||
*include/objc*) ;;
|
||||
*include/g++*);;
|
||||
*include/c++*);;
|
||||
*adainclude*);;
|
||||
*adalib*);;
|
||||
*gnat1);;
|
||||
*jc1) ;;
|
||||
*jvgenmain) ;;
|
||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*) echo "$i" >> build/files.gcc ;;
|
||||
esac
|
||||
done
|
||||
|
||||
TGTDIR="%{_exec_prefix}/i686-pc-cygwin/lib"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
||||
# all other files belong to newlib
|
||||
*) echo "$i" >> build/files.newlib ;;
|
||||
esac
|
||||
done
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# i686-pc-cygwin-gcc
|
||||
# ==============================================================
|
||||
# %package -n i686-pc-cygwin-gcc
|
||||
# Summary: GNU cc compiler for i686-pc-cygwin
|
||||
# Group: Development/Tools
|
||||
# Version: %{gcc_rpmvers}
|
||||
# Requires: i686-pc-cygwin-binutils
|
||||
# Requires: i686-pc-cygwin-newlib = %{newlib_version}-@NEWLIB_RPMREL@
|
||||
# License: GPL
|
||||
|
||||
# %if %build_infos
|
||||
# Requires: gcc-common
|
||||
# %endif
|
||||
|
||||
%description -n i686-pc-cygwin-gcc
|
||||
GNU cc compiler for i686-pc-cygwin.
|
||||
|
||||
%files -n i686-pc-cygwin-gcc -f build/files.gcc
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man1/i686-pc-cygwin-gcc.1*
|
||||
%if "%{gcc_version}" >= "3.4"
|
||||
%{_mandir}/man1/i686-pc-cygwin-cpp.1*
|
||||
%{_mandir}/man1/i686-pc-cygwin-gcov.1*
|
||||
%endif
|
||||
|
||||
%{_bindir}/i686-pc-cygwin-cpp%{_exeext}
|
||||
%{_bindir}/i686-pc-cygwin-gcc%{_exeext}
|
||||
%if "%{gcc_version}" >= "3.3"
|
||||
%{_bindir}/i686-pc-cygwin-gcc-%{gcc_version}%{_exeext}
|
||||
%endif
|
||||
%{_bindir}/i686-pc-cygwin-gcov%{_exeext}
|
||||
%{_bindir}/i686-pc-cygwin-gccbug
|
||||
|
||||
%dir %{gcclib}/i686-pc-cygwin/%{gcc_version}/include
|
||||
%if "%{gcc_version}" > "4.0.3"
|
||||
%if "i686-pc-cygwin" != "bfin-rtems4.10"
|
||||
%if "i686-pc-cygwin" != "avr-rtems4.10"
|
||||
%dir %{gcclib}/i686-pc-cygwin/%{gcc_version}/include/ssp
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%dir %{gcclib}/i686-pc-cygwin/%{gcc_version}/include-fixed
|
||||
%endif
|
||||
|
||||
%dir %{gccexec}
|
||||
%dir %{gccexec}/i686-pc-cygwin
|
||||
%dir %{gccexec}/i686-pc-cygwin/%{gcc_version}
|
||||
%{gccexec}/i686-pc-cygwin/%{gcc_version}/cc1%{_exeext}
|
||||
%{gccexec}/i686-pc-cygwin/%{gcc_version}/collect2%{_exeext}
|
||||
|
||||
# ==============================================================
|
||||
# i686-pc-cygwin-gcc-c++
|
||||
# ==============================================================
|
||||
%package -n i686-pc-cygwin-gcc-c++
|
||||
Summary: GCC c++ compiler for i686-pc-cygwin
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: i686-pc-cygwin-gcc-c++ = %{gcc_rpmvers}
|
||||
%endif
|
||||
Provides: i686-pc-cygwin-c++ = %{gcc_rpmvers}-%{release}
|
||||
Obsoletes: i686-pc-cygwin-c++ < %{gcc_rpmvers}-%{release}
|
||||
|
||||
Requires: i686-pc-cygwin-gcc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n i686-pc-cygwin-gcc-c++
|
||||
GCC c++ compiler for i686-pc-cygwin.
|
||||
|
||||
%files -n i686-pc-cygwin-gcc-c++ -f build/files.g++
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man1/i686-pc-cygwin-g++.1*
|
||||
|
||||
%{_bindir}/i686-pc-cygwin-c++%{_exeext}
|
||||
%{_bindir}/i686-pc-cygwin-g++%{_exeext}
|
||||
|
||||
%dir %{gccexec}
|
||||
%dir %{gccexec}/i686-pc-cygwin
|
||||
%dir %{gccexec}/i686-pc-cygwin/%{gcc_version}
|
||||
%{gccexec}/i686-pc-cygwin/%{gcc_version}/cc1plus%{_exeext}
|
||||
|
||||
%dir %{gcclib}/i686-pc-cygwin/%{gcc_version}/include
|
||||
%{gcclib}/i686-pc-cygwin/%{gcc_version}/include/c++
|
||||
|
||||
|
||||
|
||||
144
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-gmp.spec
Normal file
144
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-gmp.spec
Normal file
@@ -0,0 +1,144 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define gmp_version 4.2.1-1
|
||||
%define gmp_rpmvers %{expand:%(echo 4.2.1-1 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-gmp
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %gmp_rpmvers
|
||||
Summary: Cygwin gmp Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
Source1: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp3/libgmp3-%{gmp_version}.tar.bz2
|
||||
Source2: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp-devel/libgmp-devel-%{gmp_version}.tar.bz2
|
||||
|
||||
Provides: i686-pc-cygwin-gmp-devel = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Cygwin gmp libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE0})
|
||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE1})
|
||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE2})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
143
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-libs.spec
Normal file
143
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-libs.spec
Normal file
@@ -0,0 +1,143 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define cygwin_version 1.5.25-15
|
||||
%define cygwin_rpmvers %{expand:%(echo 1.5.25-15 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %cygwin_rpmvers
|
||||
Summary: i686-pc-cygwin libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%description
|
||||
i686-pc-cygwin libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
%{__tar} cf - usr/lib usr/include | ( cd i686-pc-cygwin/sys-root ; %{__tar} xf -)
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%package sys-root
|
||||
Group: Development/Tools
|
||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
||||
|
||||
%description sys-root
|
||||
i686-pc-cygwin target files for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
144
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-mpfr.spec
Normal file
144
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-mpfr.spec
Normal file
@@ -0,0 +1,144 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define mpfr_version 2.4.1-1
|
||||
%define mpfr_rpmvers %{expand:%(echo 2.4.1-1 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-mpfr
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %mpfr_rpmvers
|
||||
Summary: Cygwin mpfr Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpfr/mpfr-%{mpfr_version}.tar.bz2
|
||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr1/libmpfr1-%{mpfr_version}.tar.bz2
|
||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr-devel/libmpfr-devel-%{mpfr_version}.tar.bz2
|
||||
|
||||
Provides: i686-pc-cygwin-mpfr-devel = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Cygwin mpfr libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE0})
|
||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE1})
|
||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE2})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
153
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-ncurses.spec
Normal file
153
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-ncurses.spec
Normal file
@@ -0,0 +1,153 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define ncurses_version 5.5-3
|
||||
%define ncurses_rpmvers %{expand:%(echo 5.5-3 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-ncurses
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %ncurses_rpmvers
|
||||
Summary: Cygwin ncurses Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/ncurses/ncurses-%{ncurses_version}.tar.bz2
|
||||
Source1: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses8/libncurses8-%{ncurses_version}.tar.bz2
|
||||
Source2: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{ncurses_version}.tar.bz2
|
||||
|
||||
BuildRequires: i686-pc-cygwin-terminfo
|
||||
|
||||
Provides: i686-pc-cygwin-libncurses-devel = %{version}-%{release}
|
||||
Provides: i686-pc-cygwin-ncurses-devel = %{version}-%{release}
|
||||
Requires: i686-pc-cygwin-terminfo
|
||||
|
||||
%description
|
||||
Cygwin ncurses libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
sed \
|
||||
-e "s,^prefix=.*$,prefix=$RPM_BUILD_ROOT%{_prefix}/i686-pc-cygwin/sys-root/usr," \
|
||||
< i686-pc-cygwin/sys-root/etc/postinstall/libncurses-devel.sh \
|
||||
> postinst.sh
|
||||
|
||||
/bin/sh -x ./postinst.sh
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
142
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-readline.spec
Normal file
142
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-readline.spec
Normal file
@@ -0,0 +1,142 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define readline_version 5.2.12-10
|
||||
%define readline_rpmvers %{expand:%(echo 5.2.12-10 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-readline
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %readline_rpmvers
|
||||
Summary: Cygwin readline Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/readline/readline-%{readline_version}.tar.bz2
|
||||
Source1: ftp://cygwin.com/pub/cygwin/release/readline/libreadline6/libreadline6-%{readline_version}.tar.bz2
|
||||
|
||||
Requires: i686-pc-cygwin-libncurses-devel
|
||||
Provides: i686-pc-cygwin-readline-devel = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Cygwin readline libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
139
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-termcap.spec
Normal file
139
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-termcap.spec
Normal file
@@ -0,0 +1,139 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define termcap_version 20050421-1
|
||||
%define termcap_rpmvers %{expand:%(echo 20050421-1 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-termcap
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %termcap_rpmvers
|
||||
Summary: Cygwin termcap Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/termcap/termcap-%{termcap_version}.tar.bz2
|
||||
|
||||
Provides: i686-pc-cygwin-termcap-devel = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Cygwin termcap libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
145
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-terminfo.spec
Normal file
145
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-terminfo.spec
Normal file
@@ -0,0 +1,145 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define terminfo_version 5.5_20061104-1
|
||||
%define terminfo_rpmvers %{expand:%(echo 5.5_20061104-1 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-terminfo
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %terminfo_rpmvers
|
||||
Summary: Cygwin terminfo Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/terminfo/terminfo-%{terminfo_version}.tar.bz2
|
||||
|
||||
Provides: i686-pc-cygwin-terminfo-devel = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Cygwin terminfo libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
||||
rm -f i686-pc-cygwin/sys-root/usr/share/terminfo/e/Eterm-color
|
||||
rm -f i686-pc-cygwin/sys-root/usr/share/terminfo/n/ncr260vt300wpp
|
||||
pushd i686-pc-cygwin/sys-root/usr/share/terminfo
|
||||
ln -s ../e/Eterm e/Eterm-color
|
||||
ln -s ../n/NCR260VT300WPP0 n/ncr260vt300wpp
|
||||
popd
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
154
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-w32api.spec
Normal file
154
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-w32api.spec
Normal file
@@ -0,0 +1,154 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define w32api_version 3.12-1
|
||||
%define w32api_rpmvers %{expand:%(echo 3.12-1 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-w32api
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %w32api_rpmvers
|
||||
Summary: Cygwin w32api Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%description
|
||||
Cygwin w32api libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
mkdir -p i686-pc-cygwin
|
||||
cp -a usr/lib usr/include i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
%{__tar} cf - usr/lib usr/include | ( cd i686-pc-cygwin/sys-root ; %{__tar} xf -)
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/lib
|
||||
%{_prefix}/i686-pc-cygwin/include
|
||||
|
||||
%package sys-root
|
||||
Group: Development/Tools
|
||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
||||
|
||||
%description sys-root
|
||||
i686-pc-cygwin target files for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
139
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-zlib.spec
Normal file
139
contrib/crossrpms/cygwin/i686/i686-pc-cygwin-zlib.spec
Normal file
@@ -0,0 +1,139 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define zlib_version 1.2.3-2
|
||||
%define zlib_rpmvers %{expand:%(echo 1.2.3-2 | tr - _)}
|
||||
|
||||
Name: i686-pc-cygwin-zlib
|
||||
Release: 0.20090506.1%{?dist}
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %zlib_rpmvers
|
||||
Summary: Cygwin zlib Libraries
|
||||
|
||||
Source0: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-%{zlib_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%description
|
||||
Cygwin zlib libraries.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
|
||||
%build
|
||||
rm -rf i686-pc-cygwin
|
||||
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p i686-pc-cygwin/sys-root
|
||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-cygwin/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/i686-pc-cygwin
|
||||
%{_prefix}/i686-pc-cygwin/sys-root
|
||||
|
||||
|
||||
Reference in New Issue
Block a user