File ucspi-tcp6.spec of Package ucspi-tcp6
#
# spec file for package ucspi-tcp6
#
# 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: ucspi-tcp6
Version: 1.12.4
Release: 0
Summary: Tcpserver and tcpclient for building TCP client-server apps
License: SUSE-Public-Domain
Group: Productivity/Networking/System
URL: https://www.fehcom.de/ipnet/ucspi-tcp6.html
Source: http://www.fehcom.de/ipnet/ucspi-tcp6/ucspi-tcp6-%{version}.tgz
Source100: ucspi-tcp6-rpmlintrc
BuildRequires: groff
BuildRequires: libfehQlibs0-devel >= 23
Obsoletes: ucspi-tcp < %{version}
Provides: ucspi-tcp = %{version}
%description
Tcpserver and tcpclient are easy-to-use command-line tools for building TCP
client-server applications.
%prep
%setup -q -T -c Rmail=%{name}-%{version}
tar --strip-components=3 -xzf %{SOURCE0}
echo 'cc %{optflags} -I%{_includedir}/qlibs' > conf-cc
echo 'cc -s %{optflags}' > conf-ld
echo '%{_includedir}/qlibs' > conf-qlibs
echo '%{buildroot}%{_mandir}' > conf-man
echo '%{buildroot}%{_bindir}' > package/command-cp
rm package/command-ln
%build
package/compile
%install
mkdir -p \
%{buildroot}%{_mandir}/man1 \
%{buildroot}%{_mandir}/man5 \
%{buildroot}%{_bindir}
package/install
rm -rf %{buildroot}%{_mandir}/cat1 %{buildroot}%{_mandir}/cat5
%files
%{_bindir}/*
%defattr(0644,root,root, -)
%license doc/LICENSE
%doc doc/CHANGES
%{_mandir}/man1/*
%{_mandir}/man5/*
%changelog