Name: gccxml Version: 0.9.0 Release: 0.3.20100715%{?dist} Summary: XML output extension to GCC Group: Development/Languages License: BSD and GPLv2+ and GPLv2+ with exceptions and GPLv3+ with exceptions URL: http://www.gccxml.org/ # Source is created from a cvs checkout # Files for the Borland compiler are excluded for license reasons # cvs -d:pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co \ # -D '2010-07-15 23:59:59Z' -d gccxml-0.9.0-20100715 gccxml # tar -z -c --exclude CVS --exclude Borland \ # -f gccxml-0.9.0-20100715.tar.gz gccxml-0.9.0-20100715 Source0: %{name}-%{version}-20100715.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake %description There is one open-source C++ parser, the C++ front-end to GCC, which is currently able to deal with the language in its entirety. The purpose of the GCC-XML extension is to generate an XML description of a C++ program from GCC's internal representation. Since XML is easy to parse, other development tools will be able to work with C++ programs without the burden of a complicated C++ parser. %prep %setup -q -n %{name}-%{version}-20100715 %build %cmake -DGCCXML_DOC_DIR:STRING=share/doc/%{name}-%{version} . make VERBOSE=1 %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-0.9/IBM/find_flags_common chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-0.9/Sun/find_flags_common install -p -m 644 GCC/COPYING \ $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} mv $RPM_BUILD_ROOT%{_datadir}/%{name}-0.9/GCC/COPYING* \ $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} %check ctest %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_bindir}/%{name}_cc1plus %{_mandir}/man1/%{name}.1* %{_datadir}/%{name}-0.9 %doc %{_defaultdocdir}/%{name}-%{version} %changelog * Fri Jul 16 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.9.0-0.3.20100715 - Updated cvs snapshot - contains additional license files * Thu Jul 15 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.9.0-0.2.20100713 - Extend License tag * Tue Jul 13 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.9.0-0.1.20100713 - Initial packaging for Fedora