Change flawfinder.spec to comply with Fedora guidelines (fix bug#4)
- Thanks to Horst H. von Brand vonbrand,at,inf.utfsm.cl
This commit is contained in:
parent
400b58817c
commit
dca1931902
|
@ -1,44 +1,45 @@
|
||||||
Name: flawfinder
|
Name: flawfinder
|
||||||
Summary: Examines C/C++ source code for security flaws
|
Summary: Examines C/C++ source code for security flaws
|
||||||
Version: 1.28
|
Version: 1.28
|
||||||
Release: 1
|
Release: 1%{?dist}
|
||||||
License: GPL
|
License: GPLv2+
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://www.dwheeler.com/flawfinder/
|
URL: http://www.dwheeler.com/flawfinder/
|
||||||
Source: http://www.dwheeler.com/flawfinder/%{name}-%{version}.tar.gz
|
Source: http://www.dwheeler.com/flawfinder/%{name}-%{version}.tar.gz
|
||||||
Packager: David A. Wheeler <dwheeler@dwheeler.com>
|
|
||||||
Requires: python
|
Requires: python
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%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.
|
||||||
By default it reports hits sorted by severity, with the riskiest lines first.
|
By default it reports hits sorted by severity, with the riskiest lines first.
|
||||||
Flawfinder is released under the GNU Public License (GPL).
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
|
rm -rf $RPM_BUILD_ROOT
|
||||||
install -m755 -D flawfinder ${RPM_BUILD_ROOT}%{_bindir}/flawfinder
|
install -m755 -D flawfinder ${RPM_BUILD_ROOT}%{_bindir}/flawfinder
|
||||||
install -m644 -D flawfinder.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/flawfinder.1
|
install -m644 -D flawfinder.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/flawfinder.1
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc README ChangeLog COPYING flawfinder.ps
|
%doc README ChangeLog COPYING flawfinder.ps
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Feb 1 2003 Jose Pedro Oliveira <jpo@di.uminho.pt>
|
* Mon Aug 27 2007 Horst H. von Brand <vonbrand@inf.utfsm.cl> 1.27-2
|
||||||
|
- Fix specfile as per Fedora guidelines
|
||||||
|
|
||||||
|
* Sat Feb 1 2003 Jose Pedro Oliveira <jpo@di.uminho.pt>
|
||||||
- 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
|
||||||
|
|
Loading…
Reference in New Issue