|
|
31b2b2d |
Name: dhtest
|
|
|
31b2b2d |
Version: 1.5
|
|
|
bf8f965 |
Release: 5%{?snapinfo:.%{snapinfo}}%{?dist}
|
|
|
31b2b2d |
Summary: A DHCP client simulation on linux
|
|
|
31b2b2d |
|
|
|
31b2b2d |
License: GPLv2
|
|
|
31b2b2d |
URL: https://github.com/saravana815/dhtest
|
|
|
31b2b2d |
Source0: https://github.com/saravana815/dhtest/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
56be914 |
Patch1: dhtest-1.5-globals.patch
|
|
|
3986586 |
Patch2: dhtest-1.5-strncpy.patch
|
|
|
31b2b2d |
|
|
|
31b2b2d |
BuildRequires: gcc
|
|
|
3408898 |
BuildRequires: make
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%description
|
|
|
31b2b2d |
It can simulate multiple DHCP clients behind a network device.
|
|
|
31b2b2d |
It can help in testing the DHCP servers or in testing switch/router
|
|
|
31b2b2d |
by loading the device with multiple DHCP clients.
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%prep
|
|
|
56be914 |
%autosetup -n %{name}-%{version} -p1
|
|
|
31b2b2d |
#sed -e 's,^#!/usr/bin/env python,#!/usr/bin/python,' -i dhscript.py
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%build
|
|
|
31b2b2d |
%make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
|
|
31b2b2d |
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%install
|
|
|
31b2b2d |
mkdir -p %{buildroot}%{_bindir}
|
|
|
31b2b2d |
%{__install} -m 0755 dhtest %{buildroot}%{_bindir}/dhtest
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%check
|
|
|
31b2b2d |
# run dhscript.py here once it can run without special setup
|
|
|
31b2b2d |
# or dhcp server is configured
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%files
|
|
|
31b2b2d |
%doc README.txt
|
|
|
31b2b2d |
%license LICENSE
|
|
|
31b2b2d |
%{_bindir}/dhtest
|
|
|
31b2b2d |
|
|
|
31b2b2d |
%changelog
|
|
|
bf8f965 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-5
|
|
|
bf8f965 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
bf8f965 |
|
|
|
56be914 |
* Mon Mar 02 2020 Petr Menšík <pemensik@redhat.com> - 1.5-4
|
|
|
56be914 |
- Fix link errors (#1799278)
|
|
|
3986586 |
- Correct some strncpy usage errors
|
|
|
56be914 |
|
|
|
3df07fc |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
|
|
|
3df07fc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
3df07fc |
|
|
|
31b2b2d |
* Sun Dec 15 2019 Petr Menšík <pemensik@redhat.com> - 1.5-2
|
|
|
31b2b2d |
- Add license
|
|
|
31b2b2d |
|
|
|
31b2b2d |
* Thu Mar 15 2018 Petr Menšík <pemensik@redhat.com> - 1.5-1
|
|
|
31b2b2d |
- Initial package
|
|
|
31b2b2d |
|