Release: 2
Copyright: GPL
Group: Networking/Utilities
-Source: ftp://ftp.zipworld.com.au/pub/linux/fake/fake-%{ver}.tar.gz
+Source: ftp://ftp.zipworld.com.au/pub/linux/fake/%{name}-%{version}.tar.gz
URL: http://linux.zipworld.com.au/redundant_linux/
BuildRoot: /tmp/%{name}-%{version}-root
make patch
%build
-CFLAGS="${RPM_OPT_FLAGS}"
-make
+make CC="gcc $RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make ROOT_DIR=$RPM_BUILD_ROOT install
-gzip -9nf README AUTHORS ChangeLog docs/{arp_fun,redundant_linux.txt}.txt
+rm -rf $RPM_BUILD_ROOT/etc/fake/run/CVS
+
+gzip -9nf README AUTHORS ChangeLog docs/{arp_fun,redundant_linux}.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc *.gz docs/*.txt.gz
-%{prefix}/bin/send_arp
-%{prefix}/bin/fake
+%attr(755,root,root) %{_bindir}/send_arp
+%attr(755,root,root) %{_bindir}/fake
%config /etc/fake/.fakerc
%config /etc/fake/clear_routers
%config /etc/fake/instance_config/203.12.97.7.cfg