]> git.pld-linux.org Git - packages/dropwatch.git/blobdiff - dropwatch.spec
- updated to 1.5.3
[packages/dropwatch.git] / dropwatch.spec
index 5f4f32455ddcca6d05b5c22c11d1b3c265877061..be85d213ca167cd1c6d6152cdf9bff9f1e79a8e0 100644 (file)
@@ -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
-Release:       3
+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*
This page took 0.077031 seconds and 4 git commands to generate.