File djgpp-dosutils.spec of Package djgpp-dosutils
#
# spec file for package djgpp-dosutils
#
# Copyright (c) 2024 SUSE LLC
#
# 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: djgpp-dosutils
Version: 1.0
Release: 0
Summary: Selected DOS tools from DJGPP
License: GPL-2.0-only
Group: Productivity/Text/Convertors
URL: https://www.ludd.ltu.se/~ams/djgpp/cvs/djgpp/src/utils
Source: %{name}-%{version}.tar.gz
Patch0: dtou.c.patch
Patch1: utod.c.patch
#---we build stripped binaries:
%global debug_package %{nil}
%description
DOS tools dtou and utod from DJGPP which are useful also in linux environment.
%prep
%autosetup
%build
gcc -Wall -O2 -D_FORTIFY_SOURCE=2 %{optflags} -s -o dtou dtou.c
gcc -Wall -O2 -D_FORTIFY_SOURCE=2 %{optflags} -s -o utod utod.c
%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 dtou %{buildroot}%{_bindir}/
install -m 755 utod %{buildroot}%{_bindir}/
%check
%files
%license copying copying.dj
%{_bindir}/dtou
%{_bindir}/utod
%changelog