2
0
Fridrich Strba 2009-10-22 12:23:01 +00:00 committed by Git OBS Bridge
parent d948e7e04d
commit 1342ebf70a
4 changed files with 13 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f2fa7e3dd925aadc87ac0bc790009169c168fa0d905db038b67f0ef2d70e783
size 1558523

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5369ab362e8d706f1496150ec519f864dcd7095dd4ef6cb751c5e054e272275d
size 1542087

View File

@ -6,14 +6,14 @@
%define __os_install_post %{_mingw64_install_post} %define __os_install_post %{_mingw64_install_post}
Name: mingw64-runtime Name: mingw64-runtime
Version: 0.0.20090827.0 Version: 1.0b
Release: 0 Release: 0
Summary: MinGW Win64 cross-compiler runtime Summary: MinGW-W64 runtime for win32
License: Public Domain License: Public Domain
Group: Development/Libraries Group: Development/Libraries
URL: http://www.mingw.org/ URL: http://www.mingw.org/
Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-crt-%{version}.tar.bz2 Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-runtime-%{version}.tar.bz2
Source100: %{name}-%{version}-rpmlintrc Source100: %{name}-%{version}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -22,7 +22,7 @@ BuildArch: noarch
BuildRequires: mingw64-filesystem BuildRequires: mingw64-filesystem
BuildRequires: mingw64-binutils BuildRequires: mingw64-binutils
BuildRequires: mingw64-gcc BuildRequires: mingw64-gcc-bootstrap >= 4.4.0
BuildRequires: mingw64-headers >= %{version} BuildRequires: mingw64-headers >= %{version}
# Once this is installed, mingw64-bootstrap (binary bootstrapper) is no # Once this is installed, mingw64-bootstrap (binary bootstrapper) is no
@ -35,25 +35,22 @@ MinGW Win64 cross-compiler runtime, base libraries.
%prep %prep
%setup -q -c %setup -q -n mingw-w64-runtime-%{version}
%build %build
cd mingw-w64-crt ./configure --host=%{_mingw64_target} --prefix=%{_prefix} --with-sysroot=%{_mingw64_sysroot} --disable-lib32 --enable-lib64
./configure --host=%{_mingw64_target} --prefix=%{_prefix} --with-sysroot=%{_mingw64_sysroot}
make make
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
pushd mingw-w64-crt
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
popd
# The above installs in /usr/x86_64-pc-mingw32/sys-root/x86_64-pc-mingw32/lib # The above installs in /usr/x86_64-pc-mingw64/sys-root/x86_64-pc-mingw64/lib
# which is the wrong location. Move it to %{_mingw64_libdir}. # which is the wrong location. Move it to %{_mingw64_libdir}.
mkdir -p $RPM_BUILD_ROOT%{_mingw64_libdir} mkdir -p $RPM_BUILD_ROOT%{_mingw64_libdir}
for i in $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/lib/*; do \ mv $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/lib/* \
mv $i $RPM_BUILD_ROOT%{_mingw64_libdir}; done $RPM_BUILD_ROOT%{_mingw64_libdir}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT