]> git.pld-linux.org Git - packages/fake.git/blobdiff - fake.spec
- fixed usage of macros
[packages/fake.git] / fake.spec
index b9466b612e5f87a1dff63cefc0383317ae79139f..385839f25905299e8f5918eacc04e269eedcfafc 100644 (file)
--- a/fake.spec
+++ b/fake.spec
@@ -1,63 +1,42 @@
-# Note that this is NOT a relocatable package
-%define ver      1.1.1
-%define rel      1
-%define prefix   /usr
-
-Summary: Switches in redundant servers using arp spoofing
-Name: fake
-Version: %ver
-Release: %rel
-Copyright: GPL
-Group: Networking/Utilities
-Source: ftp://ftp.zipworld.com.au/pub/linux/fake/fake-%{ver}.tar.gz
-Obsoletes: fake
-BuildRoot: /tmp/fake-root
-Packager: Horms <horms@zipworld.com.au>
-URL: http://linux.zipworld.com.au/redundant_linux/
-Docdir: %{prefix}/doc
+Summary:       Switches in redundant servers using arp spoofing
+Name:          fake
+Version:       1.1.1
+Release:       2
+Copyright:     GPL
+Group:         Networking/Utilities
+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
 
 %description
-Fake is a utility that enables the IP address be taken over
-by bringing up a second interface on the host machine and
-using gratuitous arp. Designed to switch in backup servers
-on a LAN.
-
+Fake is a utility that enables the IP address be taken over by bringing up a
+second interface on the host machine and using gratuitous arp. Designed to
+switch in backup servers on a LAN.
 
 %prep
-%setup -n fake-%{ver}
+%setup -q
 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
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT/etc/fake/run/CVS
 
-%post
+gzip -9nf README AUTHORS ChangeLog docs/{arp_fun,redundant_linux}.txt
 
-%postun
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root)
-
-%doc README 
-%doc AUTHORS 
-%doc COPYING 
-%doc ChangeLog
-%doc docs
-%doc docs/arp_fun.txt
-%doc docs/redundant_linux.txt
-%doc docs/redundant_linux.ps.gz
-%doc docs/redundant_linux.tar.gz
-
-%{prefix}/bin/send_arp
-%{prefix}/bin/fake
+%defattr(644,root,root,755)
+%doc *.gz docs/*.txt.gz
+%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
This page took 0.077596 seconds and 4 git commands to generate.