File cpp-dependencies.spec of Package cpp-dependencies
# spec file for package cpp-dependencies
#
# Copyright (c) 2019 Fabio Pesari
# Copyright (c) 2019 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: cpp-dependencies
Version: 1.1+git114.g515f82b
Release: 0
Summary: Check C++ include dependencies
License: BSD-3-Clause
Group: Development/Languages/C and C++
URL: https://github.com/tomtom-international/cpp-dependencies
Source0: %{name}.tar.gz
BuildRequires: cmake
%if 0%{?suse_version} > 1315
BuildRequires: libboost_headers-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_system-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: gcc gcc-c++
%description
The tool cpp-dependencies creates include dependency information for C++ source code
files, which it derives from scanning a full source tree.
The dependency information is output as .dot files, which can be visualized in,
for example, GraphViz.
%prep
%setup -q -n %{name}
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%{_bindir}/cpp-dependencies
%license LICENSE
%doc README.md
%changelog