rpms/mcpp/F-8 mcpp.spec,1.7,1.8

Kiyoshi Matsui (kmatsui) fedora-extras-commits at redhat.com
Tue May 20 07:28:30 UTC 2008


Author: kmatsui

Update of /cvs/extras/rpms/mcpp/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6692

Modified Files:
	mcpp.spec 
Log Message:
update to V.2.7.1


Index: mcpp.spec
===================================================================
RCS file: /cvs/extras/rpms/mcpp/F-8/mcpp.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mcpp.spec	24 Mar 2008 14:52:36 -0000	1.7
+++ mcpp.spec	20 May 2008 07:27:46 -0000	1.8
@@ -1,9 +1,9 @@
-# spec file for mcpp / stand-alone-and-compiler-independent-build on fedora
+# spec file for mcpp / compiler-independent-library-build on fedora
 
 Summary:    Alternative C/C++ preprocessor
 Name:       mcpp
-Version:    2.7
-Release:    2%{?dist}
+Version:    2.7.1
+Release:    1%{?dist}
 License:    BSD
 Group:      Development/Languages
 Source:     http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -12,46 +12,93 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root
 
 %description
-C/C++ preprocessor expands macros and processes '#if', '#include' and
-some other directives.
+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,
-implementated by Kiyoshi Matsui.  It supports multiple standards: K&R,
-ISO C90, ISO C99, and ISO C++98.  MCPP is especially useful for
-debugging the source program which use complicated macros and also
-useful for checking portability of the source.
+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 subroutine called from some other main program,
-this package installs only a stand-alone program named 'mcpp' which
-behaves independent from GCC.
+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
 %patch0 -p0 -b -z.euc-jp
 
 %build
-%configure
-make CFLAGS="%{optflags}" %{?_smp_mflags}
+%configure --enable-mcpplib --disable-static
+make CFLAGS="%{optflags}"
 
 %install
 iconv -f euc-jp -t utf-8 doc-jp/mcpp-manual.html > doc-jp/mcpp-manual-jp.html
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+rm -f $RPM_BUILD_ROOT%{_libdir}/libmcpp.la
 
 %files
 %defattr(-,root,root,-)
 %doc    ChangeLog ChangeLog.old LICENSE NEWS README
-%doc    doc/mcpp-manual.html
-%lang(ja) %doc  doc-jp/mcpp-manual-jp.html
 %{_datadir}/man/man1/%{name}.1.gz
 %{_bindir}/%{name}
 
+%package -n libmcpp
+
+Summary:    Alternative C/C++ preprocessor (library build)
+Group:      Development/Languages
+
+%description -n libmcpp
+This package provides a library build of mcpp.
+
+%files -n libmcpp
+%defattr(-,root,root,-)
+%{_libdir}/libmcpp.so.*
+
+%post -n libmcpp -p /sbin/ldconfig
+%postun -n libmcpp -p /sbin/ldconfig
+
+%package -n libmcpp-devel
+
+Summary:    Alternative C/C++ preprocessor (development package for library build)
+Group:      Development/Languages
+Requires:   libmcpp = %{version}
+
+%description -n libmcpp-devel
+Development package for libmcpp.
+
+%files -n libmcpp-devel
+%defattr(-,root,root,-)
+%{_libdir}/libmcpp.so
+%{_includedir}/mcpp_lib.h
+%{_includedir}/mcpp_out.h
+
+%package doc
+
+Summary:    Alternative C/C++ preprocessor (manual for library build)
+Group:      Documentation
+
+%description doc
+This package provides an html manual for mcpp.
+
+%files doc
+%defattr(-,root,root,-)
+%doc    doc/mcpp-manual.html
+%lang(ja) %doc  doc-jp/mcpp-manual-jp.html
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Tue May 20 2008 Kiyoshi Matsui <kmatsui at t3.rim.or.jp> 2.7.1-1
+- Upstream new release.
+- Change to library build.
+- Devide to 4 packages: mcpp, libmcpp, libmcpp-devel and mcpp-doc.
+- Thanks to Mary Ellen Foster for correcting this spec file.
+
 * Sun Mar 24 2008 Kiyoshi Matsui <kmatsui at t3.rim.or.jp> 2.7-2
 - Upstream new release.
 




More information about the fedora-extras-commits mailing list