- specfile cleanup
- fixed Florian La Roche's patch
This commit is contained in:
parent
abf957b5b6
commit
3408a88bd8
@ -14,7 +14,7 @@
|
|||||||
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(nmapdatadir) $(DESTDIR)$(deskdir)
|
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(nmapdatadir) $(DESTDIR)$(deskdir)
|
||||||
@echo "If the next command fails -- you cannot use the X front end"
|
@echo "If the next command fails -- you cannot use the X front end"
|
||||||
- -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 -s nmapfe/nmapfe $(DESTDIR)$(bindir)/nmapfe && rm -f $(DESTDIR)$(bindir)/xnmap && $(SHTOOL) mkln -f -s $(DESTDIR)$(bindir)/nmapfe $(DESTDIR)$(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(DESTDIR)$(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(DESTDIR)$(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(DESTDIR)$(mandir)/man1/xnmap.1
|
- -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 -s nmapfe/nmapfe $(DESTDIR)$(bindir)/nmapfe && rm -f $(DESTDIR)$(bindir)/xnmap && $(SHTOOL) mkln -f -s $(DESTDIR)$(bindir)/nmapfe $(DESTDIR)$(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(DESTDIR)$(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(DESTDIR)$(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(DESTDIR)$(mandir)/man1/xnmap.1
|
||||||
+ -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 nmapfe/nmapfe $(DESTDIR)$(bindir)/nmapfe && rm -f $(DESTDIR)$(bindir)/xnmap && $(SHTOOL) mkln -f $(DESTDIR)$(bindir)/nmapfe $(DESTDIR)$(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(DESTDIR)$(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(DESTDIR)$(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(DESTDIR)$(mandir)/man1/xnmap.1
|
+ -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 nmapfe/nmapfe $(DESTDIR)$(bindir)/nmapfe && rm -f $(DESTDIR)$(bindir)/xnmap && $(SHTOOL) mkln -f -s $(DESTDIR)$(bindir)/nmapfe $(DESTDIR)$(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(DESTDIR)$(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(DESTDIR)$(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(DESTDIR)$(mandir)/man1/xnmap.1
|
||||||
|
|
||||||
install: install-nmap $(INSTALLNMAPFE)
|
install: install-nmap $(INSTALLNMAPFE)
|
||||||
|
|
||||||
|
24
nmap.spec
24
nmap.spec
@ -1,22 +1,20 @@
|
|||||||
Summary: Network exploration tool and security scanner
|
Summary: Network exploration tool and security scanner
|
||||||
Name: nmap
|
Name: nmap
|
||||||
Version: 4.20
|
Version: 4.20
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source0: http://download.insecure.org/nmap/dist/%{name}-%{version}.tar.bz2
|
Source0: http://download.insecure.org/nmap/dist/%{name}-%{version}.tar.bz2
|
||||||
Source1: nmapfe.desktop
|
Source1: nmapfe.desktop
|
||||||
Source2: nmapfe-32.png
|
Source2: nmapfe-32.png
|
||||||
Source3: nmapfe-48.png
|
Source3: nmapfe-48.png
|
||||||
Patch0: inet_aton.patch
|
|
||||||
Patch1: makefile.patch
|
|
||||||
Patch3: nmap-3.81-noms.patch
|
Patch3: nmap-3.81-noms.patch
|
||||||
Patch4: nmap-4.03-mktemp.patch
|
Patch4: nmap-4.03-mktemp.patch
|
||||||
Patch5: nmap-4.20-nostrip.patch
|
Patch5: nmap-4.20-nostrip.patch
|
||||||
URL: http://www.insecure.org/nmap/
|
URL: http://www.insecure.org/nmap/
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
BuildRequires: openssl-devel, gtk2-devel, pcre-devel, libpcap
|
BuildRequires: openssl-devel, gtk2-devel, pcre-devel, libpcap-devel
|
||||||
BuildRequires: /usr/bin/desktop-file-install
|
BuildRequires: /usr/bin/desktop-file-install
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -31,7 +29,7 @@ predictability characteristics, reverse-identd scanning, and more.
|
|||||||
Summary: Gtk+ frontend for nmap
|
Summary: Gtk+ frontend for nmap
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Requires: nmap = %{epoch}:%{version}, gtk2
|
Requires: nmap = %{epoch}:%{version}, gtk2
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel libpng-devel
|
||||||
%description frontend
|
%description frontend
|
||||||
This package includes nmapfe, a Gtk+ frontend for nmap. The nmap package must
|
This package includes nmapfe, a Gtk+ frontend for nmap. The nmap package must
|
||||||
be installed before installing nmap-frontend.
|
be installed before installing nmap-frontend.
|
||||||
@ -44,16 +42,16 @@ be installed before installing nmap-frontend.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-libpcap=/usr
|
%configure --with-libpcap=/usr
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%makeinstall nmapdatadir=$RPM_BUILD_ROOT%{_datadir}/nmap
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
#rm -f $RPM_BUILD_ROOT%{_datadir}/applications/nmapfe.desktop
|
#rm -f $RPM_BUILD_ROOT%{_datadir}/applications/nmapfe.desktop
|
||||||
|
|
||||||
desktop-file-install --vendor nmap \
|
desktop-file-install --vendor nmap \
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
||||||
--add-category X-Red-Hat-Base \
|
--add-category X-Red-Hat-Base \
|
||||||
%{SOURCE1};
|
%{SOURCE1};
|
||||||
@ -89,10 +87,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/xnmap.1.gz
|
%{_mandir}/man1/xnmap.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 30 2007 Florian La Roche <laroche@redhat.com>
|
* Tue Feb 27 2007 Harald Hoyer <harald@redhat.com> - 2:4.20-3%{?dist}
|
||||||
|
- specfile cleanup
|
||||||
|
- fixed Florian La Roche's patch
|
||||||
|
|
||||||
|
* Tue Jan 30 2007 Florian La Roche <laroche@redhat.com> - 2:4.20-2%{?dist}
|
||||||
- do not strip away debuginfo
|
- do not strip away debuginfo
|
||||||
|
|
||||||
* Tue Jan 09 2007 Florian La Roche <laroche@redhat.com>
|
* Tue Jan 09 2007 Florian La Roche <laroche@redhat.com> - 2:4.20-1
|
||||||
- version 4.20
|
- version 4.20
|
||||||
|
|
||||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2:4.11-1.1
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2:4.11-1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user