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/
License:            GPL-2.0-or-later
BuildRequires:      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}
BuildArch:          noarch

%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
%autosetup -p0 -n "acme%{version}"

%build
%make_build \
    -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}/"

%files
%{_bindir}/acme
%{_prefix}/lib/acme

%files doc
%doc %{_docdir}/%{name}

openSUSE Build Service is sponsored by