--- /dev/null
+Summary: Simple packet filter generator
+Name: filter
+Version: 0.3
+Release: 1
+License: GPL
+Group: Networking/Utilities
+Source0: http://hairy.beasts.org/filter/%{name}-%{version}.tar.gz
+Source1: %{name}.conf
+Patch0: %{name}-equalsigns.patch
+URL: http://hairy.beasts.org/filter/
+BuildRequires: flex
+Provides: firewall
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This tool is for generating packet filtering rules from a fairly high-
+level description language. It doesn't support all of the whizz-bang
+features of the latest and greatest packet filters, but supports a
+decent subset which is sufficient for typical workstation.
+
+It currently supports only Linux iptables and ipchains. Cisco IOS has
+been begun, but is incomplete. Darren Reed's ipfilter may be supported
+at some stage. It doesn't generate optimal rulesets, and has a few
+limitations which need to be removed, but is still a useful tool.
+
+Please read HONESTY file!
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_sysconfdir}/%{name}}
+cp filtergen $RPM_BUILD_ROOT/%{_sbindir}
+cp %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/simple.conf
+
+gzip -9nf README HONESTY HISTORY TODO tests/*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.gz HONESTY.gz HISTORY.gz TODO.gz
+%doc tests
+%{_sbindir}/filtergen
+%{_sysconfdir}/%{name}/simple.conf