File gufw.spec of Package gufw

# spec file for package gufw
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           gufw 
Version:        16.04.0 
Release:        0
Summary:        Uncomplicated Firewall
License:        GPL-3.0
Group:          Productivity/Networking/Security
BuildArch:      noarch

BuildRequires:  autoconf
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  python-distutils-extra
BuildRequires:  python-netifaces
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       girepository-1_0
Requires:       gufw-lang
Requires:       notification-daemon
Requires:       python-distutils-extra
Requires:       python-gobject >= 3.0.1
Requires:       python-netifaces
Requires:       typelib-1_0-WebKit-3_0
Requires:       ufw
Recommends:     %{name}-lang

An easy, intuitive, way to manage your Linux firewall. It supports common tasks such as allowing or blocking pre-configured, common p2p, or individual ports port(s), and many others!


%setup -q -n gui-ufw-%{version}
#Submited patch through ufw's bug report
#Fix directory locations instead of #CONFIG_PREFIX#

python install --prefix=%{_prefix} \
--root %{buildroot}
rm %{buildroot}%{python_sitelib}/gufw/model/
rm %{buildroot}%{python_sitelib}/gufw/view/
rm %{buildroot}%{python_sitelib}/gufw/model/__init__.pyc
rm %{buildroot}%{python_sitelib}/gufw/view/__init__.pyc
chmod 755 %{buildroot}%{python_sitelib}/gufw/
chmod 755 %{buildroot}%{python_sitelib}/gufw/model/
%suse_update_desktop_file -r gufw System Security
%find_lang gufw
%fdupes %{buildroot}

cp %{python_sitelib}/gufw/ %{python_sitelib}/gufw/model/
cp %{python_sitelib}/gufw/ %{python_sitelib}/gufw/view/


%dir %{_sysconfdir}/gufw/app_profiles
%config %{_sysconfdir}/gufw/app_profiles/*

%files lang -f gufw.lang

openSUSE Build Service is sponsored by