|
Fabio Alessandro Locati |
7dcf09a |
%if 0%{?rhel}
|
|
Fabio Alessandro Locati |
7dcf09a |
%global with_python3 0
|
|
Fabio Alessandro Locati |
7dcf09a |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
Fabio Alessandro Locati |
7dcf09a |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
Fabio Alessandro Locati |
7dcf09a |
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
Fabio Alessandro Locati |
7dcf09a |
%{!?py2_build: %global py2_build %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} build --executable="%{__python2} -s"}}
|
|
Fabio Alessandro Locati |
7dcf09a |
%{!?py2_install: %global py2_install %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot}}}
|
|
Fabio Alessandro Locati |
7dcf09a |
%endif
|
|
Fabio Alessandro Locati |
7dcf09a |
|
|
Christopher Meng |
25062c4 |
Name: 2ping
|
|
Fabio Alessandro Locati |
2d2fbd9 |
Version: 3.2.1
|
|
Fabio Alessandro Locati |
7dcf09a |
Release: 2%{?dist}
|
|
Christopher Meng |
25062c4 |
Summary: Bi-directional ping utility
|
|
Christopher Meng |
25062c4 |
License: GPLv2+
|
|
Koji |
66a7c30 |
URL: http://www.finnie.org/software/2ping
|
|
Christopher Meng |
25062c4 |
Source0: http://www.finnie.org/software/%{name}/%{name}-%{version}.tar.gz
|
|
|
c753a11 |
BuildArch: noarch
|
|
Fabio Alessandro Locati |
5de9438 |
BuildRequires: python2-devel
|
|
Fabio Alessandro Locati |
7dcf09a |
BuildRequires: python-setuptools
|
|
Fabio Alessandro Locati |
7dcf09a |
%{?python_provide:%python_provide python2-%{name}}
|
|
Christopher Meng |
25062c4 |
|
|
Christopher Meng |
25062c4 |
%description
|
|
Christopher Meng |
25062c4 |
2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN,
|
|
|
c753a11 |
SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and
|
|
|
c753a11 |
a 2ping client to determine which direction packet loss occurs.
|
|
Christopher Meng |
25062c4 |
|
|
Christopher Meng |
25062c4 |
%prep
|
|
Fabio Alessandro Locati |
7dcf09a |
%setup -n %{name}-%{version}
|
|
Christopher Meng |
25062c4 |
|
|
Christopher Meng |
25062c4 |
%build
|
|
Fabio Alessandro Locati |
5de9438 |
%py2_build
|
|
Christopher Meng |
25062c4 |
|
|
Christopher Meng |
25062c4 |
%install
|
|
Fabio Alessandro Locati |
5de9438 |
%py2_install
|
|
Fabio Alessandro Locati |
7dcf09a |
install -d -m 0755 %{buildroot}/usr/share/man/man1
|
|
Fabio Alessandro Locati |
7dcf09a |
install -m 0644 doc/2ping.1 %{buildroot}/usr/share/man/man1/2ping.1
|
|
Fabio Alessandro Locati |
7dcf09a |
install -m 0644 doc/2ping.1 %{buildroot}/usr/share/man/man1/2ping6.1
|
|
Fabio Alessandro Locati |
5de9438 |
|
|
Fabio Alessandro Locati |
5de9438 |
%check
|
|
Fabio Alessandro Locati |
5de9438 |
%{__python2} setup.py test
|
|
Christopher Meng |
25062c4 |
|
|
Christopher Meng |
25062c4 |
%files
|
|
Christopher Meng |
25062c4 |
%doc ChangeLog COPYING README
|
|
Fabio Alessandro Locati |
5de9438 |
%{python2_sitelib}/*
|
|
Christopher Meng |
25062c4 |
%{_bindir}/2ping
|
|
Christopher Meng |
25062c4 |
%{_bindir}/2ping6
|
|
Fabio Alessandro Locati |
5de9438 |
%{_mandir}/man1/2ping.1*
|
|
Fabio Alessandro Locati |
5de9438 |
%{_mandir}/man1/2ping6.1*
|
|
Christopher Meng |
25062c4 |
|
|
Christopher Meng |
25062c4 |
%changelog
|
|
Fabio Alessandro Locati |
2d2fbd9 |
* Sat Mar 26 2016 Fabio Alessandro Locati <fabio@locati.cc> - 3.2.1-1
|
|
Fabio Alessandro Locati |
2d2fbd9 |
- Update to 3.2.1
|
|
Fabio Alessandro Locati |
2d2fbd9 |
|
|
Fabio Alessandro Locati |
7dcf09a |
* Tue Mar 01 2016 Fabio Alessandro Locati <fabio@locati.cc> - 3.2.0-2
|
|
Fabio Alessandro Locati |
7dcf09a |
- Fix for EL6 and EPEL7
|
|
Fabio Alessandro Locati |
7dcf09a |
- Cleanup the SPEC file
|
|
Fabio Alessandro Locati |
7dcf09a |
|
|
Fabio Alessandro Locati |
5de9438 |
* Tue Mar 01 2016 Fabio Alessandro Locati <fabio@locati.cc> - 3.2.0-1
|
|
Fabio Alessandro Locati |
5de9438 |
- Update to 3.2.0
|
|
Fabio Alessandro Locati |
5de9438 |
|
|
Fabio Alessandro Locati |
5de9438 |
* Tue Mar 01 2016 Ryan Finnie <ryan@finnie.org> - 3.1.0-1
|
|
Fabio Alessandro Locati |
5de9438 |
- Update to 3.1.0 (#1275261)
|
|
Fabio Alessandro Locati |
5de9438 |
|
|
|
1379d1b |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-8
|
|
|
1379d1b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
1379d1b |
|
|
|
7238b0f |
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-7
|
|
|
7238b0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7238b0f |
|
|
|
c91cdea |
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-6
|
|
|
c91cdea |
- Perl 5.22 rebuild
|
|
|
c91cdea |
|
|
|
cb2ab7c |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-5
|
|
|
cb2ab7c |
- Perl 5.20 rebuild
|
|
|
cb2ab7c |
|
|
|
ce640ba |
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
|
|
|
ce640ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
ce640ba |
|
|
|
baf8515 |
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
|
|
|
baf8515 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
baf8515 |
|
|
Koji |
66a7c30 |
* Tue Aug 13 2013 Christopher Meng <rpm@cicku.me> - 2.0-2
|
|
Koji |
66a7c30 |
- Perl 5.18 Rebuild.
|
|
Koji |
66a7c30 |
|
|
Christopher Meng |
25062c4 |
* Thu May 17 2012 Christopher Meng <rpm@cicku.me> - 2.0-1
|
|
Christopher Meng |
25062c4 |
- Initial Package.
|