1
0
mingw64-runtime/mingw64-runtime.spec

68 lines
1.7 KiB
RPMSpec

%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
Version: 0.0.20090813
Release: 0
Summary: MinGW Win64 cross-compiler runtime
License: Public Domain
Group: Development/Libraries
URL: http://www.mingw.org/
Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-crt-%{version}.tar.bz2
Source100: %{name}-%{version}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-binutils
BuildRequires: mingw64-gcc
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
%setup -q -c
%build
cd mingw-w64-crt
./configure --host=%{_mingw64_target} --prefix=%{_prefix} --with-sysroot=%{_mingw64_sysroot}
make
%install
rm -rf $RPM_BUILD_ROOT
pushd mingw-w64-crt
make DESTDIR=$RPM_BUILD_ROOT install
popd
# The above installs in /usr/x86_64-pc-mingw32/sys-root/x86_64-pc-mingw32/lib
# which is the wrong location. Move it to %{_mingw64_libdir}.
mkdir -p $RPM_BUILD_ROOT%{_mingw64_libdir}
mv $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/lib/* \
$RPM_BUILD_ROOT%{_mingw64_libdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw64_libdir}/*
%changelog