From f9149e18d2aa2f16e9633b76149dfb340839a5f7 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Feb 27 2012 13:43:55 +0000 Subject: Adjusted compiler flags in Makefile prior to build. (#796445) --- diff --git a/httpry-0.1.5.spec b/httpry-0.1.5.spec deleted file mode 100644 index 62380b8..0000000 --- a/httpry-0.1.5.spec +++ /dev/null @@ -1,52 +0,0 @@ -Summary: A specialized packet sniffer designed for displaying and logging HTTP traffic -Name: httpry -Version: 0.1.5 -Release: 3%{?dist} -License: GPLv2 and BSD -URL: http://dumpsterventures.com/jason/httpry/ -Group: Applications/Internet -Source: http://dumpsterventures.com/jason/httpry/httpry-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: libpcap-devel - -%description -httpry is a specialized packet sniffer designed for displaying and logging -HTTP traffic. It is not intended to perform analysis itself, but to capture, -parse, and log the traffic for later analysis. It can be run in real-time -displaying the traffic as it is parsed, or as a daemon process that logs to -an output file. It is written to be as lightweight and flexible as possible, -so that it can be easily adaptable to different applications. - -%prep -%setup -q - -%build -make %{?_smp_mflags} - -%install -rm -rf %{buildroot} -mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} -mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 -install -Dp -m 0755 httpry ${RPM_BUILD_ROOT}%{_sbindir}/httpry -install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr (-,root,root) -%doc doc/ChangeLog doc/COPYING doc/format-string doc/method-string doc/perl-tools doc/README -%{_sbindir}/httpry -%{_mandir}/man1/httpry.1* - -%changelog -* Wed Aug 03 2011 Major Hayden - 0.1.5-3 -- Additional cleanup -- Added man page -- Cleaning buildroot to meet EPEL requirements - -* Fri Jun 24 2011 Major Hayden - 0.1.5-2 -- Added %{?_smp_mflags} to make - -* Fri Jun 24 2011 Major Hayden - 0.1.5-1 -- Initial build diff --git a/httpry.spec b/httpry.spec new file mode 100644 index 0000000..89837a5 --- /dev/null +++ b/httpry.spec @@ -0,0 +1,56 @@ +Summary: A specialized packet sniffer designed for displaying and logging HTTP traffic +Name: httpry +Version: 0.1.5 +Release: 4%{?dist} +License: GPLv2 and BSD +URL: http://dumpsterventures.com/jason/httpry/ +Group: Applications/Internet +Source: http://dumpsterventures.com/jason/httpry/httpry-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libpcap-devel + +%description +httpry is a specialized packet sniffer designed for displaying and logging +HTTP traffic. It is not intended to perform analysis itself, but to capture, +parse, and log the traffic for later analysis. It can be run in real-time +displaying the traffic as it is parsed, or as a daemon process that logs to +an output file. It is written to be as lightweight and flexible as possible, +so that it can be easily adaptable to different applications. + +%prep +%setup -q + +%build +sed -i 's/^CCFLAGS.*$/CCFLAGS = \$(RPM_OPT_FLAGS) \$(RPM_LD_FLAGS) -I\/usr\/include\/pcap -I\/usr\/local\/include\/pcap/' Makefile +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 +install -Dp -m 0755 httpry ${RPM_BUILD_ROOT}%{_sbindir}/httpry +install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr (-,root,root) +%doc doc/ChangeLog doc/COPYING doc/format-string doc/method-string doc/perl-tools doc/README +%{_sbindir}/httpry +%{_mandir}/man1/httpry.1* + +%changelog +* Mon Feb 27 2012 Major Hayden - 0.1.5-4 +- Adjusted Makefile compiler flags to match packaging guidelines. + +* Wed Aug 03 2011 Major Hayden - 0.1.5-3 +- Additional cleanup +- Added man page +- Cleaning buildroot to meet EPEL requirements + +* Fri Jun 24 2011 Major Hayden - 0.1.5-2 +- Added %{?_smp_mflags} to make + +* Fri Jun 24 2011 Major Hayden - 0.1.5-1 +- Initial build