2007-01-16 00:44:20 +01:00
|
|
|
#
|
2011-08-29 13:16:09 +02:00
|
|
|
# spec file for package yast2-firewall (Version 2.21.0)
|
2010-05-03 21:39:41 +02:00
|
|
|
#
|
|
|
|
# norootforbuild
|
2010-04-30 14:29:06 +02:00
|
|
|
|
2011-08-29 13:16:09 +02:00
|
|
|
Name: yast2-firewall
|
|
|
|
Version: 2.21.0
|
|
|
|
Release: 0
|
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source0: yast2-firewall-2.21.0.tar.bz2
|
|
|
|
|
|
|
|
prefix: /usr
|
|
|
|
|
|
|
|
Group: System/YaST
|
|
|
|
License: GPL v2 or later
|
|
|
|
BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-testsuite
|
|
|
|
BuildRequires: yast2 >= 2.16.47
|
2008-03-28 17:15:37 +01:00
|
|
|
|
2009-11-27 19:33:07 +01:00
|
|
|
# Netmask::CheckPrefix4
|
2011-08-29 13:16:09 +02:00
|
|
|
Requires: yast2 >= 2.18.26
|
|
|
|
|
2008-09-01 02:39:33 +02:00
|
|
|
# ButtonBox widget
|
2011-08-29 13:16:09 +02:00
|
|
|
Conflicts: yast2-ycp-ui-bindings < 2.17.3
|
|
|
|
|
|
|
|
Provides: yast2-config-firewall
|
|
|
|
Obsoletes: yast2-config-firewall
|
|
|
|
Provides: yast2-trans-firewall
|
|
|
|
Obsoletes: yast2-trans-firewall
|
|
|
|
|
|
|
|
BuildArchitectures: noarch
|
|
|
|
|
|
|
|
Summary: YaST2 - Firewall Configuration
|
2007-01-16 00:44:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A YaST2 module to be used for configuring a firewall.
|
|
|
|
|
|
|
|
%prep
|
2011-08-29 13:16:09 +02:00
|
|
|
%setup -n yast2-firewall-2.21.0
|
2007-01-16 00:44:20 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{prefix}/bin/y2tool y2autoconf
|
|
|
|
%{prefix}/bin/y2tool y2automake
|
|
|
|
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
|
|
|
|
2007-01-16 00:44:20 +01:00
|
|
|
%{?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
|
|
|
|
|
2011-08-29 13:16:09 +02:00
|
|
|
|
2007-01-16 00:44:20 +01:00
|
|
|
%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
|