2009-08-31 10:25:23 +02:00
|
|
|
%define __strip %{_mingw32_strip}
|
|
|
|
%define __objdump %{_mingw32_objdump}
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %{_mingw32_findrequires}
|
|
|
|
%define __find_provides %{_mingw32_findprovides}
|
|
|
|
%define __os_install_post %{_mingw32_install_post}
|
|
|
|
|
|
|
|
Name: mingw32-runtime
|
2009-10-22 00:14:15 +02:00
|
|
|
Version: 1.0b
|
2009-08-31 10:25:23 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: MinGW-W64 runtime for win32
|
|
|
|
|
|
|
|
License: Public Domain
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://www.mingw.org/
|
2009-10-22 00:14:15 +02:00
|
|
|
Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-runtime-%{version}.tar.bz2
|
2009-08-31 10:25:23 +02:00
|
|
|
Source100: %{name}-%{version}-rpmlintrc
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
#!BuildIgnore: post-build-checks
|
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem
|
|
|
|
BuildRequires: mingw32-binutils
|
2009-10-22 12:09:10 +02:00
|
|
|
BuildRequires: mingw32-gcc-bootstrap >= 4.4.0
|
2009-08-31 10:25:23 +02:00
|
|
|
BuildRequires: mingw32-headers >= %{version}
|
|
|
|
|
|
|
|
# Once this is installed, mingw32-bootstrap (binary bootstrapper) is no
|
|
|
|
# longer needed.
|
|
|
|
Obsoletes: mingw32-runtime-bootstrap
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
MinGW Win64 cross-compiler runtime, base libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-10-22 00:14:15 +02:00
|
|
|
%setup -q -n mingw-w64-runtime-%{version}
|
2009-08-31 10:25:23 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
./configure --host=%{_mingw32_target} --prefix=%{_prefix} --with-sysroot=%{_mingw32_sysroot} --enable-lib32 --disable-lib64
|
2009-09-11 10:33:32 +02:00
|
|
|
make
|
2009-08-31 10:25:23 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-11-14 10:21:46 +01:00
|
|
|
# The make install installs in %{_prefix}/%{_mingw32_target}/lib
|
|
|
|
# which is the wrong location. Move it to %{_mingw64_libdir}.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}
|
|
|
|
ln -s $RPM_BUILD_ROOT%{_mingw32_libdir} $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/lib
|
|
|
|
|
2009-08-31 10:25:23 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
2009-11-14 10:21:46 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/lib
|
2009-08-31 10:25:23 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mingw32_libdir}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|