"Fossies" - the Fresh Open Source Software Archive

Member "nmap-7.91/zenmap-7.91-1.spec" (10 Oct 2020, 3084 Bytes) of package /linux/misc/nmap-7.91.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # By default, Zenmap will be built using whatever version of Python is
    2 # the default on your system. To change this, use something like
    3 #     --define "__python /usr/bin/python2.5"
    4 
    5 %define name zenmap
    6 %define version 7.91
    7 %define release 1
    8 %define _prefix /usr
    9 
   10 # Find where Python modules are installed. See
   11 # http://fedoraproject.org/wiki/Packaging/Python.
   12 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
   13 
   14 Summary: Multi-platform graphical Nmap frontend and results viewer
   15 Name: %{name}
   16 Version: %{version}
   17 Release: %{release}
   18 Epoch: 2
   19 License: https://nmap.org/man/man-legal.html
   20 Group: Applications/System
   21 Source0: https://nmap.org/dist/nmap-%{version}.tgz
   22 URL: https://nmap.org
   23 BuildArch: noarch
   24 
   25 # Disable automatic dependency calculation because we want to provide
   26 # packages for more than one version of Python. Without this, RPM will
   27 # grep through the installed files and automatically add things like
   28 #   Requires: python(abi) = 2.4
   29 # setup.py takes care of adjusting sys.path to point to wherever the
   30 # modules were installed so it's not dependent on any particular ABI.
   31 AutoReqProv: no
   32 Requires: python >= 2.4, nmap, pygtk2
   33 
   34 Prefix: %{_prefix}
   35 BuildRoot: %{_tmppath}/%{name}-root
   36 
   37 %description
   38 Zenmap is an Nmap frontend. It is meant to be useful for advanced users
   39 and to make Nmap easy to use by beginners. It was originally derived
   40 from Umit, an Nmap GUI created as part of the Google Summer of Code.
   41 
   42 %prep
   43 %setup -q -n nmap-%{version}
   44 
   45 %build
   46 # Cannot use configure macro because noarch-redhat-linux is not
   47 # recognized by the auto tools in the tarball.  Upgrading to the
   48 # latest GNU CVS config.sub/config.guess on 3/15/08 didn't fix it.  So
   49 # I'm using this approach, as is done by other projects, such as
   50 # http://mono.ximian.com/monobuild/snapshot/snapshot_packages/noarch/xsp/96614/xsp.spec
   51 # -Fyodor
   52 ./configure --prefix=%{_prefix} \
   53         --libexecdir=%{_prefix}/lib \
   54         --bindir=%{_prefix}/bin \
   55         --datadir=%{_prefix}/share \
   56         --libdir=%{_prefix}/lib \
   57         --mandir=%{_prefix}/share/man \
   58         --infodir=%{_prefix}/share/info \
   59         --sysconfdir=%{_sysconfdir} \
   60         --without-openssl \
   61         --with-zenmap PYTHON="%{__python}"
   62 make build-zenmap DESTDIR=$RPM_BUILD_ROOT
   63 
   64 %install
   65 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
   66 make install-zenmap DESTDIR=$RPM_BUILD_ROOT
   67 # Don't package the uninstaller with the RPM.
   68 rm -f $RPM_BUILD_ROOT%{_bindir}/uninstall_zenmap
   69 gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || :
   70 
   71 %clean
   72 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
   73 
   74 %files
   75 %defattr(-,root,root)
   76 %doc %{_mandir}/man1/zenmap.1.gz
   77 %{_bindir}/zenmap
   78 %{_bindir}/nmapfe
   79 %{_bindir}/xnmap
   80 # This gets the modules and the .egg-info file if it was installed.
   81 %{python_sitelib}/*
   82 %{_datadir}/zenmap
   83 %{_datadir}/applications/*.desktop
   84 
   85 %changelog
   86 
   87 * Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org)
   88 - Removed changelog entries as SVN is a more authoritative source. Execute:
   89 - svn log --username guest --password "" https://svn.nmap.org/nmap/zenmap.spec.in
   90