%global alphatag 20100706
%global hg_revision hg1653
# The source for this package was pulled from upstream's mercurial (hg).
# Use the following commands to generate the tarball:
# hg clone -r 1653
http://bitbucket.org/lindquist/ldc ldc-20100706hg1653
# tar -cJvf ldc-20100706hg1653.tar.xz ldc-20100706hg1653
Name: ldc
Version: 0.9.2
Release: 1%{alphatag}%{hg_revision}%{?dist}
Summary: LDC is a compiler for the D programming Language
Group: Development/Languages
License: BSD
URL:
http://www.dsource.org/projects/ldc
Source0: %{name}-%{alphatag}%{hg_revision}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: llvm-devel
BuildRequires: libconfig
BuildRequires: cmake
BuildRequires: gc
Requires: llvm
%description
LDC is a compiler for the D programming Language. It is based on the latest DMD
frontend and uses LLVM as backend. LLVM provides a fast and modern backend for
high quality code generation. LDC is released under a BSD license with
exceptions for the DMD frontend and code from GDC.
The development takes place mostly on x86-32 and x86-64 Linux and that is where
LDC works best. Support for other platforms and architectures is under
development, but we are still looking for people to help test and adjust LDC
for those platforms!
LDC already compiles a lot of D code, but should still be considered beta
quality. Take a look at the tickets to get a better impression on what still
needs to be implemented.
%description -l fr
LDC est un compiler pour le language de programmation D. Il est basé sur la
derniere interface de DMD et utilise LLVM comme moteur. LLVM est un moteur
rapide pour la génération de code de haute qualité. LDC est publié sous licence
BSD avec des exception pour l'interfaces DMD et le code provenant de GDC.
Le développement se concentre surtout pour les architectures x86 et x86_64
sur Linux et c'est pour celà que LDC travaille bien. le support pour les autres
architectures et platformes sont en développement, mais nous recherchons
des personnes pour aider au test et amélioré LDC pour ces plateformes.
LDC compile déjà une grande quantité de code D, mais doit encore être considéré
en qualité beta. Regarder les tickets pour ressentir se qui doit encore être
implémenter.
%prep
%setup -q -n %{name}-%{alphatag}%{hg_revision}
%build
%cmake . -G "Unix Makefiles" -DCMAKE_CXX_FLAGS:LLVM_REV=101676
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE readme.txt
%changelog
* Wed Jun 23 2010