File mcpp.spec of Package mcpp
Name: mcpp
# List of additional build dependencies
#BuildRequires: gcc-c++ libxml2-devel
Version: 2.7.1
Release: 1
License: BSD
Source: mcpp-2.7.1.tar.gz
Group: Development/Languages/C and C++
Summary: Alternative C/C++ preprocessor
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
C/C++ preprocessor defines and expands macros and processes '#if',
'#include' and some other directives.
MCPP is an alternative C/C++ preprocessor with the highest
conformance.
It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98.
MCPP is especially useful for debugging a source program which uses
complicated macros and also useful for checking portability of a
source.
Though mcpp could be built as a replacement of GCC's resident
proprocessor or as a stand-alone program without using library build
of
mcpp, this package installs only a program named 'mcpp' which links
shared library of mcpp and behaves independent from GCC.
%prep
%setup
%build
%configure --enable-mcpplib
make %{?jobs:-j %jobs} CFLAGS="%{optflags}"
%install
make DESTDIR=%buildroot install
mkdir -p %buildroot/usr/share/doc/packages
mv %buildroot/usr/share/doc/mcpp %buildroot/usr/share/doc/packages/mcpp
%clean
rm -rf %buildroot
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_libdir}/libmcpp.*
%{_includedir}/mcpp_*.h
%{_docdir}/%{name}
%{_datadir}/man/man1/%{name}.1.gz
%post
/sbin/ldconfig
%postrun
/sbin/ldconfig
%changelog
* Mon Jun 23 2008 tburdick@adonis.pharm.uic.edu
- packaged mcpp version 2.7.1 using the buildservice spec file wizard