From f5b966a9ef6c8c7613e14ce155d1fd8871d1229d Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 29 Jan 2013 20:56:09 -0800 Subject: [PATCH] Check for AM_PROG_AR - new automake require AM_PROG_AR - Cleanup spec Change-Id: Ibf79d4d7dd2dc4c043131421f6f5092a9639fe2f --- configure.ac | 1 + packaging/libmm-common.spec | 18 ++++++------------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index bd9c830..f269382 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,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 diff --git a/packaging/libmm-common.spec b/packaging/libmm-common.spec index 3ca0200..f7bf024 100644 --- a/packaging/libmm-common.spec +++ b/packaging/libmm-common.spec @@ -1,23 +1,20 @@ Name: libmm-common -Summary: Multimedia Framework Common Lib Version: 0.2.53 Release: 2 -Group: TO_BE/FILLED_IN +Summary: Multimedia Framework Common Library +Group: Multimedia Framework/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(mm-log) - %description Multimedia Framework Common Library %package devel Summary: Multimedia Framework Common Lib (devel) Group: Development/Libraries -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description devel Multimedia Framework Common Library (devel) @@ -25,16 +22,13 @@ Multimedia Framework Common Library (devel) %prep %setup -q -./autogen.sh -CFLAGS="%{optflags} -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " ./configure --prefix=%{_prefix} ; export CFLAGS - %build - -make %{?jobs:-j%jobs} +./autogen.sh +CFLAGS="%{optflags} -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " %configure +make %{?_smp_mflags} %install -rm -rf %{buildroot} %make_install -- 2.7.4