File rats.spec of Package rats
#
# spec file for package rats
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: rats
Summary: Rough Auditing Tool for Security
License: GPL-3.0+
Group: Development/Tools
URL: https://github.com/andrew-d/rough-auditing-tool-for-security
Version: 2.4
Release: 0
# current also in git, but no release.
Source0: rats-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libexpat-devel
%description
RATS scans through code, finding potentially dangerous function calls.
The goal of this tool is not to definitively find bugs (yet). The
current goal is to provide a reasonable starting point for performing
manual security audits.
The initial vulnerability database is taken directly from things that
could be easily found when starting with the forthcoming book,
"Building Secure Software" by Viega and McGraw.
RATS is released under version 2 of the GNU Public License (GPL).
%prep
%setup -q
%build
%configure --datadir=/usr/share/rats
make clean
make
%install
mkdir -p %{buildroot}/{%{_datadir}/rats,%{_bindir},%{_mandir}/man1}
install -c rats %{buildroot}/%{_bindir}
install -c -m644 *.xml %{buildroot}/%{_datadir}/rats
install -c -m644 *.1 %{buildroot}/%{_mandir}/man1
%files
%defattr(644,root,root,755)
%dir %{_datadir}/rats
%doc README
%attr(755,root,root) %{_bindir}/*
%{_datadir}/rats/*
%{_mandir}/man1/*
%changelog