From a4964fd54388638978a213f123a844e0085696d6 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Fri, 10 Oct 2014 13:15:56 +0200 Subject: [PATCH] new package --- dropwatch.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 dropwatch.spec diff --git a/dropwatch.spec b/dropwatch.spec new file mode 100644 index 0000000..82f903e --- /dev/null +++ b/dropwatch.spec @@ -0,0 +1,43 @@ +Summary: Kernel dropped packet monitor +Name: dropwatch +Version: 1.4 +Release: 1 +Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2 +# Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf +License: GPLv2+ +Group: Applications/System +URL: http://fedorahosted.org/dropwatch +BuildRequires: binutils-devel +BuildRequires: libnl-devel +BuildRequires: linux-libc-headers +BuildRequires: pkgconfig +BuildRequires: readline-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +dropwatch is an utility to interface to the kernel to monitor for +dropped network packets. + +%prep +%setup -q + +%build +cd src +export CFLAGS=$RPM_OPT_FLAGS +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_bindir} +install -d $RPM_BUILD_ROOT%{_mandir}/man1 +install src/dropwatch $RPM_BUILD_ROOT%{_bindir} +install doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %{_bindir}/* +%{_mandir}/man1/* -- 2.43.0