]> git.pld-linux.org Git - packages/gccxml.git/blobdiff - gccxml.spec
- added naive gcc 5.1/5.2 support (treat as 4.9); release .3
[packages/gccxml.git] / gccxml.spec
index 549a78ad631d282b78e38e0c2a0a8999639254b6..82da8f1cafda4125a88f816d75b4b94c118cb932 100644 (file)
@@ -4,11 +4,13 @@ Name:         gccxml
 Version:       0.9.0
 %define        gitref  3afa8ba5be6866e603dcabe80aff79856b558e24
 %define        snap    20150424
-Release:       0.%{snap}.1
+%define        rel     3
+Release:       0.%{snap}.%{rel}
 License:       GPL v2+ (GCC code), BSD-like (GCC-XML)
 Group:         Development/Tools
 Source0:       https://github.com/gccxml/gccxml/archive/%{gitref}/%{name}-%{snap}.tar.gz
 # Source0-md5: 70e4b145feb2a7036c835cf214cae26a
+Patch0:                %{name}-gcc.patch
 URL:           http://gccxml.github.io/HTML/Index.html
 BuildRequires: cmake
 BuildRequires: libstdc++-devel
@@ -25,6 +27,7 @@ użyciu rozszerzenia kompulatora C++ GCC.
 
 %prep
 %setup -q -n %{name}-%{gitref}
+%patch0 -p1
 
 %build
 install -d build
@@ -41,6 +44,10 @@ rm -rf $RPM_BUILD_ROOT
 # packaged as %doc
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gccxml-0.9
 
+for ver in 5.1 5.2 ; do
+       ln -sf 4.9 $RPM_BUILD_ROOT%{_datadir}/gccxml-0.9/GCC/$ver
+done
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -70,6 +77,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gccxml-0.9/GCC/4.7
 %{_datadir}/gccxml-0.9/GCC/4.8
 %{_datadir}/gccxml-0.9/GCC/4.9
+%{_datadir}/gccxml-0.9/GCC/5.1
+%{_datadir}/gccxml-0.9/GCC/5.2
 %dir %{_datadir}/gccxml-0.9/IBM
 %{_datadir}/gccxml-0.9/IBM/8.0
 %attr(755,root,root) %{_datadir}/gccxml-0.9/IBM/find_flags
This page took 0.13897 seconds and 4 git commands to generate.