|
Eric Smith |
edeccf9 |
Name: z80asm
|
|
Eric Smith |
edeccf9 |
Version: 1.8
|
|
Eric Smith |
22ba78e |
Release: 2%{?dist}
|
|
Eric Smith |
edeccf9 |
Summary: Z80 Assembler
|
|
Eric Smith |
edeccf9 |
Group: Development/Languages
|
|
Eric Smith |
edeccf9 |
License: GPLv3+
|
|
Eric Smith |
edeccf9 |
URL: http://savannah.nongnu.org/projects/%{name}/
|
|
Eric Smith |
edeccf9 |
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
# Don't use bundled libraries!
|
|
Eric Smith |
edeccf9 |
# Also patch Makefile to separate test target to support RPM check
|
|
Eric Smith |
edeccf9 |
Patch0: z80asm-1.8-no-bundled-libs.patch
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
BuildRequires: dos2unix
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%description
|
|
Eric Smith |
edeccf9 |
z80asm is an assembler for the Z80 microprocessor. The assembler aims
|
|
Eric Smith |
edeccf9 |
to be portable and complete. Of course it assembles all official
|
|
Eric Smith |
edeccf9 |
mnemonics, but it also aims to assemble the unofficial mnemonics.
|
|
Eric Smith |
edeccf9 |
The assembler was written with the MSX computer in mind as the target
|
|
Eric Smith |
edeccf9 |
platform, but it can be used for any system with a Z80 in it. Some
|
|
Eric Smith |
edeccf9 |
header files with labels of MSX specific addresses (BIOS, BDOS, system
|
|
Eric Smith |
edeccf9 |
variables) are included.
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%prep
|
|
Eric Smith |
edeccf9 |
%setup -q
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
# Fix line endings
|
|
Eric Smith |
edeccf9 |
dos2unix examples/hello.asm
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
# Don't use bundled libraries!
|
|
Eric Smith |
edeccf9 |
# Also patch Makefile to separate test target to support RPM check
|
|
Eric Smith |
edeccf9 |
%patch -P 0 -p1 -b .no-bundled-libs
|
|
Eric Smith |
edeccf9 |
rm -rf gnulib
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%build
|
|
Eric Smith |
edeccf9 |
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%check
|
|
Eric Smith |
edeccf9 |
make %{?_smp_mflags} CFLAGS="%{optflags}" test
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%install
|
|
Eric Smith |
edeccf9 |
install -d -m0755 %{buildroot}%{_bindir}
|
|
Eric Smith |
edeccf9 |
install -p -m0755 %{name} %{buildroot}%{_bindir}
|
|
Eric Smith |
edeccf9 |
install -d -m0755 %{buildroot}%{_mandir}/man1
|
|
Eric Smith |
edeccf9 |
install -p -m0644 %{name}.1 %{buildroot}%{_mandir}/man1
|
|
Eric Smith |
edeccf9 |
install -d -m0755 %{buildroot}%{_datadir}/%{name}
|
|
Eric Smith |
edeccf9 |
install -p -m0644 headers/*.asm %{buildroot}%{_datadir}/%{name}
|
|
Eric Smith |
edeccf9 |
install -d -m0755 %{buildroot}%{_docdir}/%{name}-%{version}/examples
|
|
Eric Smith |
edeccf9 |
install -p -m0644 examples/* %{buildroot}%{_docdir}/%{name}-%{version}/examples
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%files
|
|
Eric Smith |
edeccf9 |
%doc COPYING GPL3 ChangeLog
|
|
Eric Smith |
edeccf9 |
%{_bindir}/%{name}
|
|
Eric Smith |
edeccf9 |
%{_mandir}/man1/%{name}.1*
|
|
Eric Smith |
edeccf9 |
%{_datadir}/%{name}
|
|
Eric Smith |
edeccf9 |
|
|
Eric Smith |
edeccf9 |
%changelog
|
|
Eric Smith |
22ba78e |
* Tue Mar 08 2012 Eric Smith <eric@brouhaha.com> 1.8-2
|
|
Eric Smith |
22ba78e |
- Fixed RPM warnings about doc dir listed twice
|
|
Eric Smith |
22ba78e |
|
|
Eric Smith |
edeccf9 |
* Sun Feb 26 2012 Eric Smith <eric@brouhaha.com> 1.8-1
|
|
Eric Smith |
edeccf9 |
- Initial version
|