!30 [sync] PR-27: remove pcre dependency

From: @openeuler-sync-bot 
Reviewed-by: @gebidelidaye 
Signed-off-by: @gebidelidaye
This commit is contained in:
openeuler-ci-bot 2023-05-30 01:07:19 +00:00 committed by Gitee
commit e05101b55b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,14 +3,14 @@
Name: nmap
Epoch: 2
Version: 7.92
Release: 3
Release: 4
License: Nmap
Summary: A tool for network discovery and security auditing.
Requires: %{name}-ncat = %{epoch}:%{version}-%{release}
URL: https://nmap.org/
Source0: https://nmap.org/dist/%{name}-%{version}.tar.bz2
BuildRequires: automake autoconf gcc-c++ gettext-devel libpcap-devel libssh2-devel
BuildRequires: libtool lua-devel openssl-devel pcre-devel
BuildRequires: libtool lua-devel openssl-devel
Obsoletes: nmap-frontend nmap-ndiff nmap-ncat nc < 1.109.20120711-2
Obsoletes: nc6 < 1.00-22
@ -31,7 +31,7 @@ auditing. It was designed to rapidly scan large networks, but works fine against
%prep
%autosetup -n %{name}-%{version} -p1
rm -rf libpcap libpcre macosx mswin32 libssh2 libz
rm -rf libpcap macosx mswin32 libssh2 libz
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
@ -66,6 +66,12 @@ ln -s ncat %{buildroot}%{_bindir}/nc
%{_mandir}/man1/*.1.gz
%changelog
* Mon May 29 2023 xingwei <xingwei14@h-partners.com> - 2:7.92-4
- Type:bugfix
- CVE:
- SUG:NA
- DESC:decouple from PCRE because it has been End-of-life, use local libpcre to build instead
* Fri Jun 17 2022 gaihuiying <eaglegai@163.com> - 2:7.92-3
- Type:bugfix
- CVE: