File x25_utils.spec of Package x25_utils
#
# spec file for package x25_utils
#
# 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: x25_utils
Version: 2.3.93
Release: 0
Summary: X.25 utilities
License: SUSE-NonFree
Group: Productivity/Networking/Other
URL: https://www.baty.hanse.de/
Source: https://www.baty.hanse.de/linux-x25/utils/%{name}-%{version}.tar.gz
%description
This package contains the X.25 network utilities x25route and x25trace.
%prep
%setup -q
%build
export CFLAGS='%{optflags}'
%make_build -C route
%make_build -C trace
%install
install -d %{buildroot}{%{_bindir},%{_sbindir},%{_mandir}/man8}
# x25route
install -m 0755 route/x25route %{buildroot}%{_bindir}/x25route
install -m 0644 route/x25route.8 %{buildroot}%{_mandir}/man8/x25route.8
# x25trace
install -m 0755 trace/x25trace %{buildroot}%{_sbindir}/x25trace
install -m 0644 trace/x25trace.8 %{buildroot}%{_mandir}/man8/x25trace.8
%files
%doc README Changes
#%%license ???
%{_bindir}/x25route
%{_sbindir}/x25trace
%{_mandir}/man8/x25route.8%{?ext_man}
%{_mandir}/man8/x25trace.8%{?ext_man}
%changelog