Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 189c8bd7ba07f703b5b85e977f46187b > files > 2

gccxml-0.9.0-0.6.20110211.fc15.src.rpm

Name:		gccxml
Version:	0.9.0
Release:	0.6.20110211%{?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 '2011-02-11 23:59:59Z' -d gccxml-0.9.0-20110211 gccxml
#		tar -z -c --exclude CVS --exclude Borland \
#		    -f gccxml-0.9.0-20110211.tar.gz gccxml-0.9.0-20110211
Source0:	%{name}-%{version}-20110211.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}-20110211

%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
* Sat Feb 12 2011 Mattias Ellert <mattis.ellert@fysast.uu.se> - 0.9.0-0.6.20110211
- Updated cvs snapshot
- Drop gccxml-gcc-4.6.patch - accepted upstream

* Wed Feb 09 2011 Mattias Ellert <mattis.ellert@fysast.uu.se> - 0.9.0-0.5.20110208
- Updated cvs snapshot
- Add support files for gcc 4.6

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-0.4.20100715
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* 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