More generic mingw_pkg_name macros to also deduce mingw package name from native name

This commit is contained in:
Sandro Mani 2022-02-10 11:37:08 +01:00
parent c212a7bc7d
commit 03aa020c11
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# RPM macros for Fedora MinGW.
%mingw32_pkg_name %(echo %{name} | sed 's/^mingw-/mingw32-/')
%mingw32_pkg_name %(echo %{name} | sed -E 's/^(mingw-|)/mingw32-/')
%mingw32_target i686-w64-mingw32
# Paths.

View File

@ -1,6 +1,6 @@
# RPM macros for Fedora MinGW.
%mingw64_pkg_name %(echo %{name} | sed 's/^mingw-/mingw64-/')
%mingw64_pkg_name %(echo %{name} | sed -E 's/^(mingw-|)/mingw64-/')
%mingw64_target x86_64-w64-mingw32
# Paths.

View File

@ -6,7 +6,7 @@
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Name: mingw-filesystem
Version: 130
Version: 131
Release: 1%{?dist}
Summary: MinGW cross compiler base filesystem and environment
@ -358,6 +358,9 @@ echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/x86_64-w64-mingw32-pkg-c
%changelog
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 131-1
- More generic mingw_pkg_name macros to also deduce mingw package name from native name
* Wed Feb 02 2022 Sandro Mani <manisandro@gmail.com> - 130-1
- Drop evaling $@ in mingw-scripts, ensure mingw macros invoked by mingw-scripts contain $@