[Anas]check for AM_PROG_AR with new automake
authorAnas Nashif <anas.nashif@intel.com>
Tue, 5 Feb 2013 14:16:17 +0000 (06:16 -0800)
committerJunfeng Dong <junfeng.dong@intel.com>
Sun, 7 Apr 2013 10:45:32 +0000 (18:45 +0800)
use macro %configure for 64 bit compatibility.

Change-Id: I1d307ddd9c876de1fa8b3cd640bad14f85ea70c6

configure.ac
packaging/libmm-imgp-gstcs.spec

index 471814e..fdcef36 100755 (executable)
@@ -8,6 +8,7 @@ AC_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 # Checks for programs.
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 AC_PROG_CC
 AC_PROG_LIBTOOL
 
index 81e7863..b52c157 100644 (file)
@@ -4,10 +4,8 @@ Summary:    Multimedia Framework Utility Library
 Version:    0.4
 Release:    9
 Group:      System/Libraries
-License:    Apache
+License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
-Requires(post):  /sbin/ldconfig
-Requires(postun):  /sbin/ldconfig
 BuildRequires:  pkgconfig(mm-common)
 BuildRequires:  pkgconfig(mm-log)
 BuildRequires:  pkgconfig(glib-2.0)
@@ -15,9 +13,9 @@ BuildRequires:  pkgconfig(gstreamer-0.10)
 BuildRequires:  pkgconfig(gstreamer-app-0.10)
 BuildRequires:  pkgconfig(gmodule-2.0)
 
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
+Multimedia Framework Utility Library.
 
 %package devel
 Summary:    Multimedia Framework Utility Library (DEV)
@@ -25,6 +23,7 @@ Group:      Development/Libraries
 Requires:   %{name} = %{version}-%{release}
 
 %description devel
+Multimedia Framework Utility Library (DEV).
 
 %prep
 %setup -q
@@ -33,8 +32,8 @@ Requires:   %{name} = %{version}-%{release}
 ./autogen.sh
 
 CFLAGS="$CFLAGS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" -D_MM_PROJECT_FLOATER" \
-LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed" \
-./configure --prefix=%{_prefix}
+LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed" \
+%configure
 make %{?jobs:-j%jobs}
 
 %install
@@ -47,6 +46,7 @@ cp LICENSE.APLv2.0 %{buildroot}/usr/share/license/%{name}
 rm -rf %{buildroot}
 
 %post -p /sbin/ldconfig
+
 %postun -p /sbin/ldconfig