}
do_patch () {
- echo export S=${S} > ${WORKDIR}/temp/Bash_patch
- echo export WORKDIR=${WORKDIR} >> ${WORKDIR}/temp/Bash_patch
- echo export PACKAGING=${PACKAGING} >> ${WORKDIR}/temp/Bash_patch
- echo export HOST_SYS=${HOST_SYS} >> ${WORKDIR}/temp/Bash_patch
-
+ cat << EOC > ${WORKDIR}/temp/Bash_patch
+export S=${S}
+export WORKDIR=${WORKDIR}
+export PACKAGING=${PACKAGING}
+export HOST_SYS=${HOST_SYS}
+EOC
X=$base_prefix
SPECPATH=$(spec2yocto findBestSpecFile ${PACKAGING}/packaging/ --package_pn=${BPN})
spec2yocto prep ${SPECPATH} --package_pn=${PN} >> ${WORKDIR}/temp/Bash_patch
do_compile_prepend () {
mkdir -p ${WORKDIR}/temp
- echo export S=${S} > ${WORKDIR}/temp/Bash_compile
- echo export WORKDIR=${WORKDIR} >> ${WORKDIR}/temp/Bash_compile
- echo export HOST_SYS=${HOST_SYS} >> ${WORKDIR}/temp/Bash_compile
- echo export STAGING_DIR_HOST=${STAGING_DIR_HOST} >> ${WORKDIR}/temp/Bash_compile
- echo export STAGING_LIBDIR=${STAGING_LIBDIR} >> ${WORKDIR}/temp/Bash_compile
- echo export STAGING_BASELIBDIR=${STAGING_BASELIBDIR} >> ${WORKDIR}/temp/Bash_compile
- echo export STAGING_INCDIR=${STAGING_INCDIR} >> ${WORKDIR}/temp/Bash_compile
- echo export BUILD_SYS=${BUILD_SYS} >> ${WORKDIR}/temp/Bash_compile
- echo export TARGET_PREFIX=${TARGET_PREFIX} >> ${WORKDIR}/temp/Bash_compile
- echo export STAGING_BINDIR_NATIVE=${STAGING_BINDIR_NATIVE} >> ${WORKDIR}/temp/Bash_compile
- echo export STAGING_DIR_NATIVE=${STAGING_DIR_NATIVE} >> ${WORKDIR}/temp/Bash_compile
+ cat << EOC > ${WORKDIR}/temp/Bash_compile
+export S=${S}
+export WORKDIR=${WORKDIR}
+export HOST_SYS=${HOST_SYS}
+export STAGING_DIR_HOST=${STAGING_DIR_HOST}
+export STAGING_LIBDIR=${STAGING_LIBDIR}
+export STAGING_BASELIBDIR=${STAGING_BASELIBDIR}
+export STAGING_INCDIR=${STAGING_INCDIR}
+export BUILD_SYS=${BUILD_SYS}
+export TARGET_PREFIX=${TARGET_PREFIX}
+export STAGING_BINDIR_NATIVE=${STAGING_BINDIR_NATIVE}
+export STAGING_DIR_NATIVE=${STAGING_DIR_NATIVE}
+#usefull for libcap
+find ${S} -iname "*.Rules" -exec sed -e 's,:=,?=,g' -i {} \;
+find ${S} -iname "*.Rules" -exec sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := \$(BUILD_CFLAGS),' -i {} \;
+EOC
- echo find \${S} -iname \"*.Rules\" -exec sed -e \'s,:=,?=,g\' -i {} \\\; >> ${WORKDIR}/temp/Bash_compile
- echo find \${S} -iname \"*.Rules\" -exec sed -e \'s,BUILD_CFLAGS ?=,BUILD_CFLAGS := \$\(BUILD_CFLAGS\),\' -i {} \\\; >> ${WORKDIR}/temp/Bash_compile
X=${STAGING_DIR_HOST}
SPECPATH=$(spec2yocto findBestSpecFile ${PACKAGING}/packaging/ --package_pn=${BPN})
spec2yocto compile ${SPECPATH} --package_pn=${PN} >> ${WORKDIR}/temp/Bash_compile
do_install_prepend () {
mkdir -p ${WORKDIR}/temp
- echo export S=${S} > ${WORKDIR}/temp/Bash_install
- echo export D=${D} >> ${WORKDIR}/temp/Bash_install
- echo export RPM_BUILD_DIR=${S} >> ${WORKDIR}/temp/Bash_install
- echo export WORKDIR=${WORKDIR} >> ${WORKDIR}/temp/Bash_install
- echo export HOST_SYS=${HOST_SYS} >> ${WORKDIR}/temp/Bash_install
- echo export STAGING_DIR_HOST=${STAGING_DIR_HOST} >> ${WORKDIR}/temp/Bash_install
- echo export STAGING_LIBDIR=${STAGING_LIBDIR} >> ${WORKDIR}/temp/Bash_install
- echo export STAGING_BASELIBDIR=${STAGING_BASELIBDIR} >> ${WORKDIR}/temp/Bash_install
- echo export STAGING_INCDIR=${STAGING_INCDIR} >> ${WORKDIR}/temp/Bash_install
- echo export BUILD_SYS=${BUILD_SYS} >> ${WORKDIR}/temp/Bash_install
- echo export TARGET_PREFIX=${TARGET_PREFIX} >> ${WORKDIR}/temp/Bash_install
- echo export STAGING_BINDIR_NATIVE=${STAGING_BINDIR_NATIVE} >> ${WORKDIR}/temp/Bash_install
- echo export STAGING_DIR_NATIVE=${STAGING_DIR_NATIVE} >> ${WORKDIR}/temp/Bash_install
- #RLM fix gmp
+cat << EOC > ${WORKDIR}/temp/Bash_install
+export S=${S}
+export D=${D}
+export RPM_BUILD_DIR=${S}
+export WORKDIR=${WORKDIR}
+export HOST_SYS=${HOST_SYS}
+export STAGING_DIR_HOST=${STAGING_DIR_HOST}
+export STAGING_LIBDIR=${STAGING_LIBDIR}
+export STAGING_BASELIBDIR=${STAGING_BASELIBDIR}
+export STAGING_INCDIR=${STAGING_INCDIR}
+export BUILD_SYS=${BUILD_SYS}
+export TARGET_PREFIX=${TARGET_PREFIX}
+export STAGING_BINDIR_NATIVE=${STAGING_BINDIR_NATIVE}
+export STAGING_DIR_NATIVE=${STAGING_DIR_NATIVE}
+EOC
if [[ ${PN} =~ "-native" ]];
then
# autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
# like it was auto-generated. Work around this by blowing it away
# by hand, unless the package specifically asked not to run aclocal.
- if ! echo ${EXTRA_AUTORECONF} ${TIZEN_EXTRA_AUTORECONF} | grep -q "aclocal"; then
+ if ! echo ${EXTRA_AUTORECONF} | grep -q "aclocal"; then
rm -f aclocal.m4
fi
if [ -e configure.in ]; then
bbnote Executing intltoolize --copy --force --automake
intltoolize --copy --force --automake
fi
- bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf --verbose --install --force ${EXTRA_AUTORECONF} ${TIZEN_EXTRA_AUTORECONF} $acpaths
- ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} ${TIZEN_EXTRA_AUTORECONF} $acpaths || bbfatal "autoreconf execution failed."
+ bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
+ ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || bbfatal "autoreconf execution failed."
cd $olddir
fi
if [ -e ./configure ]; then
cfgscript="./configure"
if [ -x "$cfgscript" ] ; then
bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF}" "$@"
- bbnote "Running with EXTRA_OECONF ${EXTRA_OECONF} " "$@"
set +e
${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" ${EXTRA_OECONF_LAST}
if [ "$?" != "0" ]; then
PACKAGES += "acl"
libacl_files = ""
-libacl_files += "/usr/lib/libacl.so.1*"
+libacl_files += "/lib/libacl.so.1*"
acl-docs_files = ""
acl-docs_files += "/usr/share/info"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/apps/core/preloaded/app-selector;protocol=ssh;tag=submit/tizen/20130529.220508"
+SRC_URI += "git://review.tizen.org/apps/core/preloaded/app-selector;protocol=ssh;tag=submit/tizen/20130710.023930"
require app-selector-native-extraconf.inc
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/apps/core/preloaded/app-selector;protocol=ssh;tag=submit/tizen/20130529.220508"
+SRC_URI += "git://review.tizen.org/apps/core/preloaded/app-selector;protocol=ssh;tag=submit/tizen/20130710.023930"
require app-selector-oe-extraconf.inc
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/platform/core/appfw/aul-1;protocol=ssh;tag=submit/tizen/20130703.165437"
+SRC_URI += "git://review.tizen.org/platform/core/appfw/aul-1;protocol=ssh;tag=submit/tizen/20130709.065332"
require aul-1-native-extraconf.inc
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/platform/core/appfw/aul-1;protocol=ssh;tag=submit/tizen/20130703.165437"
+SRC_URI += "git://review.tizen.org/platform/core/appfw/aul-1;protocol=ssh;tag=submit/tizen/20130709.065332"
require aul-1-oe-extraconf.inc
--- /dev/null
+DEPENDS = ""
+#DEPENDS of automake
+DEPENDS += "xz"
+DEPENDS += "gcc-cross"
+DEPENDS += "autoconf-native"
+DEPENDS += "bison"
--- /dev/null
+RDEPENDS = ""
+#RDEPENDS of automake (${PN})
+RDEPENDS_${PN} += "autoconf"
+
+
--- /dev/null
+#PROVIDES by automake
+PROVIDES += "automake"
+RPROVIDES_automake += "automake"
+
--- /dev/null
+DESCRIPTION = "A Program for Automatically Generating GNU-Style Makefile.in Files"
+HOMEPAGE = "http://www.gnu.org/software/automake"
+SECTION = "Development/Tools/Building"
+LICENSE = "GPL-2.0+"
+
+PROVIDES = ""
+
+PACKAGES = ""
+PACKAGES += "automake"
+
+automake_files = ""
+automake_files += "GPL-2.0+ COPYING"
+automake_files += "/usr/share/doc/packages/automake"
+automake_files += "/usr/bin/*"
+automake_files += "/usr/share/info/*.gz"
+automake_files += "/usr/share/man/man1/*"
+automake_files += "/usr/share/aclocal*"
+automake_files += "/usr/share/automake-*"
+automake_files += "/etc/aclocal_dirlist"
+
+FILES_${PN} = "${automake_files}"
+
+SRC_URI = ""
+
+inherit tizenBuildUtils
+
+S = "${WORKDIR}/git"
+
+require automake-rdepends.inc
+require automake-depends.inc
+require automake-extraconf.inc
VIRTUAL_NAME = "virtual/db"
-PROVIDES += "${VIRTUAL_NAME}"
\ No newline at end of file
+PROVIDES += "${VIRTUAL_NAME}"
+
+
+do_compile[vardeps] += "oe_runconf"
+do_compile[vardeps] += "autotools_do_configure"
+
+#S = "${WORKDIR}/git/dist"
+#B = "${WORKDIR}/git/build_nptl"
+
+EXTRA_OECONF = '--prefix="/usr" \
+ --libdir="/usr/lib" --enable-compat185 --disable-dump185 \
+ --enable-shared --disable-static --enable-cxx \
+ --with-mutex="POSIX/pthreads/library" \
+ i586-suse-linux'
\ No newline at end of file
--- /dev/null
+Host Info: Linux intel15 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64
+Build Started: 1373544297.55
+Elapsed time: 0.13 seconds
+CPU usage: 1.0%
+EndIOinProgress: 0
+EndReadsComp: 1110275
+EndReadsMerged: 841552530
+EndSectRead: 70717997
+EndSectWrite: 64667592
+EndTimeIO: 21825714
+EndTimeReads: 1358737
+EndTimeWrite: 1220381037
+EndWTimeIO: 1291177526
+EndWritesComp: 1875801
+StartIOinProgress: 0
+StartReadsComp: 1110275
+StartReadsMerged: 841552530
+StartSectRead: 70717997
+StartSectWrite: 64667592
+StartTimeIO: 21825714
+StartTimeReads: 1358737
+StartTimeWrite: 1220381037
+StartWTimeIO: 1291177526
+StartWritesComp: 1875801
--- /dev/null
+Host Info: Linux intel15 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64
+Build Started: 1373544306.86
#DEPENDS of wrt-installer
DEPENDS += "edje"
DEPENDS += "libslp-tapi"
-DEPENDS += "appfw"
DEPENDS += "libxml2"
DEPENDS += "libiri"
DEPENDS += "xmlsec1"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/platform/framework/web/wrt-installer;protocol=ssh;tag=submit/tizen/20130701.181223"
+SRC_URI += "git://review.tizen.org/platform/framework/web/wrt-installer;protocol=ssh;tag=submit/tizen/20130710.023042"
require wrt-installer-native-extraconf.inc
RDEPENDS = ""
#RDEPENDS of wrt-installer (${PN})
RDEPENDS_${PN} += "xmlsec1"
-RDEPENDS_${PN} += "osp-appfw"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/platform/framework/web/wrt-installer;protocol=ssh;tag=submit/tizen/20130701.181223"
+SRC_URI += "git://review.tizen.org/platform/framework/web/wrt-installer;protocol=ssh;tag=submit/tizen/20130710.023042"
require wrt-installer-oe-extraconf.inc
[tizen_ivi_autoreconf]
#specify witch recipes do not execute autoreconf during the macro "%configure".
-blacklist=freetype,popt,pcre,which,findutils,tizen-coreutils,python,ncurses,dlog,texinfo,groff,module-init-tools,gawk,grep,fribidi,file,c-ares,psmisc,libidn,binutils
+blacklist=freetype, popt, pcre, which, findutils, tizen-coreutils, python,ncurses, dlog, texinfo, groff, module-init-tools, gawk, grep, fribidi, file, c-ares, psmisc, libidn, binutils
[depends]
diff --git a/packaging/db4.spec b/packaging/db4.spec
-index 4845063..293047c 100644
+index 4845063..75c40a6 100644
--- a/packaging/db4.spec
+++ b/packaging/db4.spec
@@ -60,8 +60,8 @@ This package contains the header files and libraries.
%build
cd dist
+@@ -77,7 +77,7 @@ export CFLAGS CXXFLAGS CC
+ #
+ # Build now the NPTL version
+ #
+-mkdir ../build_nptl
++mkdir -p ../build_nptl
+ cd ../build_nptl
+ ../dist/configure --prefix=%{_prefix} \
+ --libdir=%{_libdir} --enable-compat185 --disable-dump185 \
--- /dev/null
+diff --git a/packaging/ed.spec b/packaging/ed.spec
+index da47a89..349940c 100644
+--- a/packaging/ed.spec
++++ b/packaging/ed.spec
+@@ -19,7 +19,7 @@ sed -i \
+ configure
+
+ %build
+-%{configure}
++%{configure} CC="${CC}"
+ make %{?_smp_mflags}
+
+ %check
diff --git a/packaging/libcap.spec b/packaging/libcap.spec
-index 414aee6..76b5d51 100644
+index 414aee6..089885e 100644
--- a/packaging/libcap.spec
+++ b/packaging/libcap.spec
-@@ -50,7 +50,7 @@ libcap.
+@@ -50,7 +50,9 @@ libcap.
%build
# lib=%{_lib} make %{?_smp_mflags} COPTFLAG="%{optflags}"
-lib=%{_lib} make %{?_smp_mflags} DEBUG="-g %{optflags}"
-+lib=%{_lib} make %{?_smp_mflags} DEBUG="-g %{optflags}" SYSTEM_HEADERS=${STAGING_INCDIR}
++export CFLAGS=""
++export FFLAGS=""
++lib=%{_lib} make %{?_smp_mflags} SYSTEM_HEADERS=${STAGING_INCDIR}
%install
make install DESTDIR=%{buildroot} LIBDIR=%{buildroot}/%{_lib} MANDIR=%{buildroot}%{_mandir} RAISE_SETFCAP=no
--- /dev/null
+diff --git a/packaging/zlib.spec b/packaging/zlib.spec
+index f479a76..743bc30 100644
+--- a/packaging/zlib.spec
++++ b/packaging/zlib.spec
+@@ -69,14 +69,14 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
+ %if %{do_profiling}
+ profiledir=$(mktemp -d)
+ trap "rm -rf $profiledir" EXIT
+-CC="gcc" ./configure --shared --prefix=%{_prefix} --libdir=/%{_lib}
++CC="%__cc" ./configure --shared --prefix=%{_prefix} --libdir=/%{_lib}
+ make CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir" %{?_smp_mflags}
+ time make check
+ make clean
+ make CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir" %{?_smp_mflags}
+ %else
+ export CFLAGS="%{optflags}"
+-CC="gcc" ./configure --shared --prefix=%{_prefix} --libdir=/%{_lib}
++CC="%__cc" ./configure --shared --prefix=%{_prefix} --libdir=/%{_lib}
+ make %{?_smp_mflags}
+ %endif
+
--- /dev/null
+%define lname libacl
+%define _libdir %_buildPrefix/lib
+%define _libexecdir %_buildPrefix/usr/lib
+
+Name: acl
+BuildRequires: libattr-devel
+Summary: Commands for Manipulating POSIX Access Control Lists
+License: GPL-2.0+ ; LGPL-2.1+
+Group: Security/Access Control
+Version: 2.2.51
+Release: 0
+Source: %name-%version.src.tar.gz
+Source2: baselibs.conf
+Url: http://download.savannah.gnu.org/releases-noredirect/acl/
+
+%description
+getfacl and setfacl commands for retrieving and setting POSIX access
+control lists.
+
+%package -n %lname
+Summary: A dynamic library for accessing POSIX Access Control Lists
+Group: Security/Access Control
+
+%description -n %lname
+This package contains the libacl.so dynamic library which contains the
+POSIX 1003.1e draft standard 17 functions for manipulating access
+control lists.
+
+%package -n libacl-devel
+Summary: Include Files and Libraries mandatory for Development
+Group: Development/Libraries
+Requires: %lname = %version
+Requires: glibc-devel
+# the .so file references libattr.so.x, so require libattr-devel
+Requires: libattr-devel
+
+%description -n libacl-devel
+This package contains all necessary include files and libraries needed
+to develop applications that require these.
+
+%prep
+%setup -q -n acl-%version
+
+%build
+export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
+export DEBUG=-DNDEBUG
+CFLAGS="$RPM_OPT_FLAGS"
+%configure \
+ --prefix=/ \
+ --exec-prefix=/ \
+ --libdir=%{_libdir} \
+ --libexecdir=%{_libdir} \
+ --enable-gettext=no \
+ --disable-static \
+ --with-pic
+%{__make} %{?_smp_mflags}
+
+%install
+DIST_ROOT="$RPM_BUILD_ROOT"
+DIST_INSTALL=`pwd`/install.manifest
+DIST_INSTALL_DEV=`pwd`/install-dev.manifest
+DIST_INSTALL_LIB=`pwd`/install-lib.manifest
+export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
+/usr/bin/make install DIST_MANIFEST="$DIST_INSTALL"
+/usr/bin/make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
+/usr/bin/make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
+
+rm -f %{buildroot}/%{_libdir}/*.{a,la}
+
+%post -n %lname -p /sbin/ldconfig
+
+%postun -n %lname -p /sbin/ldconfig
+
+
+%docs_package
+
+%files
+%defattr(-,root,root)
+%license doc/COPYING doc/COPYING.LGPL
+%attr(755,root,root) %{_bindir}/chacl
+%attr(755,root,root) %{_bindir}/getfacl
+%attr(755,root,root) %{_bindir}/setfacl
+%dir %attr(755,root,root) /usr/share/doc/packages/acl
+%doc %attr(644,root,root) /usr/share/doc/packages/acl/CHANGES.gz
+%doc %attr(644,root,root) /usr/share/doc/packages/acl/COPYING
+%doc %attr(644,root,root) /usr/share/doc/packages/acl/COPYING.LGPL
+%doc %attr(644,root,root) /usr/share/doc/packages/acl/PORTING
+%doc %attr(644,root,root) /usr/share/doc/packages/acl/README
+
+%files -n libacl-devel
+%defattr(-,root,root)
+%dir %attr(755,root,root) %{_includedir}/acl
+%attr(644,root,root) %{_includedir}/acl/libacl.h
+%attr(644,root,root) %{_includedir}/sys/acl.h
+%attr(755,root,root) %{_libdir}/libacl.so
+
+%files -n %lname
+%defattr(755,root,root,755)
+%{_libdir}/libacl.so.1*
+
--- /dev/null
+Name: bash
+Version: 4.2
+Release: 1
+License: GPL-3.0+
+Summary: The GNU Bourne Again shell
+Url: http://www.gnu.org/software/bash
+Group: Base/Tools
+Source0: ftp://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz
+Source1: dot.bashrc
+Source2: dot.profile
+BuildRequires: autoconf
+BuildRequires: bison
+Provides: /bin/bash
+Provides: /bin/sh
+
+%description
+The GNU Bourne Again shell (Bash) is a shell or command language
+interpreter that is compatible with the Bourne shell (sh). Bash
+incorporates useful features from the Korn shell (ksh) and the C shell
+(csh). Most sh scripts can be run by bash without modification.
+
+
+%prep
+%setup -q
+
+%build
+%configure --enable-largefile \
+ --without-bash-malloc \
+ --disable-nls \
+ --enable-alias \
+ --enable-readline \
+ --enable-history
+
+# Recycles pids is neccessary. When bash's last fork's pid was X
+# and new fork's pid is also X, bash has to wait for this same pid.
+# Without Recycles pids bash will not wait.
+make "CPPFLAGS=-D_GNU_SOURCE -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' -DRECYCLES_PIDS `getconf LFS_CFLAGS`"
+%check
+make check
+
+%install
+%make_install
+
+mkdir -p %{buildroot}/etc/bash_completion.d
+
+#mkdir -p %{buildroot}/%{_bindir}
+#mv %{buildroot}/bin/* %{buildroot}/%{_bindir}/
+
+# make manpages for bash builtins as per suggestion in DOC/README
+pushd doc
+sed -e '
+/^\.SH NAME/, /\\- bash built-in commands, see \\fBbash\\fR(1)$/{
+/^\.SH NAME/d
+s/^bash, //
+s/\\- bash built-in commands, see \\fBbash\\fR(1)$//
+s/,//g
+b
+}
+d
+' builtins.1 > man.pages
+for i in echo pwd test kill; do
+ perl -pi -e "s,$i,,g" man.pages
+ perl -pi -e "s, , ,g" man.pages
+done
+
+install -c -m 644 builtins.1 %{buildroot}%{_mandir}/man1/builtins.1
+
+for i in `cat man.pages` ; do
+ echo .so man1/builtins.1 > %{buildroot}%{_mandir}/man1/$i.1
+ chmod 0644 %{buildroot}%{_mandir}/man1/$i.1
+done
+popd
+
+# Link bash man page to sh so that man sh works.
+ln -s bash.1 %{buildroot}%{_mandir}/man1/sh.1
+
+# Not for printf, true and false (conflict with coreutils)
+rm -f %{buildroot}/%{_mandir}/man1/printf.1
+rm -f %{buildroot}/%{_mandir}/man1/true.1
+rm -f %{buildroot}/%{_mandir}/man1/false.1
+
+pushd %{buildroot}
+ln -sf bash ./usr/bin/sh
+rm -f .%{_infodir}/dir
+popd
+mkdir -p %{buildroot}%{_sysconfdir}/skel
+install -c -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/.bashrc
+install -c -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.bash_profile
+LONG_BIT=$(getconf LONG_BIT)
+mv %{buildroot}%{_bindir}/bashbug \
+ %{buildroot}%{_bindir}/bashbug-"${LONG_BIT}"
+
+# Fix missing sh-bangs in example scripts (bug #225609).
+for script in \
+ examples/scripts/krand.bash \
+ examples/scripts/bcsh.sh \
+ examples/scripts/precedence \
+ examples/scripts/shprompt
+do
+ cp "$script" "$script"-orig
+ echo '#!/bin/bash' > "$script"
+ cat "$script"-orig >> "$script"
+ rm -f "$script"-orig
+done
+
+rm -rf %{buildroot}%{_bindir}/bashbug-*
+chmod a-x doc/*.sh
+
+%docs_package
+
+
+
+
+%postun
+if [ "$1" = 0 ]; then
+ /bin/grep -v '^/bin/bash$' < /etc/shells | \
+ /bin/grep -v '^/bin/sh$' > /etc/shells.new
+ /bin/mv /etc/shells.new /etc/shells
+fi
+
+
+
+%files
+%license COPYING
+%{_bindir}/sh
+%{_bindir}/bash
+%{_sysconfdir}/skel
+%dir %{_sysconfdir}/bash_completion.d
+
--- /dev/null
+%define generic_name db
+%define docdir %{_defaultdocdir}/%{name}
+%define major 4
+%define minor 8
+
+Name: db4
+Version: %{major}.%{minor}.30.NC
+Release: 0
+Summary: Berkeley DB Database Library Version 4.8
+License: BSD-3-Clause
+Group: System/Libraries
+Url: http://www.sleepycat.com
+Source: db-%{version}.tar.gz
+Source1: %{name}.changes
+Source9: getpatches
+BuildRequires: autoconf
+BuildRequires: fdupes
+BuildRequires: gcc-c++
+Provides: db = %{version}
+
+%description
+The Berkeley DB Database is a programmatic toolkit that provides
+database support for applications.
+
+This package contains the necessary runtime libraries.
+
+%package utils
+Summary: Command Line tools for Managing Berkeley DB Databases
+Group: Productivity/Databases/Tools
+
+%description utils
+The Berkeley DB Database is a programmatic toolkit that provides
+database support for applications.
+
+This package contains the command line tools for managing Berkeley DB
+databases.
+
+%package doc
+Summary: Documentation for Berkeley DB
+Group: Development/Libraries/C and C++
+BuildArch: noarch
+
+%description doc
+The Berkeley DB Database is a programmatic toolkit that provides
+database support for applications.
+
+This package contains the documentation.
+
+%package devel
+Summary: Development Files and Libraries for the Berkeley DB library Version 4.8
+Group: Development/Libraries/C and C++
+Requires: %{name} = %{version}
+Requires: glibc-devel
+
+%description devel
+The Berkeley DB Database is a programmatic toolkit that provides
+database support for applications.
+
+This package contains the header files and libraries.
+
+%prep
+%setup -q -n %{generic_name}-%{version}
+#cd ..
+#tar -jcf %{generic_name}-%{version}.tar.bz2 %{generic_name}-%{version}
+
+%build
+cd dist
+# dist/RELEASE codes the build date into the binary.
+# Use last change of changes file instead
+LAST_MOD=`stat --format="%Y" %SOURCE1`
+DIST_DATE=`date '+%B %e, %Y' --date="@$LAST_MOD"`
+sed -i -e "s/^DB_RELEASE_DATE=.*$/DB_RELEASE_DATE=\"$DIST_DATE\"/" RELEASE
+./s_config
+CFLAGS="%{optflags} -fno-strict-aliasing"
+CC=gcc
+export CFLAGS CXXFLAGS CC
+#
+# Build now the NPTL version
+#
+mkdir ../build_nptl
+cd ../build_nptl
+../dist/configure --prefix=%{_prefix} \
+ --libdir=%{_libdir} --enable-compat185 --disable-dump185 \
+ --enable-shared --disable-static --enable-cxx \
+ --with-mutex="POSIX/pthreads/library" \
+%ifarch %arm
+ %{_target_cpu}-suse-linux-gnueabi
+%else
+ %{_target_cpu}-suse-linux
+%endif
+# Make sure O_DIRECT is really disabled (build host could have old kernel)
+perl -pi -e 's/#define HAVE_O_DIRECT 1/#undef HAVE_O_DIRECT/' db_config.h
+# Remove libtool predep_objects and postdep_objects wonkiness
+perl -pi -e 's/^predep_objects=".*$/predep_objects=""/' libtool
+perl -pi -e 's/^postdep_objects=".*$/postdep_objects=""/' libtool
+perl -pi -e 's/-shared -nostdlib/-shared/' libtool
+
+make %{?_smp_mflags} LIBSO_LIBS='$(LIBS)' LIBXSO_LIBS='$(LIBS)'" -L%{_libdir} -lstdc++"
+
+%install
+mkdir -p %{buildroot}%{_includedir}/db4
+CONFIG_ARGS=$(find . -name "config.log" -exec grep "\$ \.\./dist\/configure" {} \; | sed 's/.*configure\( --.*\)/\1/g')
+if [ -z "$CONFIG_ARGS" ]
+then
+ echo "could not find configure arguments ... exiting"
+ exit 42
+fi
+mkdir -p %{buildroot}%{_libdir}
+cd build_nptl
+make prefix=%{buildroot}%{_prefix} libdir=%{buildroot}%{_libdir} strip=true install
+cd ..
+# make ldd happy:
+chmod 755 %{buildroot}%{_libdir}/libdb*.so
+# Fix header file installation
+mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/db4
+echo "#include <db4/db.h>" > %{buildroot}%{_includedir}/db.h
+echo "#include <db4/db_185.h>" > %{buildroot}%{_includedir}/db_185.h
+echo "#include <db4/db_cxx.h>" > %{buildroot}%{_includedir}/db_cxx.h
+# remove dangling tags symlink from examples.
+rm -f examples_cxx/tags
+rm -f examples_c/tags
+# Move documentation to the right directory
+mkdir -p %{buildroot}%{docdir}
+mv %{buildroot}%{_prefix}/docs/* %{buildroot}/%{docdir}
+cp -a examples_cxx examples_c %{buildroot}/%{docdir}
+cp -a LICENSE README %{buildroot}/%{docdir}
+#
+# Remove api documentation for C++, Java and TCL
+rm -rf %{buildroot}/%{docdir}/csharp
+rm -rf %{buildroot}/%{docdir}/java
+rm -rf %{buildroot}/%{docdir}/api_reference/CXX
+rm -rf %{buildroot}/%{docdir}/api_reference/STL
+rm -rf %{buildroot}/%{docdir}/api_reference/TCL
+rm -rf %{buildroot}/%{docdir}/gsg*/CXX
+rm -rf %{buildroot}/%{docdir}/gsg*/JAVA
+mv %{buildroot}/%{docdir}/collections/tutorial %{buildroot}/%{docdir}/
+# Remove crappy *.la files
+rm -rf %{buildroot}%{_libdir}/*.la
+rm -rf %{buildroot}%{_libdir}/tls/*.la
+%fdupes %{buildroot}%{_libdir}
+%fdupes %{buildroot}%{docdir}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libdb-%{major}.%{minor}.so
+%{_libdir}/libdb_cxx-%{major}.%{minor}.so
+
+%files doc
+%defattr(-,root,root)
+%dir %{docdir}
+%doc %{docdir}/LICENSE
+%doc %{docdir}/README
+%doc %{docdir}/index.html
+%doc %{docdir}/license
+%doc %{docdir}/articles
+%doc %{docdir}/api_reference
+%doc %{docdir}/examples_c
+%doc %{docdir}/examples_cxx
+%doc %{docdir}/gsg*
+%doc %{docdir}/porting
+%doc %{docdir}/programmer_reference
+%doc %{docdir}/tutorial
+
+%files utils
+%defattr(-,root,root)
+%{_bindir}/db_archive
+%{_bindir}/db_checkpoint
+%{_bindir}/db_deadlock
+%{_bindir}/db_dump
+%{_bindir}/db_load
+%{_bindir}/db_printlog
+%{_bindir}/db_recover
+%{_bindir}/db_sql
+%{_bindir}/db_stat
+%{_bindir}/db_upgrade
+%{_bindir}/db_verify
+%{_bindir}/db_hotbackup
+
+%files devel
+%defattr(-,root,root)
+%dir %{_includedir}/db4
+%{_includedir}/db.h
+%{_includedir}/db_185.h
+%{_includedir}/db_cxx.h
+%{_includedir}/db4/db.h
+%{_includedir}/db4/db_185.h
+%{_includedir}/db4/db_cxx.h
+%{_libdir}/libdb.so
+%{_libdir}/libdb-%{major}.so
+%{_libdir}/libdb_cxx.so
+%{_libdir}/libdb_cxx-%{major}.so
+
+%changelog
--- /dev/null
+#sbs-git:slp/sdk/default-fonts-fc-sdk default-fonts-fc-sdk 0.0.2 8414dbd3e62b6f7a864ba031e043dd7604b3d86d
+Name: default-fonts-fc-sdk
+Summary: Font configuration package for SDK
+Version: 0.0.2
+Release: 1
+Group: TO_BE/FILLED_IN
+License: TO BE FILLED IN
+Source0: %{name}-%{version}.tar.gz
+Source1001: packaging/default-fonts-fc-sdk.manifest
+
+%description
+Font configuration package for SDK
+This package is maintained by SDK team
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{_prefix}/etc/fonts/conf.d/
+mkdir -p %{buildroot}/opt/etc/fonts/conf.avail/ && cp -a sdk_fonts_fc/* %{buildroot}/opt/etc/fonts/conf.avail/
+cd %{buildroot}%{_prefix}/etc/fonts/conf.d/
+ln -s ../../../../opt/etc/fonts/conf.avail/99-slp.conf %{buildroot}%{_prefix}/etc/fonts/conf.d/99-slp.conf
+
+%post
+chown :5000 ${D}/opt/etc/fonts/conf.avail/99-slp.conf
+chmod 664 ${D}/opt/etc/fonts/conf.avail/99-slp.conf
+
+%files
+%manifest default-fonts-fc-sdk.manifest
+%defattr(-,root,root,-)
+/opt/etc/fonts/conf.avail/99-slp.conf
+%{_prefix}/etc/fonts/conf.d/99-slp.conf
+%exclude %{_prefix}/etc/fonts/conf.d/documentation.list
--- /dev/null
+Name: dnsmasq
+Summary: dnsmasq, DNS forwarder.
+Version: 2.57
+Release: 5
+Group: TO_BE/FILLED_IN
+License: TO BE FILLED IN
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(dbus-1)
+
+%description
+Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
+
+%prep
+%setup -q
+
+%build
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+make %{?jobs:-j%jobs}
+
+%post
+mkdir -p ${D}/opt/var/lib/misc
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%files
+%manifest dnsmasq.manifest
+%{_bindir}/dnsmasq
+
+%changelog
+* Fri Nov 02 2012 Seungyoun Ju <sy39.ju@samsung.com> 2.57-5
+- Default manifest file is added
+
+* Mon Apr 16 2012 Seungyoun Ju <sy39.ju@samsung.com> 2.57-4
+- "/opt/var/lib/misc" directory for lease file is created explicitly
--- /dev/null
+Name: ed
+Version: 1.6
+Release: 1
+License: GPL-3.0+ ; LGPL-2.1+
+Summary: Standard UNIX Line Editor
+Url: http://www.gnu.org/software/ed/
+Group: Productivity/Editors/Other
+Source: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+The standard, old Unix line editor.
+
+%prep
+%setup -q
+sed -i \
+ -e "s/CFLAGS='.*/CFLAGS='%{optflags}'/" \
+ -e "s/CXXFLAGS='.*/CXXFLAGS='%{optflags}'/" \
+ configure
+
+%build
+%{configure} CC="${CC}"
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+%{makeinstall}
+
+%files
+%license COPYING
+%defattr(-,root,root)
+%{_bindir}/%{name}
+%{_bindir}/r%{name}
+%doc %{_infodir}/%{name}.info.gz
+%doc %{_mandir}/man1/%{name}.1.gz
+%doc %{_mandir}/man1/r%{name}.1.gz
+
--- /dev/null
+Name: groff
+Version: 1.21
+Release: 1
+License: GPLv3+ and GFDL and BSC and MIT
+Summary: A document formatting system
+Url: http://groff.ffii.org
+Group: Applications/Publishing
+Source: %{name}-%{version}.tar.gz
+BuildRequires: bison
+BuildRequires: zlib-devel
+Requires: /usr/bin/mktemp
+
+%description
+Groff is a document formatting system. Groff takes standard text and
+formatting commands as input and produces formatted output. The
+created documents can be shown on a display or printed on a printer.
+Groff's formatting commands allow you to specify font type and size,
+bold type, italic type, the number and size of columns on a page, and
+more.
+
+Groff can also be used to format man pages. If you are going to use
+groff with the X Window System, you will also need to install the
+groff-gxditview package.
+
+%package perl
+Summary: Parts of the groff formatting system that require Perl
+Group: Applications/Publishing
+
+%description perl
+The groff-perl package contains the parts of the groff text processor
+package that require Perl. These include the afmtodit font processor
+for creating PostScript font files, the grog utility that can be used
+to automatically determine groff command-line options, and the
+troff-to-ps print filter.
+
+
+
+%prep
+%setup -q
+
+%build
+%configure --enable-multibyte
+make
+
+%install
+mkdir -p %{buildroot}%{_prefix} %{buildroot}%{_infodir}
+%makeinstall manroot=%{_mandir} \
+ bindir=%{_bindir} \
+ mandir=%{_mandir} \
+ prefix=%_usr \
+ exec_prefix=%_usr \
+ sbindir=%_sbindir \
+ sysconfdir=%_sysconfdir \
+ datadir=%_datadir \
+ infodir=/%{_prefix}/info \
+ sysconfdir=%_sysconfdir \
+ includedir=%_includedir \
+ libdir=/%{_libdir} \
+ libexecdir=%_libexecdir \
+ localstatedir=%_var \
+ sharedstatedir=%_sharedstatedir \
+ infodir=%_infodir
+
+#install -m 644 doc/groff.info* %{buildroot}/%{_infodir}
+ln -s s.tmac %{buildroot}%{_datadir}/groff/%{version}/tmac/gs.tmac
+ln -s mse.tmac %{buildroot}%{_datadir}/groff/%{version}/tmac/gmse.tmac
+ln -s m.tmac %{buildroot}%{_datadir}/groff/%{version}/tmac/gm.tmac
+ln -s troff %{buildroot}%{_bindir}/gtroff
+ln -s tbl %{buildroot}%{_bindir}/gtbl
+ln -s pic %{buildroot}%{_bindir}/gpic
+ln -s eqn %{buildroot}%{_bindir}/geqn
+ln -s neqn %{buildroot}%{_bindir}/gneqn
+ln -s refer %{buildroot}%{_bindir}/grefer
+ln -s lookbib %{buildroot}%{_bindir}/glookbib
+ln -s indxbib %{buildroot}%{_bindir}/gindxbib
+ln -s soelim %{buildroot}%{_bindir}/gsoelim
+ln -s soelim %{buildroot}%{_bindir}/zsoelim
+ln -s nroff %{buildroot}%{_bindir}/gnroff
+
+
+find %{buildroot}%{_bindir} -type f -o -type l | \
+ grep -v afmtodit | grep -v grog | grep -v mdoc.samples |\
+ grep -v mmroff |\
+ grep -v gxditview |\
+ sed "s|%{buildroot}||g" | sed "s|\.[0-9]|\.*|g" > groff-files
+
+ln -sf doc.tmac %{buildroot}%{_datadir}/groff/%{version}/tmac/docj.tmac
+# installed, but not packaged in rpm
+mkdir -p %{buildroot}%{_datadir}/groff/%{version}/groffer/
+chmod 755 %{buildroot}%{_libdir}/groff/groffer/version.sh
+mv %{buildroot}%{_libdir}/groff/groffer/* %{buildroot}/%{_datadir}/groff/%{version}/groffer/
+
+
+%remove_docs
+
+%files -f groff-files
+%defattr(-,root,root,-)
+%{_datadir}/groff
+
+%files perl
+%defattr(-,root,root,-)
+%{_bindir}/grog
+%{_bindir}/mmroff
+%{_bindir}/afmtodit
--- /dev/null
+Name: libcap
+Version: 2.22
+Release: 1
+License: BSD-3-Clause ; GPL-2.0
+Summary: Library for Capabilities (linux-privs) Support
+Url: https://sites.google.com/site/fullycapable/
+Group: Base/Libraries
+Source: %{name}-%{version}.tar.bz2
+Source2: baselibs.conf
+BuildRequires: fdupes
+BuildRequires: libattr-devel
+%define debug_package_requires libcap2 = %{version}-%{release}
+
+%description
+Capabilities are a measure to limit the omnipotence of the superuser.
+Currently a program started by root or setuid root has the power to do
+anything. Capabilities (Linux-Privs) provide a more fine-grained access
+control. Without kernel patches, you can use this library to drop
+capabilities within setuid binaries. If you use patches, this can be
+done automatically by the kernel.
+
+%package devel
+License: BSD-3-Clause ; GPL-2.0
+Summary: Development files for libcap
+Group: Development/Libraries
+Requires: glibc-devel
+Requires: libcap = %{version}
+
+%description devel
+Development files (Headers, libraries for static linking, etc) for
+libcap.
+
+libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
+draft 15 capabilities.
+
+Install libcap-devel if you want to develop or compile applications
+using libcap.
+
+%package progs
+License: BSD-3-Clause ; GPL-2.0
+Summary: Libcap utility programs
+Group: Base/File Systems
+
+%description progs
+This package contains utility programs handling capabilities via
+libcap.
+
+%prep
+%setup -q
+
+%build
+# lib=%{_lib} make %{?_smp_mflags} COPTFLAG="%{optflags}"
+export CFLAGS=""
+export FFLAGS=""
+lib=%{_lib} make %{?_smp_mflags} SYSTEM_HEADERS=${STAGING_INCDIR}
+
+%install
+make install DESTDIR=%{buildroot} LIBDIR=%{buildroot}/%{_lib} MANDIR=%{buildroot}%{_mandir} RAISE_SETFCAP=no
+# remove unneeded files
+rm -f %{buildroot}/%{_lib}/*.*a
+# move *.so file to libdir and relink
+rm -f %{buildroot}/%{_lib}/*.so
+mkdir -p %{buildroot}%{_libdir}
+ln -s /%{_lib}/libcap.so.2 %{buildroot}%{_libdir}/libcap.so
+%fdupes -s %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%license License
+%attr(755,root,root) /%{_lib}/libcap.so.*
+
+%files progs
+%defattr(-,root,root)
+%{_mandir}/man1/*
+%{_mandir}/man8/*
+/sbin/*
+
+%files devel
+%defattr(-,root,root)
+%doc License README CHANGELOG
+%{_includedir}/sys/capability.h
+%{_libdir}/*.so
+%{_mandir}/man3/*
+
+%changelog
--- /dev/null
+#%define udev_libdir /usr/lib/udev
+
+Name: libprivilege-control
+Summary: Library to control privilege of application
+Version: 0.0.26.TIZEN
+Release: 1
+Group: System/Security
+License: Apache 2.0
+Source0: %{name}-%{version}.tar.gz
+Source1: %{name}-conf.manifest
+Source2: smack-default-labeling.service
+BuildRequires: cmake
+BuildRequires: pkgconfig(libsmack)
+BuildRequires: pkgconfig(dlog)
+
+%description
+development package of library to control privilege of in-house application
+
+%package devel
+Summary: Control privilege of application (devel)
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Library to control privilege of application (devel)
+
+%package conf
+Summary: Control privilege of application files
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: /usr/bin/chsmack
+
+%description conf
+Library to control privilege of application files
+
+
+%prep
+%setup -q
+
+%build
+export CFLAGS="${CFLAGS} -Wno-implicit-function-declaration"
+%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
+%make_install
+
+mkdir -p %{buildroot}/etc
+mv %{buildroot}/opt/etc/passwd %{buildroot}/etc/passwd
+mv %{buildroot}/opt/etc/group %{buildroot}/etc/group
+
+cp -a %{SOURCE1} %{buildroot}%{_datadir}/
+install -D -d %{buildroot}/etc/rc.d/rc3.d/
+install -D -d %{buildroot}/etc/rc.d/rc4.d/
+ln -sf ../init.d/smack_default_labeling %{buildroot}/etc/rc.d/rc3.d/S45smack_default_labeling
+ln -sf ../init.d/smack_default_labeling %{buildroot}/etc/rc.d/rc4.d/S45smack_default_labeling
+ln -sf ../init.d/smack_rules %{buildroot}/etc/rc.d/rc3.d/S02smack_rules
+ln -sf ../init.d/smack_rules %{buildroot}/etc/rc.d/rc4.d/S02smack_rules
+
+mkdir -p %{buildroot}/usr/lib/systemd/system/basic.target.wants
+install -m 644 %{SOURCE2} %{buildroot}/usr/lib/systemd/system/
+ln -s ../smack-default-labeling.service %{buildroot}/usr/lib/systemd/system/basic.target.wants/
+
+%post
+if [ ! -e "${D}/home/app" ]
+then
+ mkdir -p ${D}/home/app
+fi
+
+if [ ! -e "${D}/home/developer" ]
+then
+ mkdir -p /${D}home/developer
+fi
+
+chown 5000:5000 ${D}/home/app
+chmod 755 ${D}/home/app
+chown 5100:5100 ${D}/home/developer
+chmod 755 ${D}/home/developer
+
+if [ ! -e "${D}/usr/share/privilege-control" ]
+then
+ mkdir -p ${D}/usr/share/privilege-control/
+fi
+
+
+%files
+%{_libdir}/*.so.*
+%{_bindir}/slp-su
+%{_datarootdir}/privilege-control/*
+#%{udev_libdir}/rules.d/*
+#%attr(755,root,root) %{udev_libdir}/uname_env
+%{_datadir}/license/%{name}
+
+%files conf
+/etc/group
+/etc/passwd
+/opt/etc/smack/*
+%attr(755,root,root) /etc/rc.d/*
+/usr/lib/systemd/system/smack-default-labeling.service
+/usr/lib/systemd/system/basic.target.wants/smack-default-labeling.service
+%manifest %{_datadir}/%{name}-conf.manifest
+/opt/dbspace/.privilege_control*.db
+
+%files devel
+%{_includedir}/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
--- /dev/null
+Name: libtcore
+Summary: Telephony-core library
+Version: 0.1.83
+Release: 1
+Group: System/Libraries
+License: Apache
+Source0: libtcore-%{version}.tar.gz
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: cmake
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gudev-1.0)
+
+%description
+Telephony-core library
+
+%package devel
+Summary: Telephony-core library (Development)
+Requires: %{name} = %{version}
+Group: Development/Libraries
+
+%description devel
+Telephony-core library (Development)
+
+%prep
+%setup -q
+
+%build
+%cmake . -DVERSION=%{version}
+make %{?jobs:-j%jobs}
+
+%post
+ldconfig -r ${D}
+
+%postun -p /sbin/ldconfig
+
+%install
+%make_install
+
+%files
+%manifest libtcore.manifest
+%defattr(-,root,root,-)
+%{_libdir}/libtcore*
+/usr/share/license/libtcore
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/pkgconfig/tcore.pc
--- /dev/null
+Name: libtcore
+Summary: Telephony-core library
+Version: 0.1.83
+Release: 1
+Group: System/Libraries
+License: Apache
+Source0: libtcore-%{version}.tar.gz
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: cmake
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gudev-1.0)
+
+%description
+Telephony-core library
+
+%package devel
+Summary: Telephony-core library (Development)
+Requires: %{name} = %{version}
+Group: Development/Libraries
+
+%description devel
+Telephony-core library (Development)
+
+%prep
+%setup -q
+
+%build
+%cmake . -DVERSION=%{version}
+make %{?jobs:-j%jobs}
+
+%post
+/sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%install
+%make_install
+
+%files
+%manifest libtcore.manifest
+%defattr(-,root,root,-)
+%{_libdir}/libtcore*
+/usr/share/license/libtcore
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/pkgconfig/tcore.pc
--- /dev/null
+Name: texinfo
+BuildRequires: automake
+BuildRequires: help2man
+BuildRequires: bzip2-devel
+BuildRequires: libzio-devel
+BuildRequires: ncurses-devel
+BuildRequires: perl-gettext
+BuildRequires: zlib-devel
+Version: 4.13a
+Release: 0
+%global version_t2h 1.82
+%global version_t2r 2.0
+Summary: Tools Needed to Create Documentation from Texinfo Sources
+License: GPL-2.0+ ; GPL-3.0+
+Group: Productivity/Publishing/Texinfo
+Url: http://www.texinfo.org
+Provides: texi2html = %{version_t2h}
+Provides: texi2roff = %{version_t2r}
+Source: ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.bz2
+Source1: http://download.savannah.nongnu.org/releases/texi2html/texi2html-%{version_t2h}.tar.bz2
+# texinfo.org: the domain is expired.
+# http://texinfo.org/texi2roff/texi2roff-%{version_t2r}.tar.bz2
+Source2: texi2roff-%{version_t2r}.tar.bz2
+Source10: info-dir
+Patch: texinfo-4.12.dif
+Patch1: texi2html-1.78.dif
+Patch2: texi2roff-2.0.dif
+Patch3: texi2roff.patch.bz2
+Patch4: texinfo-4.12-zlib.patch
+Patch5: texinfo-4.8-echo.patch
+Patch6: texi2roff-2.0-gcc4.patch
+Patch7: texinfo-4.13a-bug640417.diff
+Patch8: texinfo-4.13a-bug713517.diff
+Patch9: automake-1.12.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+Texinfo is a documentation system that uses a single source file to
+produce both online information and printed output. Using Texinfo, you
+can create a printed document with the normal features of a book,
+including chapters, sections, cross-references, and indices. From the
+same Texinfo source file, you can create a menu-driven, online info
+file with nodes, menus, cross-references, and indices using the included
+makeinfo tool.
+
+Aggregated with texinfo in this package is texi2html and texi2roff.
+
+
+Authors:
+--------
+ Andreas Schwab <schwab@suse.de>
+ Brian Fox <bfox@gnu.org>
+ Charles Hannum <mycroft@gnu.org>
+ Daniel Hagerty <hag@gnu.org>
+ David J. MacKenzie <djm@gnu.org>
+ Eli Zaretskii <eliz@is.elta.co.il>
+ Jim Meyering <meyering@na-net.ornl.gov>
+ Karl Berry <karl@gnu.org>
+ Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ Noah Friedman <friedman@prep.org>
+ Richard Stallman <rms@gnu.org>
+ Robert J. Chassell <bob@gnu.org>
+ Roland McGrath <roland@gnu.org>
+
+%package -n info
+Summary: A Stand-Alone Terminal-Based Info Browser
+License: GPL-3.0+
+Group: Productivity/Publishing/Texinfo
+PreReq: bash zlib libzio
+
+%description -n info
+Info is a terminal-based program for reading documentation of computer
+programs in the Info format. The GNU Project distributes most of its
+on-line manuals in the Info format, so you need a program called "Info
+reader" to read the manuals.
+
+
+
+Authors:
+--------
+ Andreas Schwab <schwab@suse.de>
+ Brian Fox <bfox@gnu.org>
+ Charles Hannum <mycroft@gnu.org>
+ Daniel Hagerty <hag@gnu.org>
+ David J. MacKenzie <djm@gnu.org>
+ Eli Zaretskii <eliz@is.elta.co.il>
+ Jim Meyering <meyering@na-net.ornl.gov>
+ Karl Berry <karl@gnu.org>
+ Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ Noah Friedman <friedman@prep.org>
+ Richard Stallman <rms@gnu.org>
+ Robert J. Chassell <bob@gnu.org>
+ Roland McGrath <roland@gnu.org>
+
+%package -n makeinfo
+Summary: Translate Texinfo documents to info format
+License: GPL-3.0+
+Group: Productivity/Publishing/Texinfo
+Provides: texinfo:/usr/bin/makeinfo
+Suggests: texinfo
+
+%description -n makeinfo
+Makeinfo translates Texinfo source documentation to various other
+formats, by default Info files suitable for reading online with Emacs
+or standalone GNU Info.
+
+%prep
+rm -rf texi2html-%{version_t2h} texi2roff-%{version_t2r}
+%setup -q -b 1 -b 2 -n texinfo-4.13
+%patch4 -p0 -b .zlib
+%patch5 -p0 -b .echo
+%patch7 -p1 -b .size_t
+%patch8 -p0 -b .egrep
+%patch9 -p1
+%patch -p0
+pushd ../texi2html-%{version_t2h}
+%patch1 -p0
+popd
+pushd ../texi2roff-%{version_t2r}
+%patch3 -p0 -b .Bader
+%patch2 -p0
+%patch6 -p1
+popd
+
+%build
+ HOST=%{_target_cpu}-tizen-linux
+ CFLAGS="$RPM_OPT_FLAGS -pipe"
+ LDFLAGS=""
+ CC=gcc
+ export CFLAGS LDFLAGS CC
+ export LD_AS_NEEDED=0
+ AUTOPOINT=true autoreconf -fi
+ ./configure --build=$HOST \
+ --prefix=%{_prefix} \
+ --mandir=%{_mandir} \
+ --datadir=%{_datadir} \
+ --infodir=%{_infodir} \
+ --without-included-gettext \
+ --enable-nls
+ PATH=${PWD}/makeinfo:${PWD}/util:$PATH
+ export PATH
+ make %{?_smp_mflags};
+pushd ../texi2html-%{version_t2h}
+ ./configure --build=$HOST \
+ --prefix=%{_prefix} \
+ --mandir=%{_mandir} \
+ --datadir=%{_datadir} \
+ --infodir=%{_infodir} \
+ --without-included-gettext \
+ --enable-nls
+ make %{?_smp_mflags};
+popd
+pushd ../texi2roff-%{version_t2r}
+ rm -f texi2roff
+ make %{?_smp_mflags};
+popd
+
+%install
+ export LD_AS_NEEDED=0
+ make DESTDIR=%{buildroot} \
+ infodir=%{_infodir} \
+ htmldir=%{_defaultdocdir}/texi2html install
+ mkdir -p %{buildroot}%{_buildPrefix}/sbin
+ mv %{buildroot}%{_bindir}/install-info %{buildroot}%{_buildPrefix}/sbin/
+ ln -sf ../../sbin/install-info %{buildroot}%{_bindir}/install-info
+ mkdir -p %{buildroot}%{_infodir}
+ install -m 644 %{S:10} %{buildroot}%{_infodir}/dir
+pushd ../texi2html-%{version_t2h}
+ make DESTDIR=%{buildroot} \
+ infodir=%{_infodir} \
+ texinfohtmldir=%{_defaultdocdir}/texi2html install
+ install -m 644 README %{buildroot}%{_defaultdocdir}/texi2html/
+ install -m 644 NEWS %{buildroot}%{_defaultdocdir}/texi2html/
+ install -m 644 COPYING %{buildroot}%{_defaultdocdir}/texi2html/
+popd
+pushd ../texi2roff-%{version_t2r}
+ doc=%{_defaultdocdir}/texi2roff
+ install -m 755 texi2roff %{buildroot}%{_bindir}/
+ install -m 755 texi2index %{buildroot}%{_bindir}/
+ install -m 644 texi2roff.1 %{buildroot}%{_mandir}/man1/
+ mkdir -p %{buildroot}${doc}
+ install -m 644 Readme %{buildroot}${doc}
+ install -m 644 copyright %{buildroot}${doc}
+popd
+%find_lang %name %{name}.lang
+
+%clean
+test -n "%{buildroot}" && rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root)
+%dir %{_defaultdocdir}/texi2html
+%dir %{_defaultdocdir}/texi2roff
+%doc ABOUT-NLS AUTHORS COPYING INTRODUCTION NEWS README TODO
+%doc doc/texinfo.tex doc/txi-*.tex
+%doc %{_defaultdocdir}/texi2html/*
+%doc %{_defaultdocdir}/texi2roff/*
+%{_bindir}/pdftexi*
+%{_bindir}/texi*
+%{_infodir}/texinfo*.gz
+%{_infodir}/texi2html*.gz
+%{_mandir}/man1/pdftexi2dvi.1.gz
+%{_mandir}/man1/texi*.1.gz
+%{_mandir}/man5/texinfo.5.gz
+%{_datadir}/texinfo
+%{_datadir}/texi2html
+
+%files -n makeinfo -f %{name}.lang
+%defattr(-,root,root)
+%{_bindir}/makeinfo
+%{_mandir}/man1/makeinfo.1.gz
+
+%files -n info
+%defattr(-,root,root)
+%config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir
+/sbin/install-info
+%{_bindir}/install-info
+%{_bindir}/info
+%{_bindir}/infokey
+%{_infodir}/info.info*
+%{_infodir}/info-stnd.info*
+%{_mandir}/man1/info.1*
+%{_mandir}/man1/infokey.1*
+%{_mandir}/man1/install-info.1*
+%{_mandir}/man5/info.5*
+
+%changelog
--- /dev/null
+%define keepstatic 1
+Name: zlib
+Provides: libz
+Obsoletes: libz
+Version: 1.2.7
+Release: 0
+Summary: Data Compression Library
+License: Zlib
+Group: Base/Libraries
+Url: http://www.zlib.net/
+# git://github.com/kaffeemonster/zlib.git (branch adler32_vec)
+Source: http://zlib.net/zlib-%{version}.tar.bz2
+Source1: LICENSE
+Source2: baselibs.conf
+BuildRequires: pkgconfig
+
+%description
+ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt
+(deflate format) and rfc1952.txt (gzip format). These documents are
+also available in other formats from
+ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html.
+
+%package devel
+Summary: Include Files and Libraries mandatory for Development
+Group: Development/Libraries
+Requires: glibc-devel
+Requires: zlib = %{version}
+Provides: libz:/usr/include/zlib.h
+
+%description devel
+This package contains all necessary include files and libraries needed
+to develop applications that require the provided includes and
+libraries.
+
+%package devel-static
+Summary: Include Files and Libraries mandatory for Development
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}
+Provides: %{name}-devel:%{_libdir}/libz.a
+
+%description devel-static
+This package contains all necessary include files and libraries needed
+to develop applications that require the provided includes and
+libraries.
+
+%package -n minizip
+Summary: Minizip manipulates files from a .zip archive
+Group: System/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description -n minizip
+Minizip manipulates files from a .zip archive.
+
+%package -n minizip-devel
+Summary: Development files for the minizip library
+Group: Development/Libraries
+Requires: minizip = %{version}-%{release}
+
+%description -n minizip-devel
+This package contains the libraries and header files needed for
+developing applications which use minizip.
+
+%prep
+%setup -q
+
+%build
+export LDFLAGS="-Wl,-z,relro,-z,now"
+%define do_profiling 0
+%if %{do_profiling}
+profiledir=$(mktemp -d)
+trap "rm -rf $profiledir" EXIT
+CC="%__cc" ./configure --shared --prefix=%{_prefix} --libdir=/%{_lib}
+make CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir" %{?_smp_mflags}
+time make check
+make clean
+make CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir" %{?_smp_mflags}
+%else
+export CFLAGS="%{optflags}"
+CC="%__cc" ./configure --shared --prefix=%{_prefix} --libdir=/%{_lib}
+make %{?_smp_mflags}
+%endif
+
+cd contrib/minizip
+%reconfigure
+make %{?_smp_mflags}
+
+%check
+time make check
+
+%install
+#mkdir -p %{buildroot}%{_mandir}/man3
+mkdir -p %{buildroot}%{_libdir}
+%make_install
+ln -s -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libz.so) %{buildroot}%{_libdir}/libz.so
+rm -v %{buildroot}/%{_lib}/libz.so
+# static lib
+mv %{buildroot}/%{_lib}/libz.a %{buildroot}%{_libdir}
+# Move .pc file to %{_libdir}
+mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
+# manpage
+install -m 644 zlib.3 %{buildroot}%{_mandir}/man3
+install -m 644 zutil.h %{buildroot}%{_includedir}
+
+pushd contrib/minizip
+make install DESTDIR=$RPM_BUILD_ROOT
+rm -rf %{buildroot}%{_libdir}/libminizip.a
+rm -rf %{buildroot}%{_libdir}/libminizip.la
+popd
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+/%{_lib}/libz.so.1.2.*
+/%{_lib}/libz.so.1
+
+%files devel
+%defattr(-,root,root)
+%doc README
+%{_mandir}/man3/zlib.3.gz
+%{_includedir}/zlib.h
+%{_includedir}/zconf.h
+%{_includedir}/zutil.h
+%{_libdir}/libz.so
+%{_libdir}/pkgconfig/zlib.pc
+
+%files devel-static
+%defattr(-,root,root)
+%{_libdir}/libz.a
+
+%files -n minizip
+%{_libdir}/libminizip.so.*
+
+%files -n minizip-devel
+%dir %{_includedir}/minizip
+%{_includedir}/minizip/*.h
+%{_libdir}/libminizip.so
+%{_libdir}/pkgconfig/minizip.pc
+
+%changelog