|
|
a61d82a |
Summary: Analyzes C files charting control flow within the program
|
|
|
a61d82a |
Name: cflow
|
|
|
a9e2693 |
Version: 1.3
|
|
|
a9e2693 |
Release: 1%{?dist}
|
|
|
a61d82a |
License: GPLv2+
|
|
|
a61d82a |
Group: Development/Languages
|
|
|
a61d82a |
URL: http://www.gnu.org/software/cflow/
|
|
|
39f4cf7 |
Source0: http://ftp.gnu.org/gnu/cflow/%{name}-%{version}.tar.bz2
|
|
|
a61d82a |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
a61d82a |
# to install lisp files
|
|
|
a61d82a |
BuildRequires: emacs
|
|
|
a61d82a |
Requires(post): info
|
|
|
a61d82a |
Requires(preun): info
|
|
|
a61d82a |
|
|
|
a61d82a |
%description
|
|
|
a61d82a |
GNU cflow analyzes a collection of C source files and prints a graph,
|
|
|
a61d82a |
charting control flow within the program.
|
|
|
a61d82a |
|
|
|
a61d82a |
GNU cflow is able to produce both direct and inverted flowgraphs for C
|
|
|
a61d82a |
sources. Optionally a cross-reference listing can be generated. Two
|
|
|
a61d82a |
output formats are implemented: POSIX and GNU (extended).
|
|
|
a61d82a |
|
|
|
a61d82a |
%prep
|
|
|
a61d82a |
%setup -q
|
|
|
a61d82a |
|
|
|
a61d82a |
%build
|
|
|
a61d82a |
export CFLAGS="%{optflags}"
|
|
|
a61d82a |
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
|
|
a61d82a |
%{__make} %{?_smp_flags}
|
|
|
a61d82a |
|
|
|
a61d82a |
%install
|
|
|
a61d82a |
%{__rm} -rf %{buildroot}
|
|
|
a61d82a |
%{__make} DESTDIR=%{buildroot} INSTALL='%{__install} -p' install
|
|
|
a61d82a |
%find_lang %{name}
|
|
|
a61d82a |
%{__rm} -f %{buildroot}/%{_infodir}/dir
|
|
|
a61d82a |
|
|
|
a61d82a |
%clean
|
|
|
a61d82a |
%{__rm} -rf %{buildroot}
|
|
|
a61d82a |
|
|
|
a61d82a |
%check
|
|
|
a61d82a |
%{__make} check
|
|
|
a61d82a |
|
|
|
a61d82a |
%post
|
|
|
a61d82a |
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
|
|
|
a61d82a |
|
|
|
a61d82a |
%preun
|
|
|
a61d82a |
if [ $1 = 0 ] ; then
|
|
|
a61d82a |
/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
|
|
|
a61d82a |
fi
|
|
|
a61d82a |
|
|
|
a61d82a |
%files -f %{name}.lang
|
|
|
a61d82a |
%defattr(-, root, root, -)
|
|
|
a61d82a |
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
|
|
a61d82a |
%{_bindir}/%{name}
|
|
|
a61d82a |
%{_infodir}/%{name}.info.gz
|
|
|
a61d82a |
%{_datadir}/emacs/site-lisp/%{name}-mode.el
|
|
|
a61d82a |
|
|
|
a61d82a |
%changelog
|
|
|
a9e2693 |
* Sat Dec 05 2009 Terje Rosten <terje.rosten@ntnu.no> - 1.3-1
|
|
|
a9e2693 |
- 1.3
|
|
|
a9e2693 |
|
|
|
39f4cf7 |
* Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.2-5
|
|
|
39f4cf7 |
- Use bzipped upstream tarball.
|
|
|
39f4cf7 |
|
|
|
9f0a5b7 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
|
9f0a5b7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
9f0a5b7 |
|
|
|
0087bc1 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
|
0087bc1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
0087bc1 |
|
|
|
a61d82a |
* Fri May 16 2008 Terje Rosten <terje.rosten@ntnu.no> - 1.2-2
|
|
|
a61d82a |
- add emacs to buildreq
|
|
|
a61d82a |
|
|
|
a61d82a |
* Wed May 14 2008 Terje Rosten <terje.rosten@ntnu.no> - 1.2-1
|
|
|
a61d82a |
- initial build
|
|
|
a61d82a |
|