2009-04-08 15:15:13 +02:00
|
|
|
%define __strip %{_mingw64_strip}
|
|
|
|
%define __objdump %{_mingw64_objdump}
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %{_mingw64_findrequires}
|
|
|
|
%define __find_provides %{_mingw64_findprovides}
|
|
|
|
%define __os_install_post %{_mingw64_install_post}
|
|
|
|
|
|
|
|
Name: mingw64-runtime
|
2010-09-06 09:36:51 +02:00
|
|
|
Version: 1.0b.20100818
|
2009-04-08 15:15:13 +02:00
|
|
|
Release: 0
|
2009-10-22 14:23:01 +02:00
|
|
|
Summary: MinGW-W64 runtime for win32
|
2009-04-08 15:15:13 +02:00
|
|
|
|
|
|
|
License: Public Domain
|
|
|
|
Group: Development/Libraries
|
2010-09-24 01:57:51 +02:00
|
|
|
URL: http://mingw-w64.sourceforge.net/
|
2009-10-22 14:23:01 +02:00
|
|
|
Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-runtime-%{version}.tar.bz2
|
2010-08-10 23:27:38 +02:00
|
|
|
Source100: %{name}-rpmlintrc
|
2010-09-24 01:57:51 +02:00
|
|
|
Patch0: mingw-w64-runtime-1.0b.20100818-assembly.patch
|
2009-04-08 15:15:13 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
#!BuildIgnore: post-build-checks
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem
|
2009-11-27 09:25:12 +01:00
|
|
|
BuildRequires: mingw64-cross-binutils
|
|
|
|
BuildRequires: mingw64-cross-gcc-bootstrap >= 4.4.0
|
2009-04-08 15:15:13 +02:00
|
|
|
BuildRequires: mingw64-headers >= %{version}
|
|
|
|
|
|
|
|
# Once this is installed, mingw64-bootstrap (binary bootstrapper) is no
|
|
|
|
# longer needed.
|
|
|
|
Obsoletes: mingw64-runtime-bootstrap
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
MinGW Win64 cross-compiler runtime, base libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-10-22 14:23:01 +02:00
|
|
|
%setup -q -n mingw-w64-runtime-%{version}
|
2010-09-24 01:57:51 +02:00
|
|
|
%patch0 -p1
|
2009-04-08 15:15:13 +02:00
|
|
|
|
2010-09-21 22:33:51 +02:00
|
|
|
|
2009-04-08 15:15:13 +02:00
|
|
|
%build
|
2009-10-22 14:23:01 +02:00
|
|
|
./configure --host=%{_mingw64_target} --prefix=%{_prefix} --with-sysroot=%{_mingw64_sysroot} --disable-lib32 --enable-lib64
|
|
|
|
make
|
2009-04-08 15:15:13 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-11-14 10:22:08 +01:00
|
|
|
# The make install installs in %{_prefix}/%{_mingw64_target}/lib
|
2009-11-14 10:15:11 +01:00
|
|
|
# which is the wrong location. Move it to %{_mingw64_libdir}.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mingw64_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}
|
|
|
|
ln -s $RPM_BUILD_ROOT%{_mingw64_libdir} $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/lib
|
|
|
|
|
2009-04-08 15:15:13 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
2009-11-14 10:15:11 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/lib
|
2009-04-08 15:15:13 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mingw64_libdir}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|