2009-01-06 11:08:34 +00:00
|
|
|
#
|
2011-10-14 12:27:59 +00:00
|
|
|
# spec file for package cflow
|
2009-01-06 11:08:34 +00:00
|
|
|
#
|
2022-01-05 10:59:42 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-01-06 11:08:34 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-25 07:59:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-01-06 11:08:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cflow
|
2022-01-05 10:59:42 +00:00
|
|
|
Version: 1.7
|
2016-05-18 17:43:27 +00:00
|
|
|
Release: 0
|
2009-01-06 11:08:34 +00:00
|
|
|
Summary: Tool to generate flowcharts for C sources
|
2019-06-19 09:26:32 +00:00
|
|
|
License: GPL-3.0-or-later
|
2011-04-11 11:25:27 +00:00
|
|
|
Group: Development/Tools/Other
|
2022-01-05 10:59:42 +00:00
|
|
|
URL: https://www.gnu.org/software/cflow
|
|
|
|
Source0: https://ftp.gnu.org/gnu/cflow/cflow-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/cflow/cflow-%{version}.tar.xz.sig
|
2016-05-18 17:43:27 +00:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
BuildRequires: flex
|
|
|
|
Requires(post): %{install_info_prereq}
|
2022-01-05 10:59:42 +00:00
|
|
|
Requires(preun):%{install_info_prereq}
|
2009-01-06 11:08:34 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNU cflow analyzes a collection of C source files and prints a graph, charting
|
|
|
|
control flow within the program. GNU cflow is able to produce both direct and
|
|
|
|
inverted flowgraphs for C sources. Optionally a cross-reference listing can be
|
|
|
|
generated. Two output formats are implemented: POSIX and GNU (extended). Input
|
|
|
|
files can optionally be preprocessed before analyzing.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-10-14 12:27:59 +00:00
|
|
|
%configure \
|
2016-05-18 17:43:27 +00:00
|
|
|
--disable-silent-rules
|
2022-01-05 10:59:42 +00:00
|
|
|
%make_build
|
2009-01-06 11:08:34 +00:00
|
|
|
|
|
|
|
%check
|
2022-01-05 10:59:42 +00:00
|
|
|
%make_build check
|
2009-01-06 11:08:34 +00:00
|
|
|
|
|
|
|
%install
|
2011-04-11 11:25:27 +00:00
|
|
|
%make_install
|
2009-01-06 11:08:34 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%post
|
2016-05-18 17:43:27 +00:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2009-01-06 11:08:34 +00:00
|
|
|
|
2016-05-18 17:43:27 +00:00
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2009-01-06 11:08:34 +00:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2019-02-25 08:05:47 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README AUTHORS
|
2009-01-06 11:08:34 +00:00
|
|
|
%{_bindir}/%{name}
|
2019-02-25 08:05:47 +00:00
|
|
|
%{_infodir}/%{name}.info%{?ext_info}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2009-01-06 11:08:34 +00:00
|
|
|
|
|
|
|
%changelog
|