Summary: C program cross-referencing & documentation tool Name: cxref Version: 1.6e Release: 1 License: GPL Group: Development/C Source0: http://www.gedanken.demon.co.uk/download-cxref/%name-%version.tgz URL: http://www.gedanken.demon.co.uk/cxref/ Buildrequires: flex bison Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description A program that takes as input a series of C source files and produces a LaTeX or HTML document containing a cross reference of the files/functions/variables in the program, including documentation taken from suitably formatted source code comments. The documentation is stored in the C source file in specially formatted comments, making it simple to maintain. The cross referencing includes lists of functions called, callers of each function, usage of global variables, header file inclusion, macro definitions and type definitions. Works for ANSI C, including many gcc extensions. %prep %setup -q %build export CC=xlc_r ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make %{?_smp_mflags} # fake an empty file so that "make install" doesn't complain touch cpp/cxref-cpp.defines %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %{_bindir}/* %{_mandir}/man1/* %{_datadir}/%{name}/* /usr/bin/* %changelog * Thu Jan 23 2014 Michael Perzl - 1.6e-1 - updated to version 1.6e * Wed Oct 05 2011 Michael Perzl - 1.6d-1 - first version for AIX V5.1 and higher