51c89bb
%global srcname telnet
51c89bb
%global forgeurl https://github.com/SDL-Hercules-390/%{srcname}
51c89bb
%global commit e0e2a9150cb0c7cea8b27ea126e1367b3f03b17e
28d779f
%forgemeta
28d779f
51c89bb
%if 0%{?el8}
51c89bb
# Needed for epel8
192eef9
%undefine __cmake_in_source_build
51c89bb
%endif
51c89bb
%global _vpath_builddir %{_builddir}/%{srcname}%{__isa_bits}.Release
28d779f
%global debug_package %{nil}
28d779f
28d779f
%global common_description %{expand:
51c89bb
libtelnet is a library for handling the TELNET protocol for use by the
51c89bb
SDL-Hercules-390 emulator. It includes routines for parsing incoming data from
51c89bb
a remote peer as well as formatting data to be sent to the remote peer.
28d779f
28d779f
libtelnet uses a callback-oriented API, allowing application-specific handling
28d779f
of various events. The callback system is also used for buffering outgoing
28d779f
protocol data, allowing the application to maintain control of the actual
28d779f
socket connection.
28d779f
28d779f
Features supported include the full TELNET protocol, Q-method option
28d779f
negotiation, and NEW-ENVIRON.}
28d779f
28d779f
Name:           sdl-telnet
28d779f
Version:        1.0.0
ded000f
Release:        9%{?dist}
51c89bb
Summary:        Simple RFC-compliant TELNET implementation for SDL-Hercules-390
28d779f
28d779f
License:        Public Domain
28d779f
URL:            %{forgeurl}
28d779f
Source0:        %{forgesource}
28d779f
28d779f
BuildRequires:  cmake
28d779f
BuildRequires:  gcc
28d779f
BuildRequires:  make
28d779f
BuildRequires:  sed
28d779f
51c89bb
%description    %{common_description}
28d779f
28d779f
%package        devel
28d779f
Summary:        Development files for %{name}
28d779f
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
28d779f
51c89bb
%description    devel %{common_description}
28d779f
28d779f
The %{name}-devel package contains libraries and header files for
28d779f
developing applications that use %{name}.
28d779f
28d779f
%prep
51c89bb
%autosetup -n %{srcname}-%{commit}
28d779f
sed -i extra.txt -e 's:DESTINATION .:DESTINATION share/doc/%{name}-devel:g'
28d779f
28d779f
%build
28d779f
%cmake
28d779f
%cmake_build
28d779f
28d779f
%install
28d779f
%cmake_install
51c89bb
mv %{buildroot}%{_docdir}/%{name}-devel/%{srcname}.LICENSE.txt .
28d779f
28d779f
%files devel
51c89bb
%license %{srcname}.LICENSE.txt
28d779f
%doc README.md
51c89bb
%doc %{_docdir}/%{name}-devel/%{srcname}.README.txt
28d779f
%{_includedir}/*.h
51c89bb
%{_libdir}/lib%{srcname}*.a
28d779f
28d779f
%changelog
ded000f
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-9
ded000f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ded000f
8aff5a4
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
8aff5a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8aff5a4
830544b
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
830544b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
830544b
35be7a9
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
35be7a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
35be7a9
51c89bb
* Mon Mar 28 2022 Davide Cavalca <dcavalca@fedoraproject.org> - 1.0.0-5.20220328gite0e2a91
51c89bb
- Update summary and description to make it clear this is a fork
51c89bb
- Update to e0e2a91 git snapshot
51c89bb
- Drop f32 logic and tidy up the specfile
51c89bb
51c89bb
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4.20210321git2aca101
1f6c5fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1f6c5fd
51c89bb
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3.20210321git2aca101
0dacaab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0dacaab
192eef9
* Tue Mar 30 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 1.0.0-2.20210321git2aca101
192eef9
- Fix build on f32 and epel8
192eef9
28d779f
* Sun Mar 28 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 1.0.0-1.20210321git2aca101
28d779f
- Initial package