Name: netdude Version: 0.5.0 Release: 2%{?dist} Summary: Inspection, analysis and manipulation of tcpdump trace files Group: Applications/Internet License: MIT with advertising URL: http://netdude.sourceforge.net/ Source0: http://downloads.sourceforge.net/netdude/netdude-%{version}.tar.gz Source1: netdude.desktop Patch0: netdude-0.5.0-path.patch Patch1: netdude-0.5.0-ltdl.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: %{name}-libs BuildRequires: libpcap-devel, libnetdude-devel, gtk+-devel, gamin-devel BuildRequires: libpcapnav-devel, autoconf, automake, libtool, gtk-doc BuildRequires: desktop-file-utils, libtool-ltdl-devel %description The Network Dump data Displayer and Editor is a framework for inspection, analysis and manipulation of tcpdump trace files. It addresses the need for a toolset that allows easy inspection, modification, and creation of pcap/tcpdump trace files. %package libs Summary: Library files for %{name} Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description libs The %{name}-libs package contains libraries and header files for running %{name} and developing applications that use %{name} plugins. %prep %setup -q %patch0 -p 1 -b .path %patch1 -p 1 -b .ltdl %build # regenerate the patched files ./autogen.sh %configure make %{?_smp_mflags} pushd doc/netdude-manual make %{?_smp_mflags} docs popd %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" rm -f %{buildroot}%{_bindir}/netdude mv %{buildroot}%{_bindir}/netdude0.5 %{buildroot}%{_bindir}/netdude find %{buildroot} -name '*.la' -exec rm -f {} ';' find %{buildroot} -name '*.a' -exec rm -f {} ';' rm -rf libltdl/.libs desktop-file-install --vendor="fedora" \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README COPYING %{_bindir}/netdude* %{_mandir}/man1/netdude.1* %{_datadir}/netdude/ %{_datadir}/applications/*.desktop %files libs %defattr(-,root,root,-) %doc README COPYING ChangeLog TODO %{_includedir}/* %{_libdir}/%{name}/ %{_datadir}/gtk-doc/html/%{name}/ %changelog * Tue Dec 23 2008 Andreas Thienemann - 0.5.0-2 - Added explicit libtool-ltdl-devel dependency - Changed lt_ptr_t to lt_ptr in order to work around deprecated ltdl apis * Fri Oct 17 2008 Andreas Thienemann - 0.5.0-1 - Updated to new upstream release - Added patch to fix install locations for arch-dependen object files * Tue Aug 12 2008 Andreas Thienemann - 0.4.8a-1 - Initial package