%define name arpscan %define version 0.10 %define release 1%{?_dist_release} Summary: Very simple ARP scanner Summary(ja): シンプルな ARP スキャナ Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Applications/Internet Packager: OOI Keita Distribution: Vine Linux Vendor: Project Vine URL: http://wizard.ae.krakow.pl/~jb/arpscan/ Source0: http://wizard.ae.krakow.pl/~jb/arpscan/%{name}-%{version}.tar.gz Source1: http://standards.ieee.org/develop/regauth/oui/oui.txt BuildRequires: gawk #BuildRequires: wget BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Arpscan is a utility that scans local network using ARP protocol and reports alive hosts. Program is designed for Linux. %description -l ja ARPプロトコルを使って、ローカルネットワークをスキャンし、 活動中のホストを報告するユーティリティです。 %prep %setup -q cp %{SOURCE1} . %build make \ CC=%{__cc} \ CFLAGS="%{optflags} -DVER=\$(VERSION) -DOUI=\$(OUI)" \ OUI=%{_datadir}/%{name}/oui gawk -f oui.awk oui.txt > oui %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_sbindir} install -d %{buildroot}%{_datadir}/%{name}/ install -m0755 %{name} %{buildroot}%{_sbindir}/%{name} install -m0644 oui %{buildroot}%{_datadir}/%{name}//oui %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %attr(0755,root,root) %{_sbindir}/* %{_datadir}/%{name} %changelog * Tue Feb 14 2012 Yoji TOYODA 0.10-1 - update to 0.10 - remove Patch * Sun Sep 14 2008 Shu KONNO 0.5-2vl5 - applied new versioning policy, spec in utf-8 * Thu Aug 3 2006 Ryoichi INAGAKI 0.5-1vl2 - rebuilt for VineSeed (4.0) * Sun May 22 2005 OOI Keita 0.5-1vl1 - based on mdk * Sat Jan 08 2005 Oden Eriksson 0.5-1mdk - initial pld import