File acme.spec of Package acme
# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: acme
Version: 091
Release: 0
Summary: CrossAssembler for Multiple Environments
Source: http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/current/acme%{version}src.tar.bz2
Patch1: acme-remove_strip.patch
Patch2: acme-fix_int_pointer_casts.patch
Source99: acme-rpmlintrc
URL: http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/
Group: Development/Tools/Other
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel pkgconfig
%description
ACME is a free crossassembler, released under the GNU General Public License.
The current version can produce code for the 6502, 65c02 and 65816 processors.
It also supports some of the undocumented ("illegal") opcodes of the 6502.
Documentation is contained in the package %{name}-doc
%package doc
Summary: CrossAssembler for Multiple Environments (Documentation)
Group: Development/Tools/Other
Requires: %{name} = %{version}
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description doc
ACME is a free crossassembler, released under the GNU General Public License.
The current version can produce code for the 6502, 65c02 and 65816 processors.
It also supports some of the undocumented ("illegal") opcodes of the 6502.
This package contains the documentation files.
%prep
%setup -q -n "acme%{version}"
%patch1
%patch2
%build
%__make %{?jobs:-j%{jobs}} \
-C src \
CFLAGS="%{optflags} -Wall" \
CC="%__cc" \
RM="%__rm" \
BINDIR="%{_bindir}"
%install
%__install -D -m0755 src/acme "%{buildroot}%{_bindir}/acme"
%__install -d "%{buildroot}%{_prefix}/lib/acme"
%__cp -a ACME_Lib/* "%{buildroot}%{_prefix}/lib/acme/"
%__install -d "%{buildroot}%{_docdir}/%{name}"
%__cp -a docs/* "%{buildroot}%{_docdir}/%{name}/"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%{_bindir}/acme
%{_prefix}/lib/acme
%files doc
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*