mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
New.
This commit is contained in:
21
contrib/crossrpms/mingw32/gmp.am
Normal file
21
contrib/crossrpms/mingw32/gmp.am
Normal file
@@ -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
|
||||
69
contrib/crossrpms/mingw32/i686/gmp.add
Normal file
69
contrib/crossrpms/mingw32/i686/gmp.add
Normal file
@@ -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 ..
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
69
contrib/crossrpms/mingw32/i686/mpfr.add
Normal file
69
contrib/crossrpms/mingw32/i686/mpfr.add
Normal file
@@ -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 ..
|
||||
4
contrib/crossrpms/mingw32/i686/target-gmp.add
Normal file
4
contrib/crossrpms/mingw32/i686/target-gmp.add
Normal file
@@ -0,0 +1,4 @@
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_mingw32_sysroot}/mingw
|
||||
%exclude %{_mingw32_sysroot}/mingw/share/info/dir
|
||||
5
contrib/crossrpms/mingw32/i686/target-mpfr.add
Normal file
5
contrib/crossrpms/mingw32/i686/target-mpfr.add
Normal file
@@ -0,0 +1,5 @@
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_mingw32_sysroot}/mingw
|
||||
%exclude %{_mingw32_sysroot}/mingw/share/info/dir
|
||||
|
||||
22
contrib/crossrpms/mingw32/mpfr.am
Normal file
22
contrib/crossrpms/mingw32/mpfr.am
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user