SHA256
1
0
forked from pool/ufw
ufw/ufw.spec

103 lines
2.9 KiB
RPMSpec

Name: ufw
Version: 0.30.1
Release: 0
Summary: Uncomplicated Firewall
Group: Productivity/Networking/Security
License: GPLv3+
URL: http://launchpad.net/%{name}
Source0: %{name}-%{version}.tar.bz2
Source1: ufw-init
#BuildArch: noarch
BuildRequires: python-devel
BuildRequires: iptables-devel
#Requires:
%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
%build
#python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=/usr \
--root %{buildroot}
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
install -m 755 $RPM_SOURCE_DIR/ufw-init $RPM_BUILD_ROOT/etc/init.d/ufw
ln -s /etc/init.d/ufw $RPM_BUILD_ROOT/usr/sbin/rcufw
mkdir -p $RPM_BUILD_ROOT/usr/bin/
ln -s /usr/sbin/ufw $RPM_BUILD_ROOT/usr/bin/ufw
%post
insserv /etc/init.d/ufw
%preun
%stop_on_removal ufw
%postun
%insserv_cleanup /etc/init.d/ufw
%files
%defattr(-,root,root)
/lib/ufw/ufw-init
/lib/ufw/ufw-init-functions
/lib/ufw/user.rules
/lib/ufw/user6.rules
/usr/lib/python%python_version/site-packages/ufw-0.30.1-py%python_version.egg-info
/usr/sbin/ufw
/usr/sbin/rcufw
/usr/bin/ufw
/usr/share/man/man8/ufw-framework.8.gz
/usr/share/man/man8/ufw.8.gz
%config/etc/init.d/ufw
%config/etc/ufw
%config/etc/ufw/applications.d
%config/etc/default/ufw
/lib/ufw
/usr/lib/python%python_version/site-packages/ufw
/usr/share/ufw
/usr/share/ufw/iptables
%lang(ar) /usr/share/ufw/messages/ar.mo
%lang(bg) /usr/share/ufw/messages/bg.mo
%lang(ca) /usr/share/ufw/messages/ca.mo
%lang(cs) /usr/share/ufw/messages/cs.mo
%lang(da) /usr/share/ufw/messages/da.mo
%lang(de) /usr/share/ufw/messages/de.mo
%lang(el) /usr/share/ufw/messages/el.mo
%lang(en_AU) /usr/share/ufw/messages/en_AU.mo
%lang(en_GB) /usr/share/ufw/messages/en_GB.mo
%lang(es) /usr/share/ufw/messages/es.mo
%lang(fi) /usr/share/ufw/messages/fi.mo
%lang(fr) /usr/share/ufw/messages/fr.mo
%lang(he) /usr/share/ufw/messages/he.mo
%lang(hu) /usr/share/ufw/messages/hu.mo
%lang(id) /usr/share/ufw/messages/id.mo
%lang(it) /usr/share/ufw/messages/it.mo
%lang(nb) /usr/share/ufw/messages/nb.mo
%lang(nl) /usr/share/ufw/messages/nl.mo
%lang(pl) /usr/share/ufw/messages/pl.mo
%lang(pt) /usr/share/ufw/messages/pt.mo
%lang(pt_BR) /usr/share/ufw/messages/pt_BR.mo
%lang(ru) /usr/share/ufw/messages/ru.mo
%lang(sk) /usr/share/ufw/messages/sk.mo
%lang(dl) /usr/share/ufw/messages/sl.mo
%lang(sr) /usr/share/ufw/messages/sr.mo
%lang(sv) /usr/share/ufw/messages/sv.mo
%lang(tl) /usr/share/ufw/messages/tl.mo
%lang(zh_CN) /usr/share/ufw/messages/zh_CN.mo
%changelog