forked from pool/mingw64-headers
This commit is contained in:
parent
93e7c599f6
commit
491a8a7c30
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:deca430e2344e1425873ada396e689faed1d949af8512ec1c2e263602f363677
|
|
||||||
size 3010658
|
|
3
mingw-w64-headers-1.0b.tar.bz2
Normal file
3
mingw-w64-headers-1.0b.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:bd7a3f8a944ddde498b74726f9c88ee9a014446acf9de0f4d4c8f125aea542ce
|
||||||
|
size 2970702
|
@ -1,15 +1,15 @@
|
|||||||
%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
|
%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
|
||||||
|
|
||||||
Name: mingw64-headers
|
Name: mingw64-headers
|
||||||
Version: 0.0.20090916
|
Version: 1.0b
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: MinGW Win64 headers
|
Summary: MinGW-W64 headers for win32 and win64
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.mingw.org/
|
URL: http://www.mingw.org/
|
||||||
|
|
||||||
Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-headers-%{version}.tar.bz2
|
Source0: mingw-w64-headers-%{version}.tar.bz2
|
||||||
Source1000: %{name}-%{version}-rpmlintrc
|
Source1000: %{name}-%{version}-rpmlintrc
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -24,23 +24,25 @@ MinGW Win64 headers.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c
|
%setup -q -n mingw-w64-headers-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -rf %{_mingw64_target}
|
./configure --host=%{_mingw64_target} \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
# Setup sys-root.
|
--with-sdk=all
|
||||||
mkdir -p %{_mingw64_target}/sys-root/mingw
|
|
||||||
cp -a mingw-w64-headers/include %{_mingw64_target}/sys-root/mingw
|
|
||||||
cp -a mingw-w64-headers/direct-x/include/* %{_mingw64_target}/sys-root/mingw/include/
|
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_mingw64_includedir}
|
||||||
|
ln -s $RPM_BUILD_ROOT%{_mingw64_includedir} \
|
||||||
|
$RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/include
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
cp -a %{_mingw64_target} $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/include
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -48,8 +50,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_prefix}/x86_64-pc-mingw32
|
%dir %{_prefix}/%{_mingw64_target}
|
||||||
%{_prefix}/x86_64-pc-mingw32/sys-root
|
%{_mingw64_sysroot}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user