|
|
086f3f |
# spec file for mcpp / compiler-independent-library-build on fedora
|
|
|
086f3f |
|
|
|
086f3f |
Summary: Alternative C/C++ preprocessor
|
|
|
086f3f |
Name: mcpp
|
|
|
086f3f |
Version: 2.7.2
|
|
|
086f3f |
Release: 20%{?dist}
|
|
|
086f3f |
License: BSD
|
|
|
086f3f |
Group: Development/Languages
|
|
|
086f3f |
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
086f3f |
URL: http://mcpp.sourceforge.net/
|
|
|
086f3f |
|
|
|
086f3f |
Patch0: mcpp-manual.html.patch
|
|
|
086f3f |
|
|
|
086f3f |
# Extracted from http://www.zeroc.com/download/Ice/3.4/ThirdParty-Sources-3.4.2.tar.gz
|
|
|
086f3f |
Patch1: patch.mcpp.2.7.2
|
|
|
086f3f |
|
|
|
086f3f |
# https://bugzilla.redhat.com/show_bug.cgi?id=948860
|
|
|
086f3f |
Patch2: mcpp-man.patch
|
|
|
086f3f |
|
|
|
086f3f |
|
|
|
086f3f |
%description
|
|
|
086f3f |
C/C++ preprocessor defines and expands macros and processes '#if',
|
|
|
086f3f |
'#include' and some other directives.
|
|
|
086f3f |
|
|
|
086f3f |
MCPP is an alternative C/C++ preprocessor with the highest conformance.
|
|
|
086f3f |
It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98.
|
|
|
086f3f |
MCPP is especially useful for debugging a source program which uses
|
|
|
086f3f |
complicated macros and also useful for checking portability of a source.
|
|
|
086f3f |
|
|
|
086f3f |
Though mcpp could be built as a replacement of GCC's resident
|
|
|
086f3f |
preprocessor or as a stand-alone program without using library build of
|
|
|
086f3f |
mcpp, this package installs only a program named 'mcpp' which links
|
|
|
086f3f |
shared library of mcpp and behaves independent from GCC.
|
|
|
086f3f |
|
|
|
086f3f |
%prep
|
|
|
086f3f |
%setup -q
|
|
|
086f3f |
%patch0 -p0 -b -z.euc-jp
|
|
|
086f3f |
%patch1 -p1
|
|
|
086f3f |
%patch2 -p1
|
|
|
086f3f |
|
|
|
086f3f |
%build
|
|
|
086f3f |
%configure --enable-mcpplib --disable-static
|
|
|
086f3f |
make CFLAGS="%{optflags}"
|
|
|
086f3f |
mv mcpp-gcc.1 mcpp.1
|
|
|
086f3f |
|
|
|
086f3f |
%install
|
|
|
086f3f |
iconv -f euc-jp -t utf-8 doc-jp/mcpp-manual.html > doc-jp/mcpp-manual-jp.html
|
|
|
086f3f |
rm -rf $RPM_BUILD_ROOT
|
|
|
086f3f |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
086f3f |
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
086f3f |
rm -f $RPM_BUILD_ROOT%{_libdir}/libmcpp.la
|
|
|
086f3f |
|
|
|
086f3f |
%files
|
|
|
086f3f |
%defattr(-,root,root,-)
|
|
|
086f3f |
%doc ChangeLog ChangeLog.old NEWS README
|
|
|
086f3f |
%{_datadir}/man/man1/%{name}.1.gz
|
|
|
086f3f |
%{_bindir}/%{name}
|
|
|
086f3f |
|
|
|
086f3f |
%package -n libmcpp
|
|
|
086f3f |
|
|
|
086f3f |
Summary: Alternative C/C++ preprocessor (library build)
|
|
|
086f3f |
Group: Development/Languages
|
|
|
086f3f |
|
|
|
086f3f |
%description -n libmcpp
|
|
|
086f3f |
This package provides a library build of mcpp.
|
|
|
086f3f |
|
|
|
086f3f |
%files -n libmcpp
|
|
|
086f3f |
%defattr(-,root,root,-)
|
|
|
086f3f |
%doc LICENSE
|
|
|
086f3f |
%{_libdir}/libmcpp.so.*
|
|
|
086f3f |
|
|
|
086f3f |
%post -n libmcpp -p /sbin/ldconfig
|
|
|
086f3f |
%postun -n libmcpp -p /sbin/ldconfig
|
|
|
086f3f |
|
|
|
086f3f |
%package -n libmcpp-devel
|
|
|
086f3f |
|
|
|
086f3f |
Summary: Alternative C/C++ preprocessor (development package for library build)
|
|
|
086f3f |
Group: Development/Languages
|
|
|
086f3f |
Requires: libmcpp = %{version}
|
|
|
086f3f |
|
|
|
086f3f |
%description -n libmcpp-devel
|
|
|
086f3f |
Development package for libmcpp.
|
|
|
086f3f |
|
|
|
086f3f |
%files -n libmcpp-devel
|
|
|
086f3f |
%defattr(-,root,root,-)
|
|
|
086f3f |
%{_libdir}/libmcpp.so
|
|
|
086f3f |
%{_includedir}/mcpp_lib.h
|
|
|
086f3f |
%{_includedir}/mcpp_out.h
|
|
|
086f3f |
|
|
|
086f3f |
%package doc
|
|
|
086f3f |
|
|
|
086f3f |
Summary: Alternative C/C++ preprocessor (manual for library build)
|
|
|
086f3f |
Group: Documentation
|
|
|
086f3f |
|
|
|
086f3f |
%description doc
|
|
|
086f3f |
This package provides an html manual for mcpp.
|
|
|
086f3f |
|
|
|
086f3f |
%files doc
|
|
|
086f3f |
%defattr(-,root,root,-)
|
|
|
086f3f |
%doc LICENSE doc/mcpp-manual.html
|
|
|
086f3f |
%lang(ja) %doc doc-jp/mcpp-manual-jp.html
|
|
|
086f3f |
|
|
|
086f3f |
%changelog
|
|
|
086f3f |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-20
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-19
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-18
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-17
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-16
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-15
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.7.2-14
|
|
|
086f3f |
- Rebuilt for Fedora 23 Change
|
|
|
086f3f |
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
|
|
086f3f |
|
|
|
086f3f |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-13
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-12
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-11
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Thu Jun 20 2013 Petr Machata <pmachata@redhat.com> - 2.7.2-10
|
|
|
086f3f |
- Update usage output and man pages to include some omited options.
|
|
|
086f3f |
(mcpp-man.patch)
|
|
|
086f3f |
|
|
|
086f3f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-9
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-8
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-7
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Fri Dec 16 2011 Mary Ellen Foster <mefoster at gmail.com> - 2.7.2-6
|
|
|
086f3f |
- Update upstream Ice patch to latest version
|
|
|
086f3f |
|
|
|
086f3f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-5
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Wed Jul 21 2010 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.7.2-4
|
|
|
086f3f |
- Make subpackages to include LICENSE.
|
|
|
086f3f |
|
|
|
086f3f |
* Tue Oct 13 2009 Mary Ellen Foster <mefoster at gmail.com>
|
|
|
086f3f |
- Incorporate patch from Ice upstream project
|
|
|
086f3f |
|
|
|
086f3f |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-3
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-2
|
|
|
086f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
086f3f |
|
|
|
086f3f |
* Mon Dec 01 2008 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.7.2-1
|
|
|
086f3f |
- Upstream new release.
|
|
|
086f3f |
|
|
|
086f3f |
* Tue May 20 2008 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.7.1-1
|
|
|
086f3f |
- Upstream new release.
|
|
|
086f3f |
- Change to library build.
|
|
|
086f3f |
- Devide to 4 packages: mcpp, libmcpp, libmcpp-devel and mcpp-doc.
|
|
|
086f3f |
- Thanks to Mary Ellen Foster for correcting this spec file.
|
|
|
086f3f |
|
|
|
086f3f |
* Sun Mar 24 2008 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.7-2
|
|
|
086f3f |
- Upstream new release.
|
|
|
086f3f |
|
|
|
086f3f |
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.6.4-2
|
|
|
086f3f |
- Rebuild for selinux ppc32 issue.
|
|
|
086f3f |
|
|
|
086f3f |
* Thu May 19 2007 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.6.4-1
|
|
|
086f3f |
- Upstream new release.
|
|
|
086f3f |
|
|
|
086f3f |
* Fri Apr 27 2007 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.6.3-5
|
|
|
086f3f |
- Apply the new patch (patch1) for mcpp.
|
|
|
086f3f |
|
|
|
086f3f |
* Wed Apr 25 2007 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.6.3-4
|
|
|
086f3f |
- Change installation of doc/mcpp-manual.html and doc-jp/mcpp-manual.html.
|
|
|
086f3f |
|
|
|
086f3f |
* Tue Apr 24 2007 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.6.3-3
|
|
|
086f3f |
- Revise many points to adapt to the guideline of Fedora (thanks to
|
|
|
086f3f |
the review by Mamoru Tasaka):
|
|
|
086f3f |
use %%dist, %%configure, %%optflags, %%{_datadir}, %%lang(ja),
|
|
|
086f3f |
convert encoding of mcpp-manual.html to utf-8,
|
|
|
086f3f |
and others.
|
|
|
086f3f |
|
|
|
086f3f |
* Sat Apr 21 2007 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.6.3-2
|
|
|
086f3f |
- Replace some variables with macros.
|
|
|
086f3f |
- Rename this spec file.
|
|
|
086f3f |
|
|
|
086f3f |
* Sat Apr 07 2007 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 2.6.3-1
|
|
|
086f3f |
- First release for V.2.6.3 on sourceforge.
|