Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > ddc72bb0a2546187ceec1574a1247df6 > files > 3

gccxml-0.9.0-0.12.20120309.fc16.src.rpm

Name:		gccxml
Version:	0.9.0
Release:	0.12.20120309%{?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 '2012-03-09 23:59:59Z' -d gccxml-0.9.0-20120309 gccxml
#		tar -z -c --exclude CVS --exclude Borland \
#		    -f gccxml-0.9.0-20120309.tar.gz gccxml-0.9.0-20120309
Source0:	%{name}-%{version}-20120309.tar.gz
#		Support gcc builtin swap functions
#		http://www.gccxml.org/Bug/view.php?id=13430
Patch0:		%{name}-swap.patch
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}-20120309
%patch0 -p1

%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
* Mon Jul 23 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.9.0-0.12.20120309
- Support gcc builtin swap functions

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-0.11.20120309
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Mar 10 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.9.0-0.10.20120309
- Updated cvs snapshot
- Now contains support files for gcc 4.7

* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-0.9.20111218
- Rebuilt for c++ ABI breakage

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-0.8.20111218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Dec 19 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.9.0-0.7.20111218
- Updated cvs snapshot

* Sat Feb 12 2011 Mattias Ellert <mattias.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 <mattias.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