diff --git a/mcpp-2.6.4.tar.bz2 b/mcpp-2.6.4.tar.bz2 deleted file mode 100644 index 78e4425..0000000 --- a/mcpp-2.6.4.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c415da37520a36a2cbeb1702b47c15136f1f687f551671072350133658479aba -size 958920 diff --git a/mcpp-2.7.2.diff b/mcpp-2.7.2.diff new file mode 100644 index 0000000..55e6dc8 --- /dev/null +++ b/mcpp-2.7.2.diff @@ -0,0 +1,12 @@ +diff -ru mcpp-2.7.2.orig//src/system.c mcpp-2.7.2/src/system.c +--- mcpp-2.7.2.orig//src/system.c 2008-11-26 10:53:51.000000000 +0100 ++++ mcpp-2.7.2/src/system.c 2009-02-06 10:12:29.000000000 +0100 +@@ -43,6 +43,8 @@ + #include "internal.H" + #endif + ++#include ++ + #if HOST_SYS_FAMILY == SYS_UNIX + #include "unistd.h" /* For getcwd(), readlink() */ + #elif HOST_COMPILER == MSC || HOST_COMPILER == LCC diff --git a/mcpp-2.7.2.tar.bz2 b/mcpp-2.7.2.tar.bz2 new file mode 100644 index 0000000..1dd921d --- /dev/null +++ b/mcpp-2.7.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d2e19edfbd8f41ecc710f062c18cafe5a764041c993f4741ef1b7e53241e128 +size 1217648 diff --git a/mcpp.changes b/mcpp.changes index 6496d5f..c3a3ae0 100644 --- a/mcpp.changes +++ b/mcpp.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Thu Mar 12 14:33:23 CET 2009 - dmueller@suse.de + +- update to 2.7.2: + * Enabled some CPU-specific predefined macros in compiler- + independent-build as well as compiler-specific-build, because + there are some occasions which require those macros when we use + some compiler system's header files. Created init_cpu_macro(). + (configure.ac, noconfig.H, configed.H, main.c, system.c) + * Enabled -m32 and -m64 options even on 32-bits systems and on + compiler-independent-build, when the OS is UNIX-like one. These + options change some predefined macros. (system.c) + * Made -z option to output #include lines themselves. (system.c) + * Fixed a bug of source line numbering in library-build. (by + Dwayne Boone) (main.c) + * V.2.7.1 + * Fixed a bug of newline synchronization on -K option. Created + sync_linenum(). (Thanks to Benjamin Smedberg) (directive.c) + * Made GCC-specific-build on x86_64 and ppc64 have two sets of + predefines for 32bit mode and 64bit mode, and implemented -m32 + and -m64 options. (Thanks to Benjamin Smedberg) (configure.ac, + set_mcpp.sh, system.c) + * Stopped to use freopen() so that a main program which links + libmcpp can use stdin, stdout and stderr. (by Benoit Foucher) + (main.c) + * Fixed a bug of file-handle leak on -MD and -MF options. + (Thanks to Masashi Fujita) (system.c) + * Added ports to Vicual C++ 6.0 and Borland C++ 5.9 (aka C++ + Builder 2007). (by Dwayne Boone) (vc6.dif, bc59.dif, eval.c) + * Revised declaration of stpcpy(). (internal.H) + * Created macro notification mode, implemented -K option and '# + pragma MCPP debug macro_call' sub-directive to enable this mode + on STD mode. Created get_src_location(), print_macro_inf(), + print_macro_arg(), close_macro_inf(), chk_magic_balance(), + remove_magics(), some MAC_* macros to define magic characters, + struct LINE_COL, MACRO_INF. Revised many functions. + ------------------------------------------------------------------- Mon Jun 18 15:32:56 CEST 2007 - dmueller@suse.de diff --git a/mcpp.spec b/mcpp.spec index 698f8d4..c1ad312 100644 --- a/mcpp.spec +++ b/mcpp.spec @@ -1,23 +1,32 @@ # -# spec file for package mcpp (Version 2.6.4) +# spec file for package mcpp (Version 2.7.2) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild + Name: mcpp -URL: http://mcpp.sourceforge.net/ -License: BSD License and BSD-like +Url: http://mcpp.sourceforge.net/ +License: BSD 3-Clause Group: Development/Languages/C and C++ Summary: Matsui's C Preprocessor -Version: 2.6.4 +Version: 2.7.2 Release: 1 Source0: %{name}-%{version}.tar.bz2 +Patch0: %{name}-%{version}.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -32,8 +41,10 @@ Authors: %prep %setup -q +%patch0 -p1 %build +export CFLAGS="$RPM_OPT_FLAGS -D_BSD_SOURCE" %configure make %{?jobs:-j %jobs} @@ -51,5 +62,39 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/mcpp.1.gz %changelog -* Mon Jun 18 2007 - dmueller@suse.de +* Thu Mar 12 2009 dmueller@suse.de +- update to 2.7.2: + * Enabled some CPU-specific predefined macros in compiler- + independent-build as well as compiler-specific-build, because + there are some occasions which require those macros when we use + some compiler system's header files. Created init_cpu_macro(). + (configure.ac, noconfig.H, configed.H, main.c, system.c) + * Enabled -m32 and -m64 options even on 32-bits systems and on + compiler-independent-build, when the OS is UNIX-like one. These + options change some predefined macros. (system.c) + * Made -z option to output #include lines themselves. (system.c) + * Fixed a bug of source line numbering in library-build. (by + Dwayne Boone) (main.c) + * V.2.7.1 + * Fixed a bug of newline synchronization on -K option. Created + sync_linenum(). (Thanks to Benjamin Smedberg) (directive.c) + * Made GCC-specific-build on x86_64 and ppc64 have two sets of + predefines for 32bit mode and 64bit mode, and implemented -m32 + and -m64 options. (Thanks to Benjamin Smedberg) (configure.ac, + set_mcpp.sh, system.c) + * Stopped to use freopen() so that a main program which links + libmcpp can use stdin, stdout and stderr. (by Benoit Foucher) + (main.c) + * Fixed a bug of file-handle leak on -MD and -MF options. + (Thanks to Masashi Fujita) (system.c) + * Added ports to Vicual C++ 6.0 and Borland C++ 5.9 (aka C++ + Builder 2007). (by Dwayne Boone) (vc6.dif, bc59.dif, eval.c) + * Revised declaration of stpcpy(). (internal.H) + * Created macro notification mode, implemented -K option and '# + pragma MCPP debug macro_call' sub-directive to enable this mode + on STD mode. Created get_src_location(), print_macro_inf(), + print_macro_arg(), close_macro_inf(), chk_magic_balance(), + remove_magics(), some MAC_* macros to define magic characters, + struct LINE_COL, MACRO_INF. Revised many functions. +* Mon Jun 18 2007 dmueller@suse.de - Initial package (2.6.4)