2024-01-06 07:01:45 +01:00
Name : mcpp
Version : 2.7.2
2024-01-06 07:01:46 +01:00
Release : 3mamba
2024-01-06 07:01:45 +01:00
Summary : Alternative C/C++ preprocessor
Group : Development/Languages
Vendor : openmamba
Distribution : openmamba
2024-01-06 07:01:46 +01:00
Packager : Silvan Calarco <silvan.calarco@mambasoft.it>
2024-01-06 07:01:45 +01:00
URL : http://mcpp.sourceforge.net/
Source : http://downloads.sourceforge.net/project/mcpp/mcpp/V.%{version} /mcpp-%{version} .tar.gz
Patch0 : mcpp-manual.html.patch
2024-01-06 07:01:46 +01:00
Patch2 : mcpp-2.7.2-fs28284.patch
Patch3 : mcpp-2.7.2-namlen.patch
2024-01-06 07:01:45 +01:00
License : BSD
## AUTOBUILDREQ-BEGIN
BuildRequires : glibc-devel
## AUTOBUILDREQ-END
Requires : libmcpp = %{?epoch:%epoch:}%{version} -%{release}
%description
2024-01-06 07:01:46 +01:00
C/C++ preprocessor defines and expands macros and processes '#if' , '#include' and some other directives.
2024-01-06 07:01:45 +01:00
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.
2024-01-06 07:01:46 +01:00
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.
2024-01-06 07:01:45 +01:00
%package -n libmcpp
Group : System/Libraries
Summary : Libraries for MCPP
%description -n libmcpp
MCPP is an alternative C/C++ preprocessor with the highest conformance.
This package provides a library build of mcpp.
%package -n libmcpp-devel
Group : Development/Libraries
Summary : Libraries and headers for MCPP
Requires : libmcpp = %{?epoch:%epoch:}%{version} -%{release}
%description -n libmcpp-devel
MCPP is an alternative C/C++ preprocessor with the highest conformance.
2024-01-06 07:01:46 +01:00
This package contains libraries and header files needed for development.
2024-01-06 07:01:45 +01:00
%package doc
Summary : Documentation for MCPP
Group : Documentation
%description doc
MCPP is an alternative C/C++ preprocessor with the highest conformance.
The %{name} -doc package contains the documentation for MCPP.
2024-01-06 07:01:46 +01:00
%debug_packages
2024-01-06 07:01:45 +01:00
2024-01-06 07:01:46 +01:00
%prep
2024-01-06 07:01:45 +01:00
%setup -q -n mcpp-%{version}
%patch0 -p0 -b -z.euc-jp
2024-01-06 07:01:46 +01:00
%patch2 -p1 -b .fs28284
%patch3 -p1 -b .namlen
sed -i " s , | a r m - \ * | , | a a r c h 6 4 - \ * | a r m - \ * | , " config/config.sub
2024-01-06 07:01:45 +01:00
%build
%configure \
--enable-mcpplib \
--disable-static
2024-01-06 07:01:46 +01:00
2024-01-06 07:01:45 +01:00
make CFLAGS=" %{optflags} "
%install
iconv -f euc-jp -t utf-8 doc-jp/mcpp-manual.html > doc-jp/mcpp-manual-jp.html
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
make DESTDIR=%{buildroot} install
rm -rf %{buildroot} %{_docdir} /%{name}
rm -rf %{buildroot} %{_libdir} /libmcpp.*a
install -m 644 mcpp-gcc.1 %{buildroot} %{_mandir} /man1/
%clean
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
2024-01-06 07:01:46 +01:00
%post -n libmcpp -p /sbin/ldconfig
%postun -n libmcpp -p /sbin/ldconfig
2024-01-06 07:01:45 +01:00
%files
%defattr (-,root,root)
%{_bindir} /mcpp
2024-01-06 07:01:46 +01:00
%{_mandir} /man1/mcpp.1*
%{_mandir} /man1/mcpp-gcc.1*
2024-01-06 07:01:45 +01:00
%files -n libmcpp
%defattr (-,root,root)
2024-01-06 07:01:46 +01:00
%{_libdir} /libmcpp.so.*
%doc LICENSE
2024-01-06 07:01:45 +01:00
%files -n libmcpp-devel
%defattr (-,root,root)
%{_includedir} /mcpp_lib.h
%{_includedir} /mcpp_out.h
%{_libdir} /libmcpp.so
%files doc
%defattr (-,root,root)
%lang(ja) %doc doc-jp/mcpp-manual-jp.html
%lang(en) %doc doc/mcpp-manual.html
%changelog
2024-01-06 07:01:46 +01:00
* Fri Dec 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.2-3mamba
- rebuilt with patches from Arch Linux
2024-01-06 07:01:45 +01:00
* Mon Jan 17 2011 gil <puntogil@libero.it> 2.7.2-2mamba
- rebuilt devel
* Mon Jan 05 2009 gil <puntogil@libero.it> 2.7.2-1mamba
- package created by autospec