commit nmap for openSUSE:Factory
Hello community, here is the log from the commit of package nmap for openSUSE:Factory checked in at Tue Nov 2 14:12:41 CET 2010. -------- --- nmap/nmap.changes 2010-08-27 13:56:29.000000000 +0200 +++ /mounts/work_src_done/STABLE/nmap/nmap.changes 2010-10-30 06:48:36.000000000 +0200 @@ -1,0 +2,5 @@ +Sat Oct 30 04:44:07 UTC 2010 - malcolmlewis@opensuse.org + +- spec file clean up to build on SLE and openSUSE < 11.3 + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nmap.spec ++++++ --- /var/tmp/diff_new_pack.foDrsB/_old 2010-11-02 14:08:10.000000000 +0100 +++ /var/tmp/diff_new_pack.foDrsB/_new 2010-11-02 14:08:10.000000000 +0100 @@ -17,15 +17,27 @@ # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: nmap -BuildRequires: gcc-c++ gtk2-devel libdnet-devel libpcap-devel lua-devel openssl-devel pcre-devel python-devel update-desktop-files +BuildRequires: gcc-c++ +BuildRequires: gtk2-devel +BuildRequires: libdnet-devel +BuildRequires: libpcap-devel +BuildRequires: lua-devel +BuildRequires: openssl-devel +BuildRequires: pcre-devel +BuildRequires: python-devel +BuildRequires: update-desktop-files +BuildRequires: fdupes +BuildRequires: dos2unix Url: http://www.insecure.org/nmap/ License: GPLv2+ Group: Productivity/Networking/Diagnostic AutoReqProv: on Version: 5.21 -Release: 1 +Release: 2 Summary: Portscanner BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: http://nmap.org/dist/nmap-%{version}.tar.bz2 @@ -123,34 +135,66 @@ %patch3 -p0 %patch4 -p1 +#fix locale dir +mv zenmap/share/zenmap/locale zenmap/share +sed -i -e "s|^locale_dir =.*$|locale_dir = os.path.join('share','locale')|" \ + -e 's|join(self.install_data, data_dir)|join(self.install_data, "share")|' zenmap/setup.py +sed -i 's|^LOCALE_DIR = .*|LOCALE_DIR = join(prefix, "share", "locale")|' zenmap/zenmapCore/Paths.py + +#fix jp/ja pt_PT/pt zh/zh_CN locale +sed -i '/ALL_LINGUAS =/s/jp/ja/' Makefile.in +sed -i '/ALL_LINGUAS =/s/pt_PT/pt/' Makefile.in +sed -i '/ALL_LINGUAS =/s/zh/zh_CN/' Makefile.in +mv docs/man-xlate/nmap-jp.1 docs/man-xlate/nmap-ja.1 +mv docs/man-xlate/nmap-pt_PT.1 docs/man-xlate/nmap-pt.1 +mv docs/man-xlate/nmap-zh.1 docs/man-xlate/nmap-zh_CN.1 + %build -%configure --with-libpcap="%{_usr}" --with-libdnet=included --with-libpcre="%{_usr}" +%configure --with-libpcap="%{_usr}" \ + --with-libdnet=included \ + --with-libpcre="%{_usr}" %__make %{?jobs:-j%jobs} %install -%__make DESTDIR="$RPM_BUILD_ROOT" deskdir="%{_datadir}/gnome/apps/Utilities/" install -%__rm "$RPM_BUILD_ROOT%{_bindir}/uninstall_zenmap" -%__install -d "$RPM_BUILD_ROOT/usr/share/pixmaps/" -%__ln_s ../zenmap/pixmaps/zenmap.png "$RPM_BUILD_ROOT/usr/share/pixmaps/zenmap.png" +%__make DESTDIR="%{buildroot}" deskdir="%{_datadir}/gnome/apps/Utilities/" install +%__rm "%{buildroot}%{_bindir}/uninstall_zenmap" +%__install -d "%{buildroot}/usr/share/pixmaps/" +%__ln_s ../zenmap/pixmaps/zenmap.png "%{buildroot}/usr/share/pixmaps/zenmap.png" %suse_update_desktop_file zenmap System Network %suse_update_desktop_file zenmap-root System Network %find_lang zenmap -mv $RPM_BUILD_ROOT/%_mandir/jp $RPM_BUILD_ROOT/%_mandir/ja -mv $RPM_BUILD_ROOT/%_mandir/pt_PT $RPM_BUILD_ROOT/%_mandir/pt -mv $RPM_BUILD_ROOT/%_mandir/zh $RPM_BUILD_ROOT/%_mandir/zh_CN -touch -r $RPM_BUILD_ROOT/%{python_sitelib}/zenmapCore/Paths.py $RPM_BUILD_ROOT/%{python_sitelib}/zenmapCore/Paths.pyc +touch -r %{buildroot}/%{python_sitelib}/zenmapCore/Paths.py %{buildroot}/%{python_sitelib}/zenmapCore/Paths.pyc +dos2unix %{buildroot}%{_datadir}/%{name}/nselib/data/oracle-sids + +%fdupes -s %{buildroot} %clean -%__rm -rf "$RPM_BUILD_ROOT" +%__rm -rf "%{buildroot}" %files %defattr(-,root,root) %doc COPYING* CHANGELOG HACKING %doc docs/README %doc docs/nmap.usage.txt -%doc %_mandir/man1/nmap.1* -%doc %_mandir/*/man1/nmap.1* +%dir %{_mandir}/hr +%dir %{_mandir}/hr/man1 +%dir %{_mandir}/hu +%dir %{_mandir}/hu/man1 +%dir %{_mandir}/pl +%dir %{_mandir}/pl/man1 +%dir %{_mandir}/pt +%dir %{_mandir}/pt/man1 +%dir %{_mandir}/ro +%dir %{_mandir}/ro/man1 +%dir %{_mandir}/ru +%dir %{_mandir}/ru/man1 +%dir %{_mandir}/sk +%dir %{_mandir}/sk/man1 +%dir %{_mandir}/zh_CN +%dir %{_mandir}/zh_CN/man1 +%{_mandir}/man1/nmap.1.gz +%{_mandir}/*/man1/* %{_bindir}/nmap %{_datadir}/nmap @@ -167,18 +211,18 @@ %{_datadir}/applications/zenmap.desktop %{_datadir}/pixmaps/zenmap.png %{_datadir}/zenmap -%doc %_mandir/man1/zenmap.1* +%{_mandir}/man1/zenmap.1.gz %files -n ncat %defattr(-,root,root) %{_bindir}/ncat -%doc %{_mandir}/man1/ncat.1* +%{_mandir}/man1/ncat.1.gz %dir %{_datadir}/ncat %config(noreplace) %{_datadir}/ncat/ca-bundle.crt %files -n ndiff %defattr(-,root,root) %{_bindir}/ndiff -%doc %{_mandir}/man1/ndiff.1* +%{_mandir}/man1/ndiff.1.gz %changelog ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de