From fdb07840224c176e60a191e78993a111e93df26ec3e5dc2162e3a50285e81ef8 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 8 Apr 2009 13:15:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-runtime?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + mingw-w64-crt-0.0.20090216.tar.bz2 | 3 ++ mingw64-runtime-0.0.20090216-rpmlintrc | 3 ++ mingw64-runtime.spec | 67 ++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mingw-w64-crt-0.0.20090216.tar.bz2 create mode 100644 mingw64-runtime-0.0.20090216-rpmlintrc create mode 100644 mingw64-runtime.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mingw-w64-crt-0.0.20090216.tar.bz2 b/mingw-w64-crt-0.0.20090216.tar.bz2 new file mode 100644 index 0000000..aed47c4 --- /dev/null +++ b/mingw-w64-crt-0.0.20090216.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ba1df40b7d6464c86dbedd920645d936a91baa4c4877a0da992d04d1195e988 +size 1556520 diff --git a/mingw64-runtime-0.0.20090216-rpmlintrc b/mingw64-runtime-0.0.20090216-rpmlintrc new file mode 100644 index 0000000..95e22aa --- /dev/null +++ b/mingw64-runtime-0.0.20090216-rpmlintrc @@ -0,0 +1,3 @@ +addFilter("devel-file-in-non-devel-package") +addFilter("spurious-executable-perm") +addFilter("arch-independent-package-contains-binary-or-object") diff --git a/mingw64-runtime.spec b/mingw64-runtime.spec new file mode 100644 index 0000000..4f9879a --- /dev/null +++ b/mingw64-runtime.spec @@ -0,0 +1,67 @@ +%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.20090216 +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