-
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
AC_INIT([libtzplatform-config], [1.0])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 -Wall no-define])
-
+# Checks for programs.
AC_CONFIG_HEADERS([config.h ])
AC_PROG_CC
AM_PROG_AR
LT_INIT([disable-static])
-
AC_SUBST([LIBTZPLATFORM_CONFIG_SO_VERSION], [1:0:0])
AC_SUBST([LIBTZPLATFORM_CONFIG_VERSION], [1.0])
-
AC_CONFIG_FILES([
Makefile
src/Makefile
libtzplatform-config.pc:libtzplatform-config.pc.in])
AC_OUTPUT
-
Source1001: %{name}.manifest
BuildRequires: tizen-platform-wrapper
-# the main package only contains a config file but other dependent packages
-# will contain binary. So, we can't build a noarch package and have to avoid
+# the main package only contains a config file but other dependent packages
+# will contain binary. So, we can't build a noarch package and have to avoid
# a rpmlint warning using a filter in xxx-rpmlintrc
%description
License: LGPL-2.0
Requires: %{libname} = %{version}
%description -n %{libname}-devel
-Tizen Platform Configuration - helper library headers to include in source code, RPM macros to call in spec files
+Tizen Platform Configuration - helper library headers to include in source code,
+RPM macros to call in spec files
%package -n %{name}-tools
Summary: Tizen Platform Configuration - tools
cp %{SOURCE1001} .
%build
-%reconfigure \
- --disable-static
-
-make %{?_smp_mflags}
+%reconfigure --disable-static
+%__make %{?_smp_mflags}
%check
-make check
+%__make check
%install
%make_install
%files -n %{name}-tools
%manifest %{name}.manifest
%{_bindir}/*
+
bin_PROGRAMS = tzplatform-get
+wrappersrcdir=$(shell pkg-config --variable=srcdir tizen-platform-wrapper)
+
SRC_FROMWRAPPER= \
buffer.h \
buffer.c \
scratch.h \
scratch.c \
tzplatform_config.c \
- tzplatform_config.h
+ tzplatform_config.h
SRC_FROMTOOL= \
tzplatform_variables.h \
tzplatform-tool pretty $< >$@
$(SRC_FROMWRAPPER) tzplatform_get.c:
- cp $(datadir)/tizen-platform-wrapper/$@ .
+ cp $(wrappersrcdir)/tizen-platform-wrapper/$@ .
tzplatform_variables.h: tizen-platform.conf
tzplatform-tool h $< >$@
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS = -version-info $(LIBTZPLATFORM_CONFIG_SO_VERSION)
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -export-symbols-regex tzplatform_.*
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -Wl,-O3
-libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -lpthread
+libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -lpthread
libtzplatform_config_includedir = $(includedir)/
nobase_libtzplatform_config_include_HEADERS = tzplatform_variables.h tzplatform_config.h
tzplatform_get_SOURCES = tzplatform_get.c
tzplatform_get_LDADD = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
-
-