# spec file for mcpp / compiler-independent-library-build on Linux Summary: Alternative C/C++ preprocessor Name: mcpp Version: 2.7.2 Release: 1 License: BSD Group: Development/Languages Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz URL: http://mcpp.sourceforge.net/ Patch0: mcpp-manual.html.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: libc.so.6 >= 2.3 %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 -q %build %configure --enable-mcpplib make CFLAGS="%{optflags}" %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_libdir}/libmcpp.* %{_includedir}/mcpp_*.h %{_docdir}/%{name} %{_datadir}/man/man1/%{name}.1.gz %post /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %changelog * Sun Nov 30 2008 Kiyoshi Matsui 2.7.2-1 - New release. * Sun May 18 2008 Kiyoshi Matsui 2.7.1-1 - New release. - Change to library build. * Sun Mar 23 2008 Kiyoshi Matsui 2.7-1 - New release. - This is a simplified spec file made from mcpp.spec of Fedora. * Thu May 19 2007 Kiyoshi Matsui 2.6.4-1 - Upstream new release. * Fri Apr 27 2007 Kiyoshi Matsui 2.6.3-5 - Apply the new patch (patch1) for mcpp. * Wed Apr 25 2007 Kiyoshi Matsui 2.6.3-4 - Change installation of doc/mcpp-manual.html and doc-jp/mcpp-manual.html. * Tue Apr 24 2007 Kiyoshi Matsui 2.6.3-3 - Revise many points to adapt to the guideline of Fedora (thanks to the review by Mamoru Tasaka): use %%dist, %%configure, %%optflags, %%{_datadir}, %%lang(ja), convert encoding of mcpp-manual.html to utf-8, and others. * Sat Apr 21 2007 Kiyoshi Matsui 2.6.3-2 - Replace some variables with macros. - Rename this spec file. * Sat Apr 07 2007 Kiyoshi Matsui 2.6.3-1 - First release for V.2.6.3 on sourceforge.