2007-01-16 00:44:20 +01:00
|
|
|
#
|
2011-08-29 16:51:08 +02:00
|
|
|
# spec file for package yast2-firewall
|
2010-05-03 21:39:41 +02:00
|
|
|
#
|
2013-01-22 11:19:36 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-08-29 16:51:08 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2011-08-29 16:51:08 +02:00
|
|
|
Name: yast2-firewall
|
2013-01-22 11:19:36 +01:00
|
|
|
Version: 2.21.3
|
2011-10-13 10:52:36 +02:00
|
|
|
Release: 0
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2011-08-29 16:51:08 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-11-04 16:07:07 +01:00
|
|
|
Source0: yast2-firewall-%{version}.tar.bz2
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2013-01-22 11:19:36 +01:00
|
|
|
BuildRequires: perl-XML-Writer
|
|
|
|
BuildRequires: update-desktop-files
|
2011-08-29 16:51:08 +02:00
|
|
|
BuildRequires: yast2 >= 2.16.47
|
2013-01-22 11:19:36 +01:00
|
|
|
BuildRequires: yast2-devtools
|
|
|
|
BuildRequires: yast2-testsuite
|
2008-03-28 17:15:37 +01:00
|
|
|
|
2009-11-27 19:33:07 +01:00
|
|
|
# Netmask::CheckPrefix4
|
2011-08-29 16:51:08 +02:00
|
|
|
Requires: yast2 >= 2.18.26
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2008-09-01 02:39:33 +02:00
|
|
|
# ButtonBox widget
|
2011-08-29 16:51:08 +02:00
|
|
|
Conflicts: yast2-ycp-ui-bindings < 2.17.3
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2011-08-29 16:51:08 +02:00
|
|
|
Provides: yast2-config-firewall
|
|
|
|
Obsoletes: yast2-config-firewall
|
|
|
|
Provides: yast2-trans-firewall
|
|
|
|
Obsoletes: yast2-trans-firewall
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2011-08-29 16:51:08 +02:00
|
|
|
BuildArch: noarch
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2011-08-29 16:51:08 +02:00
|
|
|
Summary: YaST2 - Firewall Configuration
|
2013-01-22 11:19:36 +01:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/YaST
|
2007-01-16 00:44:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A YaST2 module to be used for configuring a firewall.
|
|
|
|
|
|
|
|
%prep
|
2011-11-04 16:07:07 +01:00
|
|
|
%setup -n yast2-firewall-%{version}
|
2007-01-16 00:44:20 +01:00
|
|
|
|
|
|
|
%build
|
2011-11-04 16:07:07 +01:00
|
|
|
%{_prefix}/bin/y2tool y2autoconf
|
|
|
|
%{_prefix}/bin/y2tool y2automake
|
2007-01-16 00:44:20 +01:00
|
|
|
autoreconf --force --install
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2007-01-16 00:44:20 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2011-11-04 16:07:07 +01:00
|
|
|
./configure --libdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir}
|
2009-10-26 17:21:15 +01:00
|
|
|
# V=1: verbose build in case we used AM_SILENT_RULES(yes)
|
|
|
|
# so that RPM_OPT_FLAGS check works
|
|
|
|
make %{?jobs:-j%jobs} V=1
|
2007-01-16 00:44:20 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
2011-11-04 16:07:07 +01:00
|
|
|
[ -e "%{_prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
|
|
|
|
for f in `find $RPM_BUILD_ROOT/%{_prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
|
2007-01-16 00:44:20 +01:00
|
|
|
d=${f##*/}
|
|
|
|
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/share/YaST2/include/firewall
|
|
|
|
/usr/share/YaST2/include/firewall/*
|
|
|
|
/usr/share/YaST2/modules/SuSEFirewall*
|
|
|
|
/usr/share/YaST2/clients/firewall*
|
2011-11-04 16:07:07 +01:00
|
|
|
%{_prefix}/share/applications/YaST2/firewall.desktop
|
2007-01-16 00:44:20 +01:00
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/firewall.rnc
|
2011-11-04 16:07:07 +01:00
|
|
|
%doc %{_prefix}/share/doc/packages/yast2-firewall
|
2011-10-13 10:52:36 +02:00
|
|
|
|
2011-08-29 16:51:08 +02:00
|
|
|
%changelog
|