[z80asm] Initial import (#797740).

Eric Smith brouhaha at fedoraproject.org
Fri Mar 9 03:52:22 UTC 2012


commit edeccf97fc2648f4426910f5070d288202061169
Author: Eric Smith <eric at p1.brouhaha.com>
Date:   Thu Mar 8 19:52:59 2012 -0800

    Initial import (#797740).

 .gitignore                       |    1 +
 sources                          |    1 +
 z80asm-1.8-no-bundled-libs.patch |   19 ++++++++++++
 z80asm.spec                      |   61 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d42fd89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/z80asm-1.8.tar.gz
diff --git a/sources b/sources
index e69de29..caa3061 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4beb798d6fe2f89e62de36b4b4f87fad  z80asm-1.8.tar.gz
diff --git a/z80asm-1.8-no-bundled-libs.patch b/z80asm-1.8-no-bundled-libs.patch
new file mode 100644
index 0000000..00eea57
--- /dev/null
+++ b/z80asm-1.8-no-bundled-libs.patch
@@ -0,0 +1,19 @@
+diff -up z80asm-1.8/Makefile.no-bundled-libs z80asm-1.8/Makefile
+--- z80asm-1.8/Makefile.no-bundled-libs	2009-04-11 01:33:07.000000000 -0700
++++ z80asm-1.8/Makefile	2012-02-26 23:24:43.763412540 -0800
+@@ -23,11 +23,13 @@ VERSION ?= $(shell echo -n `cat VERSION
+ 
+ all:z80asm
+ 
+-z80asm: z80asm.o expressions.o Makefile gnulib/getopt.o gnulib/getopt1.o
++z80asm: z80asm.o expressions.o Makefile
+ 	$(CC) $(LDFLAGS) $(filter %.o,$^) -o $@
++
++test:	z80asm
+ 	$(MAKE) -C tests || rm $@
+ 
+-%.o:%.c z80asm.h gnulib/getopt.h Makefile
++%.o:%.c z80asm.h Makefile
+ 	$(CC) $(CFLAGS) -c $< -o $@ -DVERSION=\"$(shell cat VERSION)\"
+ 
+ clean:
diff --git a/z80asm.spec b/z80asm.spec
new file mode 100644
index 0000000..29e2a19
--- /dev/null
+++ b/z80asm.spec
@@ -0,0 +1,61 @@
+Name:		z80asm
+Version:	1.8
+Release:	1%{?dist}
+Summary:	Z80 Assembler
+Group:		Development/Languages
+License:	GPLv3+
+URL:		http://savannah.nongnu.org/projects/%{name}/
+Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
+
+# Don't use bundled libraries!
+# Also patch Makefile to separate test target to support RPM check
+Patch0:		z80asm-1.8-no-bundled-libs.patch
+
+BuildRequires:	dos2unix
+
+%description
+z80asm is an assembler for the Z80 microprocessor. The assembler aims
+to be portable and complete. Of course it assembles all official
+mnemonics, but it also aims to assemble the unofficial mnemonics.
+The assembler was written with the MSX computer in mind as the target
+platform, but it can be used for any system with a Z80 in it. Some
+header files with labels of MSX specific addresses (BIOS, BDOS, system
+variables) are included.
+
+%prep
+%setup -q
+
+# Fix line endings
+dos2unix examples/hello.asm
+
+# Don't use bundled libraries!
+# Also patch Makefile to separate test target to support RPM check
+%patch -P 0 -p1 -b .no-bundled-libs
+rm -rf gnulib
+
+%build
+make %{?_smp_mflags} CFLAGS="%{optflags}"
+
+%check
+make %{?_smp_mflags} CFLAGS="%{optflags}" test
+
+%install
+install -d -m0755 %{buildroot}%{_bindir}
+install -p -m0755 %{name} %{buildroot}%{_bindir}
+install -d -m0755 %{buildroot}%{_mandir}/man1
+install -p -m0644 %{name}.1 %{buildroot}%{_mandir}/man1
+install -d -m0755 %{buildroot}%{_datadir}/%{name}
+install -p -m0644 headers/*.asm %{buildroot}%{_datadir}/%{name}
+install -d -m0755 %{buildroot}%{_docdir}/%{name}-%{version}/examples
+install -p -m0644 examples/* %{buildroot}%{_docdir}/%{name}-%{version}/examples
+
+%files
+%doc COPYING GPL3 ChangeLog
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+%{_datadir}/%{name}
+%{_docdir}/%{name}-%{version}
+
+%changelog
+* Sun Feb 26 2012 Eric Smith <eric at brouhaha.com>  1.8-1
+- Initial version


More information about the scm-commits mailing list