X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dropwatch.spec;h=be85d213ca167cd1c6d6152cdf9bff9f1e79a8e0;hb=5a19907b62678c8b11015eb1508d7ae2fdcdc869;hp=087c95199aee3da81cc18bb415698454b2f664d9;hpb=5258d031ef31a2f8ec7c61db0e746b46f6a8f1f9;p=packages%2Fdropwatch.git diff --git a/dropwatch.spec b/dropwatch.spec index 087c951..be85d21 100644 --- a/dropwatch.spec +++ b/dropwatch.spec @@ -1,14 +1,18 @@ Summary: Kernel dropped packet monitor +Summary(pl.UTF-8): Monitor pakietów odrzuconych przez jądro Name: dropwatch -Version: 1.4 +Version: 1.5.3 Release: 1 License: GPL v2+ Group: Applications/System -Source0: https://fedorahosted.org/releases/d/r/dropwatch/%{name}-%{version}.tbz2 -# Source0-md5: 5145753b3e9255bd9b190251ba4d3bbf -URL: http://fedorahosted.org/dropwatch +Source0: https://github.com/nhorman/dropwatch/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 64527bb669393e45b9b21f0b91c574c0 +URL: https://github.com/nhorman/dropwatch +BuildRequires: autoconf >= 2.50 +BuildRequires: automake BuildRequires: binutils-devel -BuildRequires: libnl-devel +BuildRequires: libnl-devel >= 3.2 +BuildRequires: libpcap-devel BuildRequires: linux-libc-headers BuildRequires: pkgconfig BuildRequires: readline-devel @@ -19,32 +23,35 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) dropwatch is an utility to interface to the kernel to monitor for dropped network packets. +%description -l pl.UTF-8 +dropwatch to narzędzie współpracujące z jądrem w celu monitorowania +odrzuconych pakietów sieciowych. + %prep %setup -q -cd src -%{__sed} -i -e 's,gcc,$(CC),g' Makefile -%{__sed} -i -e '/^CFLAGS/ s/$/ $(EXTRA_CFLAGS)/' Makefile -%{__sed} -i -e '/^LDFLAGS/ s/$/ $(EXTRA_LDFLAGS)/' Makefile - %build -%{__make} -C src \ - CC="%{__cc}" - EXTRA_CFLAGS="%{rpmcflags}" \ - EXTRA_LDFLAGS="%{rpmldflags}" \ - %{nil} +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +%configure + +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} -install -p src/dropwatch $RPM_BUILD_ROOT%{_bindir} -cp -p doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc README -%attr(755,root,root) %{_bindir}/* -%{_mandir}/man1/* +%doc README.md +%attr(755,root,root) %{_bindir}/dropwatch +%attr(755,root,root) %{_bindir}/dwdump +%{_mandir}/man1/dropwatch.1*