%global lib /lib/ Name: ufw Version: 0.30.1 Release: 4%{?dist} Summary: Uncomplicated Firewall License: GPLv3+ URL: http://launchpad.net/%{name} Source0: http://launchpad.net/%{name}/0.30/%{version}/+download/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-common.py-file.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: iptables-devel BuildRequires: iptables-ipv6 %description The Uncomplicated Firewall(ufw) is a front-end for netfilter, which aims to make it easier for people unfamiliar with firewall concepts. Ufw provides a framework for managing netfilter as well as manipulating the firewall. %prep %setup -q #Submited patch through ufw's bug report #Fix directory locations instead of #CONFIG_PREFIX# #http://bugs.launchpad.net/ufw/+bug/819600 %patch0 -p0 -b .common.py %build python setup.py build %install rm -rf %{buildroot} python setup.py install \ --skip-build \ --root %{buildroot} %files %doc ChangeLog COPYING README* TODO AUTHORS %{lib}/ufw/ %{_sbindir}/ufw %{_mandir}/man8/ufw-framework.8* %{_mandir}/man8/ufw.8* %{_datadir}/ufw/ %{python_sitelib}/ufw-%{version}-py*.egg-info %{python_sitelib}/ufw/ %config(noreplace) %{_sysconfdir}/ufw/ %config(noreplace) %{_sysconfdir}/default/ufw %changelog * Tue Aug 02 2011 Nathan Owe 0.30.1-4 - Cleaned the file list a little more - Added more detail about the patch file * Tue Aug 02 2011 Nathan Owe 0.30.1-3 - Made the file list a little smaller * Mon Aug 01 2011 Nathan Owe 0.30.1-2 - Set dir ownership - Patch to fix directory locations * Sun Jul 31 2011 Nathan Owe 0.30.1-1 - Initial Release