1 Summary: DragonEgg - using LLVM as a GCC backend
2 Summary(pl.UTF-8): DragonEgg - użycie LLVM-a jako backendu GCC
7 Group: Development/Tools
8 Source0: http://llvm.org/releases/%{version}/dragonegg-%{version}.src.tar.xz
9 # Source0-md5: 3fd4838396f02476fd0308bf5a04d0ee
10 URL: http://dragonegg.llvm.org/
12 BuildRequires: gcc >= 6:4.5
13 BuildRequires: gcc < 6:4.9
14 BuildRequires: llvm-devel >= 3.5.1
15 Requires: gcc >= 6:4.5
16 Requires: llvm >= 3.5.1
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 DragonEgg is a gcc plugin that replaces GCC's optimizers and code
21 generators with those from the LLVM project. It works with gcc-4.5 or
22 newer, can target the x86/x86_64 and ARM processor families, and has
23 been successfully used on the Darwin, FreeBSD, kFreeBSD, Linux and
24 OpenBSD platforms. It fully supports Ada, C, C++ and Fortran. It has
25 partial support for Go, Java, Obj-C and Obj-C++.
27 %description -l pl.UTF-8
28 DragonEgg ("smocze jajo") to wtyczka gcc zastępująca optymalizatory i
29 generatory kodu GCC tymi z projektu LLVM. Działa z gcc 4.5 i nowszymi,
30 potrafi generować kod na procesory x86/x86_64 oraz ARM, działa na
31 platformach Darwin, FreeBSD, kFreeBSD, Linux oraz OpenBSD. Obsługuje w
32 pełni języki Ada, C, C++ i Fortran, natomiast częściowo - Go, Java,
36 %setup -q -n dragonegg-%{version}.src
40 CFLAGS="%{rpmcflags}" \
41 CXXFLAGS="%{rpmcxxflags}" \
42 CPPFLAGS="%{rpmcppflags}" \
43 LDFLAGS="%{rpmldflags}" \
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_libdir}/dragonegg
50 install dragonegg.so $RPM_BUILD_ROOT%{_libdir}/dragonegg
51 cp -p integrated-as.specs $RPM_BUILD_ROOT%{_libdir}/dragonegg
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %dir %{_libdir}/dragonegg
60 %attr(755,root,root) %{_libdir}/dragonegg/dragonegg.so
61 %{_libdir}/dragonegg/integrated-as.specs