File ppcopy.spec of Package ppcopy
#
# spec file for package ppcopy
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ppcopy
Version: 0~git20210926
Release: 0
Summary: Copy files over the parallel port using Linux and DOS
License: Unknown
Group: Hardware/Modem
URL: https://github.com/dmeybohm/ppcopy
Source: %{name}-%{version}.tar.xz
BuildRequires: nasm
%description
Copy files over the parallel port using a laplink cable.
%prep
%setup -q
%build
%make_build CFLAGS="%{optflags}"
%make_build -C asm
%install
install -Dpm 0755 par-read %{buildroot}/%{_bindir}/par-read
install -Dpm 0755 par-write %{buildroot}/%{_bindir}/par-write
install -Dpm 0644 asm/parclear.com %{buildroot}/%{_datadir}/%{name}/parclear.com
install -Dpm 0644 asm/parread.com %{buildroot}/%{_datadir}/%{name}/parread.com
%files
#%%license ???
%doc README.md
%{_bindir}/par-read
%{_bindir}/par-write
%{_datadir}/ppcopy
%changelog