Merge ae41f796fe
into c099c27d63
This commit is contained in:
commit
413a655b8d
|
@ -1,15 +1,21 @@
|
||||||
Name: flawfinder
|
Name: flawfinder
|
||||||
Summary: Examines C/C++ source code for security flaws
|
Summary: Examines C/C++ source code for security flaws
|
||||||
Version: 2.0.18
|
Version: 2.0.19
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
|
||||||
|
License: GPLv2+
|
||||||
URL: http://dwheeler.com/flawfinder/
|
URL: http://dwheeler.com/flawfinder/
|
||||||
Source: http://dwheeler.com/flawfinder/%{name}-%{version}.tar.gz
|
Source: http://dwheeler.com/flawfinder/%{name}-%{version}.tar.gz
|
||||||
Requires: python
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: make
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
Provides: flawfinder = %{version}-%{release}
|
||||||
|
Requires: python
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Flawfinder scans through C/C++ source code,
|
Flawfinder scans through C/C++ source code,
|
||||||
identifying lines ("hits") with potential security flaws.
|
identifying lines ("hits") with potential security flaws.
|
||||||
|
@ -19,12 +25,10 @@ By default it reports hits sorted by severity, with the riskiest lines first.
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{__make} install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_usr}
|
||||||
install -m755 -D flawfinder ${RPM_BUILD_ROOT}%{_bindir}/flawfinder
|
|
||||||
install -m644 -D flawfinder.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/flawfinder.1
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
@ -36,6 +40,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 21 2021 Weilun Fong <wlf@zhishan-iot.tk>
|
||||||
|
- Improve install command
|
||||||
|
- Add <Provides> SPEC Directive
|
||||||
|
|
||||||
* Mon Aug 27 2007 Horst H. von Brand <vonbrand@inf.utfsm.cl> 1.27-2
|
* Mon Aug 27 2007 Horst H. von Brand <vonbrand@inf.utfsm.cl> 1.27-2
|
||||||
- Fix specfile as per Fedora guidelines
|
- Fix specfile as per Fedora guidelines
|
||||||
|
|
||||||
|
@ -43,5 +51,3 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
- changed build architecture to noarch
|
- changed build architecture to noarch
|
||||||
- replaced hardcoded directories by rpm macros
|
- replaced hardcoded directories by rpm macros
|
||||||
- removed several rpmlint warnings/errors
|
- removed several rpmlint warnings/errors
|
||||||
|
|
||||||
# vim:set ai ts=4 sw=4:
|
|
||||||
|
|
6
makefile
6
makefile
|
@ -6,7 +6,7 @@
|
||||||
# how to change version numbers.
|
# how to change version numbers.
|
||||||
|
|
||||||
NAME=flawfinder
|
NAME=flawfinder
|
||||||
VERSION=2.0.18
|
VERSION=2.0.19
|
||||||
RPM_VERSION=1
|
RPM_VERSION=1
|
||||||
VERSIONEDNAME=$(NAME)-$(VERSION)
|
VERSIONEDNAME=$(NAME)-$(VERSION)
|
||||||
ARCH=noarch
|
ARCH=noarch
|
||||||
|
@ -19,7 +19,7 @@ SAMPLE_DIR=/usr/src/linux-2.2.16
|
||||||
# not notice any changes. We define exec_prefix oddly so we can
|
# not notice any changes. We define exec_prefix oddly so we can
|
||||||
# quietly merge these 2 systems:
|
# quietly merge these 2 systems:
|
||||||
|
|
||||||
prefix=/usr/local
|
prefix?=/usr/local
|
||||||
INSTALL_DIR=$(prefix)
|
INSTALL_DIR=$(prefix)
|
||||||
exec_prefix=$(INSTALL_DIR)
|
exec_prefix=$(INSTALL_DIR)
|
||||||
bindir=$(exec_prefix)/bin
|
bindir=$(exec_prefix)/bin
|
||||||
|
@ -44,7 +44,7 @@ PYTHONEXT=
|
||||||
|
|
||||||
RPMBUILD=rpmbuild
|
RPMBUILD=rpmbuild
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR?=
|
||||||
|
|
||||||
TESTDIR=test/
|
TESTDIR=test/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue