diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-01-21 06:27:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-01-21 06:27:57 +0000 |
commit | 15319e15e12a6000547fc87fbf7721b3fa590115 (patch) | |
tree | 01628786face96faa494931dd42a4409f98a646b /contrib | |
parent | Add gmp, mpfr, *-helper. (diff) | |
download | rtems-15319e15e12a6000547fc87fbf7721b3fa590115.tar.bz2 |
New.
Diffstat (limited to 'contrib')
14 files changed, 436 insertions, 0 deletions
diff --git a/contrib/crossrpms/mingw32/gmp.am b/contrib/crossrpms/mingw32/gmp.am new file mode 100644 index 0000000000..58ef35fdd2 --- /dev/null +++ b/contrib/crossrpms/mingw32/gmp.am @@ -0,0 +1,21 @@ +EXTRA_DIST += target-gmp.add +EXTRA_DIST += gmp.add + +GMP_SUBPACKAGES = $(top_srcdir)/common/common.add +GMP_SUBPACKAGES += $(srcdir)/gmp.add +GMP_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add +GMP_SUBPACKAGES += $(top_srcdir)/common/clean.add +GMP_SUBPACKAGES += $(srcdir)/target-gmp.add + +$(TARGET)-gmp.spec.in: $(GMP_SUBPACKAGES) Makefile.am + cat $(GMP_SUBPACKAGES) | sed \ + -e "s/[@]GMP_VERS[@]/$(GMP_VERS)/g" \ + -e "s/[@]GMP_RPMREL[@]/$(GMP_RPMREL)/g" \ + -e "s,%{gcc_rpmvers},%{gmp_rpmvers},g" \ + | $(MKSPEC0) > $(TARGET)-gmp.spec.in +CLEANFILES += $(TARGET)-gmp.spec.in + +@rpmprefix@$(TARGET)-gmp.spec: $(TARGET)-gmp.spec.in + $(MKSPEC) $(TARGET)-gmp.spec.in | $(SPECSTRIP) > $@ +CLEANFILES += @rpmprefix@$(TARGET)-gmp.spec +noinst_DATA += @rpmprefix@$(TARGET)-gmp.spec diff --git a/contrib/crossrpms/mingw32/i686/gmp.add b/contrib/crossrpms/mingw32/i686/gmp.add new file mode 100644 index 0000000000..a755718293 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/gmp.add @@ -0,0 +1,69 @@ +%define gmp_version @GMP_VERS@ +%define gmp_rpmvers %{expand:%(echo @GMP_VERS@ | tr - _)} +%define debug_package %{nil} + +Name: @rpmprefix@@tool_target@-gmp +Release: @GMP_RPMREL@ +License: GPL +Group: Development/Tools + +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Version: %gmp_rpmvers +Summary: Cygwin gmp Libraries + +Source0: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2 + +Provides: @rpmprefix@@tool_target@-gmp-devel = %{version}-%{release} + +%define _mingw32_target i686-pc-mingw32 +%if 0%{?fedora} >= 9 +# Fedora ships a mingw toolchain installed to /usr +%define _mingw32_sysroot /usr/%{_mingw32_target}/sys-root +%else +%define _mingw32_sysroot %{_prefix}/@tool_target@/sys-root +%endif + +BuildRequires: m4 +BuildRequires: @rpmprefix@i686-pc-mingw32-gcc + +%description +MinGW gmp libraries. + +%prep +%setup -c -q + +%build + %if "%{_prefix}" != "/usr" + export PATH="%{_bindir}:${PATH}" + %endif + + mkdir -p build + + cd build + + ../gmp-%{gmp_version}/configure \ + --prefix=%{_mingw32_sysroot}/mingw \ + --bindir=%{_bindir} \ + --exec_prefix=%{_mingw32_sysroot}/mingw \ + --includedir=%{_mingw32_sysroot}/mingw/include \ + --libdir=%{_mingw32_sysroot}/mingw/lib \ + --libexecdir=%{_mingw32_sysroot}/mingw/libexec \ + --mandir=%{_mingw32_sysroot}/mingw/share/man \ + --infodir=%{_mingw32_sysroot}/mingw/share/info \ + --datadir=%{_mingw32_sysroot}/mingw/share \ + --build=%_build --host=@tool_target@ \ + --enable-static \ + --disable-shared + + cd .. + +%install + rm -rf $RPM_BUILD_ROOT + + cd build + + make DESTDIR=$RPM_BUILD_ROOT install + + cd .. diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-binutils-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-binutils-helper.spec.in new file mode 100644 index 0000000000..29f9b12672 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-binutils-helper.spec.in @@ -0,0 +1,46 @@ +Name: @rpmprefix@i686-pc-mingw32-binutils-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS binutils helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-binutils +Requires: mingw32-binutils +Provides: @rpmprefix@i686-pc-mingw32-binutils + +%define _prefix @_prefix@ + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build +rm -rf .%{_prefix}/bin +mkdir -p .%{_prefix}/bin +pushd .%{_prefix}/bin +for f in $(rpm -ql mingw32-binutils|grep /usr/bin); do \ +ln -s $f .; \ +done +popd + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin +cp -a .%{_prefix}/bin/* $RPM_BUILD_ROOT%{_prefix}/bin + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_prefix} + + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-curses-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-curses-helper.spec.in new file mode 100644 index 0000000000..6e2b50a6ce --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-curses-helper.spec.in @@ -0,0 +1,26 @@ +Name: @rpmprefix@i686-pc-mingw32-curses-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS mingw32 curses libs helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-pdcurses +Requires: mingw32-pdcurses +Provides: @rpmprefix@i686-pc-mingw32-ncurses +Provides: @rpmprefix@i686-pc-mingw32-ncurses-devel + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build + +%files + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-expat-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-expat-helper.spec.in new file mode 100644 index 0000000000..98db602937 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-expat-helper.spec.in @@ -0,0 +1,26 @@ +Name: @rpmprefix@i686-pc-mingw32-expat-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS mingw32 expat libs helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-expat +Requires: mingw32-expat +Provides: @rpmprefix@i686-pc-mingw32-expat +Provides: @rpmprefix@i686-pc-mingw32-expat-devel + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build + +%files + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-gcc-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-gcc-helper.spec.in new file mode 100644 index 0000000000..964a730acf --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-gcc-helper.spec.in @@ -0,0 +1,46 @@ +Name: @rpmprefix@i686-pc-mingw32-gcc-helper +Version: 0.20090121.0 +Release: 2%{?dist} +Summary: RTEMS gcc helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-gcc +Requires: mingw32-gcc +Provides: @rpmprefix@i686-pc-mingw32-gcc + +%define _prefix @_prefix@ + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build +rm -rf .%{_prefix}/bin +mkdir -p .%{_prefix}/bin +pushd .%{_prefix}/bin +for f in $(rpm -ql mingw32-gcc|grep /usr/bin); do \ +ln -s $f .; \ +done +popd + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin +cp -a .%{_prefix}/bin/* $RPM_BUILD_ROOT%{_prefix}/bin + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_prefix} + + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-libs-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-libs-helper.spec.in new file mode 100644 index 0000000000..aed12ffba8 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-libs-helper.spec.in @@ -0,0 +1,25 @@ +Name: @rpmprefix@i686-pc-mingw32-libs-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS mingw32 runtime libs helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-runtime +Requires: mingw32-runtime +Provides: @rpmprefix@i686-pc-mingw32-libs + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build + +%files + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-readline-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-readline-helper.spec.in new file mode 100644 index 0000000000..22aeabfad7 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-readline-helper.spec.in @@ -0,0 +1,26 @@ +Name: @rpmprefix@i686-pc-mingw32-readline-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS mingw32 readline libs helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-readline +Requires: mingw32-readline +Provides: @rpmprefix@i686-pc-mingw32-readline +Provides: @rpmprefix@i686-pc-mingw32-readline-devel + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build + +%files + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-w32api-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-w32api-helper.spec.in new file mode 100644 index 0000000000..fff2c46ad1 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-w32api-helper.spec.in @@ -0,0 +1,25 @@ +Name: @rpmprefix@i686-pc-mingw32-w32api-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS mingw32 runtime libs helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-w32api +Requires: mingw32-w32api +Provides: @rpmprefix@i686-pc-mingw32-w32api + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build + +%files + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-zlib-helper.spec.in b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-zlib-helper.spec.in new file mode 100644 index 0000000000..f873e395f0 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/i686-pc-mingw32-zlib-helper.spec.in @@ -0,0 +1,26 @@ +Name: @rpmprefix@i686-pc-mingw32-zlib-helper +Version: 0.20090121.0 +Release: 1%{?dist} +Summary: RTEMS mingw32 zlib libs helper + +Group: Development +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: mingw32-zlib +Requires: mingw32-zlib +Provides: @rpmprefix@i686-pc-mingw32-zlib +Provides: @rpmprefix@i686-pc-mingw32-zlib-devel + +%description +%{summary} + +%prep +%setup -q -c -T -n %{name}-%{version} + +%build + +%files + +%changelog diff --git a/contrib/crossrpms/mingw32/i686/mpfr.add b/contrib/crossrpms/mingw32/i686/mpfr.add new file mode 100644 index 0000000000..f63a0aff01 --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/mpfr.add @@ -0,0 +1,69 @@ +%define mpfr_version @MPFR_VERS@ +%define mpfr_rpmvers %{expand:%(echo @MPFR_VERS@ | tr - _)} +%define debug_package %{nil} + +Name: @rpmprefix@@tool_target@-mpfr +Release: @MPFR_RPMREL@ +License: GPL +Group: Development/Tools + +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Version: %mpfr_rpmvers +Summary: MinGW MPFR Libraries + +Source0: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2 + +Provides: @rpmprefix@@tool_target@-mpfr-devel = %{version}-%{release} + +%define _mingw32_target i686-pc-mingw32 +%if 0%{?fedora} >= 9 +# Fedora ships a mingw toolchain installed to /usr +%define _mingw32_sysroot /usr/%{_mingw32_target}/sys-root +%else +%define _mingw32_sysroot %{_prefix}/@tool_target@/sys-root +%endif + +BuildRequires: @rpmprefix@i686-pc-mingw32-gcc +BuildRequires: @rpmprefix@i686-pc-mingw32-gmp-devel + +%description +MinGW MPFR libraries. + +%prep +%setup -c -q + +%build + %if "%{_prefix}" != "/usr" + export PATH="%{_bindir}:${PATH}" + %endif + + mkdir -p build + + cd build + + ../mpfr-%{mpfr_version}/configure \ + --prefix=%{_mingw32_sysroot}/mingw \ + --bindir=%{_bindir} \ + --exec_prefix=%{_mingw32_sysroot}/mingw \ + --includedir=%{_mingw32_sysroot}/mingw/include \ + --libdir=%{_mingw32_sysroot}/mingw/lib \ + --libexecdir=%{_mingw32_sysroot}/mingw/libexec \ + --mandir=%{_mingw32_sysroot}/mingw/share/man \ + --infodir=%{_mingw32_sysroot}/mingw/share/info \ + --datadir=%{_mingw32_sysroot}/mingw/share \ + --build=%_build --host=@tool_target@ \ + --enable-static \ + --disable-shared + + cd .. + +%install + rm -rf $RPM_BUILD_ROOT + + cd build + + make DESTDIR=$RPM_BUILD_ROOT install + + cd .. diff --git a/contrib/crossrpms/mingw32/i686/target-gmp.add b/contrib/crossrpms/mingw32/i686/target-gmp.add new file mode 100644 index 0000000000..9bfb8f399e --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/target-gmp.add @@ -0,0 +1,4 @@ +%files +%defattr(-,root,root,-) +%{_mingw32_sysroot}/mingw +%exclude %{_mingw32_sysroot}/mingw/share/info/dir diff --git a/contrib/crossrpms/mingw32/i686/target-mpfr.add b/contrib/crossrpms/mingw32/i686/target-mpfr.add new file mode 100644 index 0000000000..f05629201d --- /dev/null +++ b/contrib/crossrpms/mingw32/i686/target-mpfr.add @@ -0,0 +1,5 @@ +%files +%defattr(-,root,root,-) +%{_mingw32_sysroot}/mingw +%exclude %{_mingw32_sysroot}/mingw/share/info/dir + diff --git a/contrib/crossrpms/mingw32/mpfr.am b/contrib/crossrpms/mingw32/mpfr.am new file mode 100644 index 0000000000..73ef84bd4f --- /dev/null +++ b/contrib/crossrpms/mingw32/mpfr.am @@ -0,0 +1,22 @@ +EXTRA_DIST += target-mpfr.add +EXTRA_DIST += mpfr.add + +MPFR_SUBPACKAGES = $(top_srcdir)/common/common.add +MPFR_SUBPACKAGES += $(srcdir)/mpfr.add +MPFR_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add +MPFR_SUBPACKAGES += $(top_srcdir)/common/clean.add +MPFR_SUBPACKAGES += $(srcdir)/target-mpfr.add + +$(TARGET)-mpfr.spec.in: $(MPFR_SUBPACKAGES) Makefile.am + cat $(MPFR_SUBPACKAGES) | sed \ + -e "s/[@]MPFR_VERS[@]/$(MPFR_VERS)/g" \ + -e "s/[@]MPFR_RPMREL[@]/$(MPFR_RPMREL)/g" \ + -e "s,%{gcc_rpmvers},%{mpfr_rpmvers},g" \ + | $(MKSPEC0) > $(TARGET)-mpfr.spec.in +CLEANFILES += $(TARGET)-mpfr.spec.in + +@rpmprefix@$(TARGET)-mpfr.spec: $(TARGET)-mpfr.spec.in + $(MKSPEC) $(TARGET)-mpfr.spec.in | $(SPECSTRIP) > $@ +CLEANFILES += @rpmprefix@$(TARGET)-mpfr.spec +noinst_DATA += @rpmprefix@$(TARGET)-mpfr.spec + |