2007-01-16 00:44:20 +01:00
|
|
|
#
|
2010-03-18 16:38:55 +01:00
|
|
|
# spec file for package yast2-firewall (Version 2.19.0)
|
2007-01-16 00:44:20 +01:00
|
|
|
#
|
2010-03-18 16:38:55 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:44:20 +01:00
|
|
|
#
|
2008-09-01 02:39:33 +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.
|
|
|
|
|
2007-01-16 00:44:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-28 17:15:37 +01:00
|
|
|
|
2007-01-16 00:44:20 +01:00
|
|
|
Name: yast2-firewall
|
2010-03-18 16:38:55 +01:00
|
|
|
Version: 2.19.0
|
2009-02-27 00:51:03 +01:00
|
|
|
Release: 1
|
2007-01-16 00:44:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-18 16:38:55 +01:00
|
|
|
Source0: yast2-firewall-2.19.0.tar.bz2
|
2007-09-17 17:56:59 +02:00
|
|
|
Prefix: /usr
|
2009-10-26 17:21:15 +01:00
|
|
|
Group: System/YaST
|
2009-11-27 19:33:07 +01:00
|
|
|
License: GPLv2+
|
2008-04-09 21:09:49 +02:00
|
|
|
BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-testsuite
|
|
|
|
BuildRequires: yast2 >= 2.16.47
|
2009-11-27 19:33:07 +01:00
|
|
|
# Netmask::CheckPrefix4
|
|
|
|
Requires: yast2 >= 2.18.26
|
2008-09-01 02:39:33 +02:00
|
|
|
# ButtonBox widget
|
|
|
|
Conflicts: yast2-ycp-ui-bindings < 2.17.3
|
2007-01-16 00:44:20 +01:00
|
|
|
Provides: yast2-config-firewall
|
|
|
|
Obsoletes: yast2-config-firewall
|
|
|
|
Provides: yast2-trans-firewall
|
|
|
|
Obsoletes: yast2-trans-firewall
|
2007-09-17 17:56:59 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:44:20 +01:00
|
|
|
Summary: YaST2 - Firewall Configuration
|
|
|
|
|
|
|
|
%description
|
|
|
|
A YaST2 module to be used for configuring a firewall.
|
|
|
|
|
|
|
|
%prep
|
2010-03-18 16:38:55 +01:00
|
|
|
%setup -n yast2-firewall-2.19.0
|
2007-01-16 00:44:20 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{prefix}/bin/y2tool y2autoconf
|
|
|
|
%{prefix}/bin/y2tool y2automake
|
|
|
|
autoreconf --force --install
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
|
|
./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"
|
|
|
|
[ -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
|
|
|
|
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*
|
|
|
|
%{prefix}/share/applications/YaST2/firewall.desktop
|
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/firewall.rnc
|
|
|
|
%doc %{prefix}/share/doc/packages/yast2-firewall
|
2007-02-23 12:08:40 +01:00
|
|
|
%changelog
|