Name: dhtest Version: 1.5 Release: 14%{?snapinfo:.%{snapinfo}}%{?dist} Summary: A DHCP client simulation on linux License: GPLv2 URL: https://github.com/saravana815/dhtest Source0: https://github.com/saravana815/dhtest/archive/v%{version}/%{name}-%{version}.tar.gz Patch1: dhtest-1.5-globals.patch Patch2: dhtest-1.5-strncpy.patch BuildRequires: gcc BuildRequires: make %description It can simulate multiple DHCP clients behind a network device. It can help in testing the DHCP servers or in testing switch/router by loading the device with multiple DHCP clients. %prep %autosetup -n %{name}-%{version} -p1 #sed -e 's,^#!/usr/bin/env python,#!/usr/bin/python,' -i dhscript.py %build %make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %install mkdir -p %{buildroot}%{_bindir} %{__install} -m 0755 dhtest %{buildroot}%{_bindir}/dhtest %check # run dhscript.py here once it can run without special setup # or dhcp server is configured %files %doc README.txt %license LICENSE %{_bindir}/dhtest %changelog * Wed Jul 17 2024 Fedora Release Engineering - 1.5-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 1.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Mar 02 2020 Petr Menšík - 1.5-4 - Fix link errors (#1799278) - Correct some strncpy usage errors * Tue Jan 28 2020 Fedora Release Engineering - 1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 15 2019 Petr Menšík - 1.5-2 - Add license * Thu Mar 15 2018 Petr Menšík - 1.5-1 - Initial package