[PragmARC] · Switched from GNAT_optflags to Gnatmake_optflags. · Removed mkdir invocations as Gnatmake is now

Björn Persson rombobeorn at fedoraproject.org
Tue May 3 20:24:38 UTC 2011


commit 5be9df5fb6fa23640bf1a88280a004ed42e4191e
Author: Björn Persson <bjorn at rombobjörn.se>
Date:   Tue May 3 22:21:53 2011 +0200

    · Switched from GNAT_optflags to Gnatmake_optflags.
    · Removed mkdir invocations as Gnatmake is now told to create directories.

 PragmARC.spec |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/PragmARC.spec b/PragmARC.spec
index 78486a7..d6e3a27 100644
--- a/PragmARC.spec
+++ b/PragmARC.spec
@@ -1,6 +1,6 @@
 Name:           PragmARC
 Version:        20060427
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        PragmAda Reusable Components, a component library for Ada
 Summary(sv):    PragmAda Reusable Components, ett komponentbibliotek för ada
 
@@ -12,7 +12,7 @@ Source2:        build_pragmarc.gpr
 Source3:        pragmarc.gpr
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  gcc-gnat fedora-gnat-project-common >= 2 dos2unix chrpath
+BuildRequires:  gcc-gnat fedora-gnat-project-common >= 3 dos2unix chrpath
 
 %description
 The PragmAda Reusable Components (PragmARCs) is a library of containers,
@@ -47,14 +47,10 @@ cp -p %{SOURCE2} pragmarc.gpr
 
 
 %build
-# Prepare build target directories.
-mkdir --parents build_target%{_includedir}/pragmarc build_target%{_libdir}/pragmarc
-# Prepare a subdirectory to put the binder file in.
-mkdir %{_arch}
 # Delete files that won't be used.
 rm compile_all.adb assertion_handler.adb
 # Compile the library.
-gnatmake -P pragmarc.gpr %{GNAT_optflags} -XDESTDIR=build_target
+gnatmake -P pragmarc.gpr %{Gnatmake_optflags} -XDESTDIR=build_target
 # Remove the unnecessary runpath that Gnatmake added.
 chrpath --delete build_target%{_libdir}/libpragmarc.so.%{version}
 # Convert line breaks.
@@ -93,6 +89,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Tue May 03 2011 Björn Persson <bjorn at rombobjörn.se> - 20060427-11
+- Updated to make use of fedora-gnat-project-common 3.
+
 * Sat Feb 19 2011 Björn Persson <bjorn at rombobjörn.se> - 20060427-10
 - Switched from common.gpr to directories.gpr.
 


More information about the scm-commits mailing list