[packages/crossmingw64-gcc] - added modula2 compiler
qboosh
qboosh at pld-linux.org
Sun Apr 12 19:27:59 CEST 2026
commit 7246a75ef8712099470659471559f9fbb50c7b8c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 12 19:28:31 2026 +0200
- added modula2 compiler
crossmingw64-gcc.spec | 42 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)
---
diff --git a/crossmingw64-gcc.spec b/crossmingw64-gcc.spec
index dbe44e5..8944797 100644
--- a/crossmingw64-gcc.spec
+++ b/crossmingw64-gcc.spec
@@ -3,6 +3,7 @@
%bcond_with bootstrap # bootstrap build (only C compiler with static runtime)
%bcond_with ada # Ada language support (doesn't build for w64-mingw32)
%bcond_without d # D language support
+%bcond_without modula2 # Modula-2 language support
# go is not supported for mingw
#
%if %{with bootstrap}
@@ -383,6 +384,29 @@ Requires: wine
%description -n crossmingw64-libquadmath-dll -l pl.UTF-8
Biblioteka 64-bitowa DLL GCC do obsługi typu __float128 dla Windows.
+%package m2
+Summary: MinGW-W64 binary utility development utilities - Modula-2
+Summary(pl.UTF-8): Zestaw narzędzi MinGW-W64 - Modula-2
+License: GPL v3+
+Group: Development/Languages
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description m2
+crossmingw64 is a complete cross-compiling development system for
+building stand-alone Microsoft Windows applications under Linux using
+the MinGW-W64 build libraries. This includes a binutils, gcc with g++
+and libstdc++, all cross targeted to x86_64-pc-mingw32.
+
+This package contains cross targeted Modula-2 compiler.
+
+%description m2 -l pl.UTF-8
+crossmingw64 jest kompletnym systemem do kroskompilacji, pozwalającym
+budować aplikacje MS Windows pod Linuksem używając bibliotek mingw64.
+System składa się z binutils, gcc z g++ i libstdc++ - wszystkie
+generujące kod dla platformy x86_64-w64-mingw32.
+
+Ten pakiet zawiera kompilator skrośny języka Modula-2.
+
%prep
%setup -q -n gcc-%{version} -a 1
#patch -P0 -p0
@@ -437,7 +461,7 @@ TEXCONFIG=false \
--enable-decimal-float=yes \
--enable-fully-dynamic-string \
--disable-isl-version-check \
- --enable-languages="c%{!?with_bootstrap:,c++,fortran,objc,obj-c++}%{?with_ada:,ada}%{?with_d:,d}" \
+ --enable-languages="c%{!?with_bootstrap:,c++,fortran,objc,obj-c++}%{?with_ada:,ada}%{?with_d:,d}%{?with_modula2:,m2}" \
%{?with_bootstrap:--disable-libatomic} \
--disable-libcc1 \
--disable-libitm \
@@ -507,6 +531,9 @@ ln -sf %{archbindir}/%{target}-gfortran $RPM_BUILD_ROOT%{_bindir}/%{target}-gfor
%if %{with d}
ln -sf %{archbindir}/%{target}-gdc $RPM_BUILD_ROOT%{_bindir}/%{target}-gdc
%endif
+%if %{with modula2}
+ln -sf %{archbindir}/%{target}-gm2 $RPM_BUILD_ROOT%{_bindir}/%{target}-gm2
+%endif
%{__make} -C mingw64-crt -j1 install \
DESTDIR=$RPM_BUILD_ROOT
@@ -1912,3 +1939,16 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%{_dll64dir}/libquadmath-0.dll
%endif
+
+%if %{with modula2}
+%files m2
+%doc gcc/m2/{COPYING.RUNTIME,ChangeLog,NEWS,README}
+%{_bindir}/%{target}-gm2
+%attr(755,root,root) %{archbindir}/%{target}-gm2
+%{archlibdir}/libm2min.a
+%{archlibdir}/libm2min.la
+%attr(755,root,root) %{gcclibdir}/cc1gm2
+%dir %{gcclibdir}/m2
+%{gcclibdir}/m2/m2min
+%{_mandir}/man1/%{target}-gm2.1*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw64-gcc.git/commitdiff/7246a75ef8712099470659471559f9fbb50c7b8c
More information about the pld-cvs-commit
mailing list