[packages/xasm] - new

qboosh qboosh at pld-linux.org
Fri Dec 13 18:46:38 CET 2024


commit 52eb648421ea15ed49c8223ebb664ab46b54e47c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Dec 13 18:23:34 2024 +0100

    - new

 xasm-gdc.patch | 11 ++++++++++
 xasm.spec      | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
---
diff --git a/xasm.spec b/xasm.spec
new file mode 100644
index 0000000..3023223
--- /dev/null
+++ b/xasm.spec
@@ -0,0 +1,65 @@
+#
+# Conditional build:
+%bcond_with	gdc	# use GDC instead of DMD
+
+Summary:	6502 cross-assembler with original syntax extensions
+Summary(pl.UTF-8):	Asembler skrośny dla procesorów 6502 z oryginalnymi rozszerzeniami składni
+Name:		xasm
+Version:	3.2.1
+Release:	1
+License:	Poetic
+Group:		Development/Languages
+#Source0Download: https://github.com/pfusik/xasm/releases
+Source0:	https://github.com/pfusik/xasm/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	01f9c9d73bc1ae32ce7039d56a5a17f5
+Patch0:		%{name}-gdc.patch
+URL:		https://github.com/pfusik/xasm
+BuildRequires:	asciidoc
+%if %{with gdc}
+BuildRequires:	gcc-d
+%else
+BuildRequires:	dmd >= 2.101
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		filterout_c	-Werror=.* -Wformat.*
+
+%description
+xasm is a 6502 cross-assembler with original syntax extensions.
+
+By default it generates binaries for Atari 8-bit computers.
+
+%description -l pl.UTF-8
+xasm to asembler skrośny dla procesorów 6502 z oryginalnymi
+rozszerzeniami składni.
+
+Domyślnie tworzy binaria dla 8-bitowych komputerów Atari.
+
+%prep
+%setup -q -n %{name}-%{name}-%{version}
+%patch -P0 -p1
+
+%build
+%if %{with gdc}
+gdc %{rpmldflags} %{rpmcflags} -shared-libphobos -o xasm source/app.d
+%else
+%{__make}
+%endif
+
+%{__make} xasm.1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	prefix=%{_prefix}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/xasm
+%{_mandir}/man1/xasm.1*
diff --git a/xasm-gdc.patch b/xasm-gdc.patch
new file mode 100644
index 0000000..b71f4b2
--- /dev/null
+++ b/xasm-gdc.patch
@@ -0,0 +1,11 @@
+--- xasm-xasm-3.2.1/source/app.d.orig	2022-12-08 11:49:40.000000000 +0100
++++ xasm-xasm-3.2.1/source/app.d	2024-12-13 18:05:08.992127349 +0100
+@@ -3003,7 +3003,7 @@ int main(string[] args) {
+ 			exitCode = 2;
+ 			if (objectFilename != "-") {
+ 				objectStream.close();
+-				core.stdc.stdio.remove(toStringz(objectFilename));
++				std.stdio.remove(toStringz(objectFilename));
+ 			}
+ 		}
+ 		if (listingStream != stdout)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xasm.git/commitdiff/52eb648421ea15ed49c8223ebb664ab46b54e47c



More information about the pld-cvs-commit mailing list