1d2108c
%global     srcname     httpry
1d2108c
1d2108c
Summary:    A specialized packet sniffer designed for displaying and logging HTTP traffic
1d2108c
Name:       %{srcname}
1d2108c
Version:    0.1.8
bf8c4c8
Release:    17%{?dist}
1d2108c
License:    GPLv2 and BSD
1d2108c
URL:        http://dumpsterventures.com/jason/%{srcname}/
1d2108c
Source:     http://dumpsterventures.com/jason/%{srcname}/%{srcname}-%{version}.tar.gz
1d2108c
5640ef8
BuildRequires:  gcc
8d32606
BuildRequires: libpcap-devel
7a4d5a0
BuildRequires: make
8d32606
8d32606
%description
1d2108c
httpry is a specialized packet sniffer designed for displaying and logging
1d2108c
HTTP traffic. It is not intended to perform analysis itself, but to capture,
1d2108c
parse, and log the traffic for later analysis. It can be run in real-time
1d2108c
displaying the traffic as it is parsed, or as a daemon process that logs to
1d2108c
an output file. It is written to be as lightweight and flexible as possible,
8d32606
so that it can be easily adaptable to different applications.
8d32606
8d32606
%prep
8d32606
%setup -q
8d32606
8d32606
%build
f9149e1
sed -i 's/^CCFLAGS.*$/CCFLAGS = \$(RPM_OPT_FLAGS) \$(RPM_LD_FLAGS) -I\/usr\/include\/pcap -I\/usr\/local\/include\/pcap/' Makefile
8d32606
make %{?_smp_mflags}
8d32606
8d32606
%install
8d32606
rm -rf %{buildroot}
8d32606
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
8d32606
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
1d2108c
install -Dp -m 0755 %{srcname} ${RPM_BUILD_ROOT}%{_sbindir}/%{srcname}
8d32606
install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
8d32606
8d32606
%files
1d2108c
%doc doc/ChangeLog doc/COPYING doc/format-string doc/method-string doc/perl-tools doc/README
1d2108c
%{_sbindir}/%{srcname}
1d2108c
%{_mandir}/man1/%{srcname}.1*
8d32606
8d32606
%changelog
bf8c4c8
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-17
bf8c4c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bf8c4c8
1d2108c
%autochangelog