From 68163c28aecda1bd1fff82f1dbb6311281dbda01 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 31 Oct 2016 08:41:25 +0100 Subject: [PATCH] Move ldc_arches macro to redhat-rpm-config This makes it possible to use the macro at srpm build time. --- ldc.spec | 8 +++++--- macros.ldc | 2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ldc.spec b/ldc.spec index fdeadea..a2370c5 100644 --- a/ldc.spec +++ b/ldc.spec @@ -7,7 +7,7 @@ Name: ldc Version: %ldc_version -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 Summary: A compiler for the D programming language @@ -19,8 +19,7 @@ URL: https://github.com/ldc-developers/ldc Source0: https://github.com/ldc-developers/ldc/releases/download/v%ldc_version/%{name}-%ldc_version-src.tar.gz Source3: macros.%{name} -# Keep in sync with the ldc_arches macro in macros.ldc -ExclusiveArch: %{ix86} x86_64 %{arm} ppc64 ppc64le +ExclusiveArch: %{ldc_arches} BuildRequires: llvm-devel >= 3.0 BuildRequires: libconfig, libconfig-devel @@ -241,6 +240,9 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/ %changelog +* Mon Oct 31 2016 Kalev Lember - 1:0.17.2-3 +- Move ldc_arches macro to redhat-rpm-config + * Sun Oct 30 2016 Kalev Lember - 1:0.17.2-2 - Add ldc_arches macro that other packages can use - Enable ppc64 and ppc64le architectures diff --git a/macros.ldc b/macros.ldc index ac96f0f..076cf7d 100644 --- a/macros.ldc +++ b/macros.ldc @@ -7,5 +7,3 @@ %_d_optflags -release -w -g -O3 # Lib directory path %_d_libdir %{_libdir}/d/ -# ldc is available on the following architectures -%ldc_arches %{ix86} x86_64 %{arm} ppc64 ppc64le