File cflow.spec of Package cflow

#
# spec file for package cflow (Version 1.3)
#
# 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/
#

# norootforbuild


Name:           cflow
License:        GLP v3
Group:          Development/Tools/Other
AutoReqProv:    on
Url:            http://www.gnu.org/software/cflow
Version:        1.3
Release:        1
Summary:        Tool to generate flowcharts for C sources
Source:         %{name}-%{version}.tar.bz2
Patch1:         cflow-fix-yyparse-return-type.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

%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.

Authors:
--------
        Sergey Poznyakoff       <gray@gnu.org>

%prep
%setup -q
%patch1 -p1

%build
%configure
make

%check
make check

%install
%makeinstall
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%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
openSUSE Build Service is sponsored by