forked from pool/cflow
f0103842b0
* Symbol aliases The `--symbol' option has been extended to allow for defining symbol aliases. Aliases are useful for declaring reserved words such as `__restrict' or `__inline'. For example, the option `--symbol __restrict:=restrict' instructs cflow to treat `__restrict' exactly as `restrict'. * New syntactic class: qualifiers Tokens in this class can legitimately appear in place of C qualifiers, such as `static' or `inline'. This class is useful for some compiler-depending keywords, such as `__extension__' in gcc. The usual declaration of this symbol is `--symbol __extension__:qualifier'. * Speed up recursive call detection. * Fix parsing of typedefs after `struct'. * Fix the output of branch marks in tree mode. * Fix processing of static inline functions (RH bug 650716). - drop cflow-fix-yyparse-return-type.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:tools/cflow?expand=0&rev=4
69 lines
1.9 KiB
RPMSpec
69 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package cflow
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products 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: cflow
|
|
Version: 1.4
|
|
Release: 1
|
|
License: GLP v3
|
|
Summary: Tool to generate flowcharts for C sources
|
|
Url: http://www.gnu.org/software/cflow
|
|
Group: Development/Tools/Other
|
|
Source: %{name}-%{version}.tar.bz2
|
|
PreReq: %install_info_prereq
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
|
%configure \
|
|
--disable-silent-rules
|
|
make
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
%make_install
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc %{_infodir}/*.info*
|
|
%doc NEWS README COPYING AUTHORS
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|