commit e7a68ecdfc4e7e2d120b5d2b45e83efe02a2092d Author: Jiayi Yin Date: Sun May 18 19:54:07 2025 +0000 转换LFS仓库为普通仓库 diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..77819e1 --- /dev/null +++ b/README.en.md @@ -0,0 +1,36 @@ +# mingw-crt + +#### Description +{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} + +#### Software Architecture +Software architecture description + +#### Installation + +1. xxxx +2. xxxx +3. xxxx + +#### Instructions + +1. xxxx +2. xxxx +3. xxxx + +#### Contribution + +1. Fork the repository +2. Create Feat_xxx branch +3. Commit your code +4. Create Pull Request + + +#### Gitee Feature + +1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md +2. Gitee blog [blog.gitee.com](https://blog.gitee.com) +3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) +4. The most valuable open source project [GVP](https://gitee.com/gvp) +5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) +6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md new file mode 100644 index 0000000..fb55565 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# mingw-crt + +#### 介绍 +{**以下是码云平台说明,您可以替换此简介** +码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 +无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} + +#### 软件架构 +软件架构说明 + + +#### 安装教程 + +1. xxxx +2. xxxx +3. xxxx + +#### 使用说明 + +1. xxxx +2. xxxx +3. xxxx + +#### 参与贡献 + +1. Fork 本仓库 +2. 新建 Feat_xxx 分支 +3. 提交代码 +4. 新建 Pull Request + + +#### 码云特技 + +1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md +2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) +3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 +4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 +5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) +6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/mingw-crt.spec b/mingw-crt.spec new file mode 100644 index 0000000..97b191b --- /dev/null +++ b/mingw-crt.spec @@ -0,0 +1,118 @@ +%{?mingw_package_header} + +#%%global snapshot_date 20160723 +#%%global snapshot_rev 65a0c3298db7cc5cbded63259663cb29e4780a56 +#%%global snapshot_rev_short %(echo %snapshot_rev | cut -c1-6) +#%%global branch v5.x + +#%%global pre rc2 + +Name: mingw-crt +Version: 9.0.0 +Release: 3 +Summary: MinGW Windows cross-compiler runtime + +License: Public Domain and ZPLv2.1 +URL: http://mingw-w64.sourceforge.net/ +%if 0%{?snapshot_date} +# To regenerate a snapshot: +# Use your regular webbrowser to open https://sourceforge.net/p/mingw-w64/mingw-w64/ci/%{snapshot_rev}/tarball +# This triggers the SourceForge instructure to generate a snapshot +# After that you can pull in the archive with: +# spectool -g mingw-crt.spec +Source0: http://sourceforge.net/code-snapshots/git/m/mi/mingw-w64/mingw-w64.git/mingw-w64-mingw-w64-%{snapshot_rev}.zip +%else +Source0: http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}%{?pre:-%{pre}}.tar.bz2 +%endif +# Fix build failure with gcc11 +Patch0: mingw-crt_gcc11.patch + +BuildArch: noarch + +BuildRequires: make + +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw32-binutils +BuildRequires: mingw32-headers +BuildRequires: mingw32-gcc + +BuildRequires: mingw64-filesystem >= 95 +BuildRequires: mingw64-binutils +BuildRequires: mingw64-headers +BuildRequires: mingw64-gcc + + +%description +MinGW Windows cross-compiler runtime, base libraries. + + +%package -n mingw32-crt +Summary: MinGW Windows cross-compiler runtime for the win32 target +Obsoletes: mingw32-runtime < 3.18-7 +Provides: mingw32-runtime = 3.18-7 +Requires: mingw32-filesystem >= 95 + +%description -n mingw32-crt +MinGW Windows cross-compiler runtime, base libraries for the win32 target. + +%package -n mingw64-crt +Summary: MinGW Windows cross-compiler runtime for the win64 target +Obsoletes: mingw64-runtime < 1.0-0.3.20100914 +Provides: mingw64-runtime = 1.0-0.3.20100914 +Requires: mingw64-filesystem >= 95 + +%description -n mingw64-crt +MinGW Windows cross-compiler runtime, base libraries for the win64 target. + + +%prep +%if 0%{?snapshot_date} +rm -rf mingw-w64-v%{version} +mkdir mingw-w64-v%{version} +cd mingw-w64-v%{version} +unzip %{S:0} +%autosetup -p1 -D -T -n mingw-w64-v%{version}/mingw-w64-mingw-w64-%{snapshot_rev} +%else +%autosetup -p1 -n mingw-w64-v%{version}%{?pre:-%{pre}} +%endif + + +%build +pushd mingw-w64-crt + # Filter out -fstack-protector and -lssp from LDFLAGS as libssp is not yet potentially built with the bootstrap gcc + MINGW32_LDFLAGS="`echo %{mingw32_ldflags} | sed 's|-fstack-protector||' | sed 's|-lssp||'`" + MINGW64_LDFLAGS="`echo %{mingw64_ldflags} | sed 's|-fstack-protector||' | sed 's|-lssp||'`" + MINGW64_CONFIGURE_ARGS="--disable-lib32" + %mingw_configure + %mingw_make_build +popd + + +%install +pushd mingw-w64-crt + %mingw_make_install DESTDIR=%{buildroot} +popd + +# Dunno what to do with these files +rm -rf %{buildroot}%{mingw32_includedir}/*.c +rm -rf %{buildroot}%{mingw64_includedir}/*.c + + +%files -n mingw32-crt +%license COPYING DISCLAIMER DISCLAIMER.PD +%{mingw32_libdir}/* + +%files -n mingw64-crt +%license COPYING DISCLAIMER DISCLAIMER.PD +%{mingw64_libdir}/* + + +%changelog +* Tue Feb 20 2024 yinhongchang - 9.0.0-3 +- Update to 9.0.0 + +* Wed Nov 04 2020 Zhiyi Weng - 6.0.0-4 +- Update to 6.0.0 + +* Thu Dec 9 2019 openEuler Buildteam - 5.0.4-3 +- Package init diff --git a/mingw-crt_gcc11.patch b/mingw-crt_gcc11.patch new file mode 100644 index 0000000..82c2260 --- /dev/null +++ b/mingw-crt_gcc11.patch @@ -0,0 +1,12 @@ +diff -rupN --no-dereference mingw-w64-v9.0.0/mingw-w64-crt/intrincs/rdtsc.c mingw-w64-v9.0.0-new/mingw-w64-crt/intrincs/rdtsc.c +--- mingw-w64-v9.0.0/mingw-w64-crt/intrincs/rdtsc.c 2021-05-22 14:34:25.000000000 +0200 ++++ mingw-w64-v9.0.0-new/mingw-w64-crt/intrincs/rdtsc.c 2021-06-22 11:40:49.403979807 +0200 +@@ -15,7 +15,7 @@ + #endif + + #if !__has_builtin(__rdtsc) +-unsigned __int64 __rdtsc(void) ++unsigned __int64 __rdtsc() + { + #ifdef _WIN64 + unsigned __int64 val1, val2; diff --git a/mingw-w64-v9.0.0.tar.bz2 b/mingw-w64-v9.0.0.tar.bz2 new file mode 100644 index 0000000..a14bf4e Binary files /dev/null and b/mingw-w64-v9.0.0.tar.bz2 differ