]> git.pld-linux.org Git - packages/ufw.git/blob - ufw.spec
new, version 0.30.1
[packages/ufw.git] / ufw.spec
1 Summary:        Uncomplicated Firewall
2 Name:           ufw
3 Version:        0.30.1
4 Release:        1
5 License:        GPL v3+
6 Group:          Networking/Admin
7 URL:            http://launchpad.net/ufw
8 Source0:        http://launchpad.net/ufw/0.30/%{version}/+download/%{name}-%{version}.tar.gz
9 # Source0-md5:  3182fad2249cf5f7e5589f44f0f078bd
10 Patch0:         common.py-file.patch
11 BuildRequires:  iptables-devel
12 BuildRequires:  rpm-pythonprov
13 BuildRequires:  rpmbuild(macros) >= 1.219
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 The Uncomplicated Firewall(ufw) is a front-end for netfilter, which
19 aims to make it easier for people unfamiliar with firewall concepts.
20 Ufw provides a framework for managing netfilter as well as
21 manipulating the firewall.
22
23 %prep
24 %setup -q
25 # Submited patch through ufw's bug report
26 # Fix directory locations instead of #CONFIG_PREFIX#
27 # http://bugs.launchpad.net/ufw/+bug/819600
28 %patch0 -p0
29
30 %build
31 %{__python} setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 %{__python} setup.py install \
36         --skip-build \
37         --optimize=2 \
38         --root=$RPM_BUILD_ROOT
39
40 %py_postclean
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc ChangeLog COPYING README* TODO AUTHORS
48 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/ufw
49 %dir %{_sysconfdir}/ufw
50 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ufw/*.conf
51 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ufw/*.rules
52 %dir %{_sysconfdir}/ufw/applications.d
53 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ufw/applications.d/*
54
55 %attr(755,root,root) %{_sbindir}/ufw
56 %{_mandir}/man8/ufw-framework.8*
57 %{_mandir}/man8/ufw.8*
58 %{_datadir}/%{name}
59 %dir /lib/ufw
60 /lib/ufw/ufw-init
61 /lib/ufw/ufw-init-functions
62 /lib/ufw/user.rules
63 /lib/ufw/user6.rules
64 %{py_sitescriptdir}/ufw
65 %{py_sitescriptdir}/ufw-%{version}-py*.egg-info
This page took 0.048886 seconds and 3 git commands to generate.