- build -frontend as noarch

This commit is contained in:
Michal Hlavinka 2010-06-21 14:44:17 +00:00
parent 708081b7af
commit afdf491e29

View File

@ -2,7 +2,7 @@
Summary: Network exploration tool and security scanner Summary: Network exploration tool and security scanner
Name: nmap Name: nmap
Version: 5.21 Version: 5.21
Release: 3%{?dist} Release: 4%{?dist}
# nmap is GPLv2 # nmap is GPLv2
# zenmap is GPLv2 and LGPLv2+ (zenmap/higwidgets) and GPLv2+ (zenmap/radialnet) # zenmap is GPLv2 and LGPLv2+ (zenmap/higwidgets) and GPLv2+ (zenmap/radialnet)
# libdnet-stripped is BSD (advertising clause rescinded by the Univ. of California in 1999) with some parts as Public Domain (crc32) # libdnet-stripped is BSD (advertising clause rescinded by the Univ. of California in 1999) with some parts as Public Domain (crc32)
@ -45,6 +45,7 @@ Summary: The GTK+ front end for nmap
Group: Applications/System Group: Applications/System
Requires: nmap = %{epoch}:%{version} gtk2 python >= 2.5 pygtk2 usermode Requires: nmap = %{epoch}:%{version} gtk2 python >= 2.5 pygtk2 usermode
BuildRequires: python >= 2.5 python-devel pygtk2-devel libpng-devel BuildRequires: python >= 2.5 python-devel pygtk2-devel libpng-devel
BuildArch: noarch
%description frontend %description frontend
This package includes zenmap, a GTK+ front end for nmap. The nmap package must This package includes zenmap, a GTK+ front end for nmap. The nmap package must
be installed before installing nmap front end. be installed before installing nmap front end.
@ -58,9 +59,6 @@ be installed before installing nmap front end.
#be sure we're not using tarballed copies of some libraries #be sure we're not using tarballed copies of some libraries
rm -rf liblua libpcap libpcre macosx mswin32 rm -rf liblua libpcap libpcre macosx mswin32
#fix multilib issue - step 1 - keep Paths.py time
touch -r zenmap/zenmapCore/Paths.py Pathspytimeref
#fix locale dir #fix locale dir
mv zenmap/share/zenmap/locale zenmap/share mv zenmap/share/zenmap/locale zenmap/share
sed -i -e "s|^locale_dir =.*$|locale_dir = os.path.join('share','locale')|" \ sed -i -e "s|^locale_dir =.*$|locale_dir = os.path.join('share','locale')|" \
@ -89,9 +87,6 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d \
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/zenmap-root install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/zenmap-root
install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/zenmap-root install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/zenmap-root
#fix multilib issue - step 2 - restore Paths.py time
touch -r Pathspytimeref $RPM_BUILD_ROOT%{python_sitelib}/zenmapCore/Paths.py
cp docs/zenmap.1 $RPM_BUILD_ROOT%{_mandir}/man1/ cp docs/zenmap.1 $RPM_BUILD_ROOT%{_mandir}/man1/
gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || : gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || :
pushd $RPM_BUILD_ROOT%{_mandir}/man1 pushd $RPM_BUILD_ROOT%{_mandir}/man1
@ -155,6 +150,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/xnmap.1.gz %{_mandir}/man1/xnmap.1.gz
%changelog %changelog
* Mon Jun 21 2010 Michal Hlavinka <mhlavink@redhat.com> - 2:5.21-4
- build -frontend as noarch
* Fri Jun 18 2010 Michal Hlavinka <mhlavink@redhat.com> - 2:5.21-3 * Fri Jun 18 2010 Michal Hlavinka <mhlavink@redhat.com> - 2:5.21-3
- fix multilib issue - fix multilib issue