From 0cd792057aa5dcf7e2b724349b83ded6f1a5ec8a Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Tue, 25 Jun 2013 17:36:56 +0200 Subject: [PATCH] - create new rpm macro. --- .../rpm_tizen_macro/etc/macros.desktop-file-utils | 38 + .../rpm_tizen_macro/etc/macros.fdupes | 23 + .../rpm_tizen_macro/etc/macros.perl | 119 ++ .../rpm_tizen_macro/etc/macros.systemd | 80 ++ .../etc/macros.update-desktop-files | 6 + .../rpm_tizen_macro/lib/brp-compress | 55 + .../rpm_tizen_macro/lib/brp-python-bytecompile | 75 ++ .../rpm_tizen_macro/lib/brp-python-hardlink | 19 + .../rpm_tizen_macro/lib/brp-strip | 21 + .../rpm_tizen_macro/lib/brp-strip-shared | 25 + .../rpm_tizen_macro/lib/brp-tizen | 13 + .../rpm_tizen_macro/lib/check-buildroot | 37 + .../rpm_tizen_macro/lib/check-files | 29 + .../rpm_tizen_macro/lib/check-prereqs | 17 + .../rpm_tizen_macro/lib/check-rpaths | 28 + .../rpm_tizen_macro/lib/check-rpaths-worker | 156 +++ .../rpm_tizen_macro/lib/debugedit | Bin 0 -> 37520 bytes .../rpm_tizen_macro/lib/debuginfo.prov | 12 + .../rpm_tizen_macro/lib/desktop-file.prov | 23 + prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/elfdeps | Bin 0 -> 17532 bytes .../rpm_tizen_macro/lib/fileattrs/debuginfo.attr | 2 + .../rpm_tizen_macro/lib/fileattrs/desktop.attr | 2 + .../rpm_tizen_macro/lib/fileattrs/elf.attr | 5 + .../rpm_tizen_macro/lib/fileattrs/elflib.attr | 4 + .../rpm_tizen_macro/lib/fileattrs/firmware.attr | 2 + .../rpm_tizen_macro/lib/fileattrs/font.attr | 3 + .../rpm_tizen_macro/lib/fileattrs/ksyms.attr | 4 + .../rpm_tizen_macro/lib/fileattrs/libtool.attr | 3 + .../rpm_tizen_macro/lib/fileattrs/mono.attr | 3 + .../rpm_tizen_macro/lib/fileattrs/ocaml.attr | 3 + .../rpm_tizen_macro/lib/fileattrs/perl.attr | 4 + .../rpm_tizen_macro/lib/fileattrs/perllib.attr | 4 + .../rpm_tizen_macro/lib/fileattrs/pkgconfig.attr | 3 + .../rpm_tizen_macro/lib/fileattrs/python.attr | 4 + .../rpm_tizen_macro/lib/fileattrs/script.attr | 3 + .../rpm_tizen_macro/lib/fileattrs/sysvinit.attr | 2 + .../rpm_tizen_macro/lib/find-debuginfo.sh | 439 ++++++++ .../rpm_tizen_macro/lib/find-lang.sh | 264 +++++ .../rpm_tizen_macro/lib/find-provides | 104 ++ .../rpm_tizen_macro/lib/find-provides.ksyms | 41 + .../rpm_tizen_macro/lib/find-requires | 155 +++ .../rpm_tizen_macro/lib/find-supplements | 14 + .../rpm_tizen_macro/lib/find-supplements.ksyms | 117 ++ .../rpm_tizen_macro/lib/firmware.prov | 8 + .../rpm_tizen_macro/lib/fontconfig.prov | 24 + .../rpm_tizen_macro/lib/libtooldeps.sh | 42 + prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros | 1187 ++++++++++++++++++++ .../rpm_tizen_macro/lib/macros.perl | 12 + .../rpm_tizen_macro/lib/macros.php | 9 + .../rpm_tizen_macro/lib/macros.python | 18 + .../rpm_tizen_macro/lib/mono-find-provides | 42 + .../rpm_tizen_macro/lib/mono-find-requires | 86 ++ .../rpm_tizen_macro/lib/ocaml-find-provides.sh | 56 + .../rpm_tizen_macro/lib/ocaml-find-requires.sh | 68 ++ .../rpm_tizen_macro/lib/perl.prov | 202 ++++ prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.req | 287 +++++ .../rpm_tizen_macro/lib/pkgconfigdeps.sh | 57 + .../lib/platform/alpha-linux/macros | 73 ++ .../lib/platform/alphaev5-linux/macros | 73 ++ .../lib/platform/alphaev56-linux/macros | 73 ++ .../lib/platform/alphaev6-linux/macros | 73 ++ .../lib/platform/alphaev67-linux/macros | 73 ++ .../lib/platform/alphapca56-linux/macros | 73 ++ .../lib/platform/amd64-linux/macros | 73 ++ .../lib/platform/armv3l-linux/macros | 73 ++ .../lib/platform/armv4b-linux/macros | 73 ++ .../lib/platform/armv4l-linux/macros | 73 ++ .../lib/platform/armv5tejl-linux/macros | 73 ++ .../lib/platform/armv5tel-linux/macros | 73 ++ .../lib/platform/armv6l-linux/macros | 73 ++ .../lib/platform/armv7hl-linux/macros | 73 ++ .../lib/platform/armv7l-linux/macros | 73 ++ .../lib/platform/athlon-linux/macros | 73 ++ .../lib/platform/geode-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/i386-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/i486-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/i586-linux/macros | 71 ++ .../rpm_tizen_macro/lib/platform/i686-linux/macros | 71 ++ .../lib/platform/ia32e-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/ia64-linux/macros | 73 ++ .../lib/platform/noarch-linux/macros | 67 ++ .../lib/platform/pentium3-linux/macros | 73 ++ .../lib/platform/pentium4-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/ppc-linux/macros | 73 ++ .../lib/platform/ppc32dy4-linux/macros | 73 ++ .../lib/platform/ppc64-linux/macros | 73 ++ .../lib/platform/ppc64iseries-linux/macros | 73 ++ .../lib/platform/ppc64p7-linux/macros | 73 ++ .../lib/platform/ppc64pseries-linux/macros | 73 ++ .../lib/platform/ppc8260-linux/macros | 73 ++ .../lib/platform/ppc8560-linux/macros | 73 ++ .../lib/platform/ppciseries-linux/macros | 73 ++ .../lib/platform/ppcpseries-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/s390-linux/macros | 73 ++ .../lib/platform/s390x-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/sh-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/sh3-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/sh4-linux/macros | 73 ++ .../rpm_tizen_macro/lib/platform/sh4a-linux/macros | 73 ++ .../lib/platform/sparc-linux/macros | 73 ++ .../lib/platform/sparc64-linux/macros | 73 ++ .../lib/platform/sparc64v-linux/macros | 73 ++ .../lib/platform/sparcv8-linux/macros | 73 ++ .../lib/platform/sparcv9-linux/macros | 73 ++ .../lib/platform/sparcv9v-linux/macros | 73 ++ .../lib/platform/x86_64-linux/macros | 73 ++ .../rpm_tizen_macro/lib/pythondeps.sh | 32 + prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpm.supp | 38 + prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmdeps | Bin 0 -> 13080 bytes .../rpm_tizen_macro/lib/rpmpopt-4.11.0.1 | 222 ++++ prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmrc | 532 +++++++++ .../rpm_tizen_macro/lib/rpmrc_i586 | 532 +++++++++ .../rpm_tizen_macro/lib/script.req | 9 + prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/tgpg | 36 + .../rpm_tizen_macro/lib/tizen/find-docs.sh | 33 + .../rpm_tizen_macro/lib/tizen/macros | 1 + .../rpm_tizen_macro/lib/tizen_macros | 306 +++++ .../rpm_tizen_macro/user/.rpmmacros | 63 ++ prometa-Tizen_ivi_3.0/rpm_tizen_macro/user/.rpmrc | 1 + prometa-Tizen_ivi_3.0/rpm_tizen_macro/yocto/macro | 2 + 120 files changed, 9433 insertions(+) create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.desktop-file-utils create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.fdupes create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.perl create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.systemd create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.update-desktop-files create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-compress create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-bytecompile create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-hardlink create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip-shared create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-tizen create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-buildroot create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-files create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-prereqs create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths-worker create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debugedit create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debuginfo.prov create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/desktop-file.prov create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/elfdeps create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/debuginfo.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/desktop.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elf.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elflib.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/firmware.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/font.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ksyms.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/libtool.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/mono.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ocaml.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perl.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perllib.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/pkgconfig.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/python.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/script.attr create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/sysvinit.attr create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-debuginfo.sh create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-lang.sh create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides.ksyms create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-requires create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements.ksyms create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/firmware.prov create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fontconfig.prov create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/libtooldeps.sh create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.perl create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.php create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.python create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-provides create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-requires create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-provides.sh create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-requires.sh create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.prov create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.req create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pkgconfigdeps.sh create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alpha-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev5-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev56-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev6-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev67-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphapca56-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/amd64-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv3l-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4b-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4l-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tejl-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tel-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv6l-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7hl-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7l-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/athlon-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/geode-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i386-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i486-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i586-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i686-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia32e-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia64-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/noarch-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium3-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium4-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc32dy4-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64iseries-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64p7-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64pseries-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8260-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8560-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppciseries-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppcpseries-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390x-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh3-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4a-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64v-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv8-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9v-linux/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/x86_64-linux/macros create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pythondeps.sh create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpm.supp create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmdeps create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmpopt-4.11.0.1 create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmrc create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmrc_i586 create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/script.req create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/tgpg create mode 100755 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/tizen/find-docs.sh create mode 120000 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/tizen/macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/tizen_macros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/user/.rpmmacros create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/user/.rpmrc create mode 100644 prometa-Tizen_ivi_3.0/rpm_tizen_macro/yocto/macro diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.desktop-file-utils b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.desktop-file-utils new file mode 100644 index 0000000..d65aa87 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.desktop-file-utils @@ -0,0 +1,38 @@ +# RPM macros for packages installing desktop files +# +### +# +# When a package installs a desktop file, it should use both macros: +# +# - %desktop_database_post in %post +# - %desktop_database_postun in %postun +# +# Note that these macros can optionally take as argument the directory +# where the desktop file is installed. If no argument is passed, then +# %{_datadir}/applications will be used (which is where applications +# usually install their desktop file). +# +### + +# On install, update the desktop database +%desktop_database_post() \ +if test -x %{_bindir}/update-desktop-database; then \ +%if "x%1" != "x%%1" \ + %{_bindir}/update-desktop-database --quiet "%1" || true \ +%else \ + %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || true \ +%endif \ +fi + +# On uninstall, update the desktop database. Note: we ignore upgrades (already +# handled in %post of the new package). +%desktop_database_postun() \ +if [ $1 -eq 0 ]; then \ + if test -x %{_bindir}/update-desktop-database; then \ +%if "x%1" != "x%%1" \ + %{_bindir}/update-desktop-database --quiet "%1" || true \ +%else \ + %{_bindir}/update-desktop-database --quiet "%{_datadir}/applications" || true \ +%endif \ + fi \ +fi diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.fdupes b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.fdupes new file mode 100644 index 0000000..e99f1f2 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.fdupes @@ -0,0 +1,23 @@ + +%fdupes(s) \ + _target=""; \ + _symlinks=0; \ + %{-s:_symlinks=1;} \ + fdupes -q -n -r %1 | \ + while read _file; do \ + if test -z "$_target" ; then \ + _target="$_file"; \ + else \ + if test -z "$_file" ; then \ + _target=""; \ + continue ; \ + fi ; \ + if test "$_symlinks" = 1; then \ + ln -sf "${_target#%{buildroot}}" "$_file"; \ + else \ + ln -f "$_target" "$_file"; \ + fi ;\ + fi ; \ + done \ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.perl b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.perl new file mode 100644 index 0000000..fd12b5e --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.perl @@ -0,0 +1,119 @@ +# macros.perl file +# macros for perl module building. handle with care. + +# Useful perl macros (from Artur Frysiak ) +# +%perl_sitearch %(eval "`%{__perl} -V:installsitearch`"; echo $installsitearch) +%perl_sitelib %(eval "`%{__perl} -V:installsitelib`"; echo $installsitelib) +%perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) +%perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) +%perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib) +%perl_privlib %(eval "`%{__perl} -V:installprivlib`"; echo $installprivlib) + +# More useful perl macros (from Raul Dias ) +# +%perl_version %(perl -V:version | sed "s!.*='!!;s!'.*!!") +%perl_man1ext %(perl -V:man1ext | sed "s!.*='!!;s!'.*!!") +%perl_man3ext %(perl -V:man3ext | sed "s!.*='!!;s!'.*!!") +%perl_man1dir %(perl -V:man1dir | sed "s!.*='!!;s!'.*!!") +%perl_man3dir %(perl -V:man3dir | sed "s!.*='!!;s!'.*!!") +%perl_installman1dir %(perl -V:installman1dir | sed "s!.*='!!;s!'.*!!") +%perl_installman3dir %(perl -V:installman3dir | sed "s!.*='!!;s!'.*!!") +%perl_installarchlib %(perl -V:installarchlib | sed "s!.*='!!;s!'.*!!") +%perl_prefix %{buildroot} + +# suse specific macros +# +%perl_make_install make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_process_packlist(n:) \ + if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto; then \ + find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm \ + if [ %{_target_cpu} == noarch ]; then \ + find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rmdir \ + fi \ + fi \ + rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \ + %nil + +# macro: perl_gen_filelist (from Christian ) +# do the rpmlint happy filelist generation +# with %dir in front of directories +# +%perl_gen_filelist(n)\ +FILES=%{name}.files\ +# fgen_dir func\ +# IN: dir\ +fgen_dir(){\ +%{__cat} >> $FILES << EOF\ +%dir ${1}\ +EOF\ +}\ +# fgen_file func\ +# IN: file\ +fgen_file(){\ +%{__cat} >> $FILES << EOF\ +${1}\ +EOF\ +}\ +# check for files in %{perl_vendorlib}\ +RES=`find ${RPM_BUILD_ROOT}%{perl_vendorlib} -maxdepth 1 -type f`\ +if [ -n "$RES" ]; then\ + for file in $RES; do\ + fgen_file "%{perl_vendorlib}/$(basename ${file})"\ + done\ +fi\ +\ +# get all dirs into array\ +base_dir="${RPM_BUILD_ROOT}%{perl_vendorlib}/"\ +for dir in `find ${base_dir} -type d | sort`; do\ + if [ "$dir" = "${base_dir}" ]; then\ + continue\ + else\ + el=`echo $dir | %{__awk} -F"${base_dir}" '{print $2}'`\ + all_dir=(${all_dir[@]} $el)\ + fi\ +done\ +\ +# build filelist\ +for i in ${all_dir[@]}; do\ + # do not add "dir {perl_vendorlib/arch}/auto", included in perl package\ + if [ "${i}" = "auto" ]; then\ + continue\ + fi\ + if [ "%{perl_vendorlib}/${i}" = "%{perl_vendorarch}/auto" ]; then\ + continue\ + else\ + if [ -d ${base_dir}/${i} ]; then\ + RES=`find "${base_dir}/${i}" -maxdepth 1 -type f`\ + if [ -n "$RES" ]; then\ + fgen_dir "%{perl_vendorlib}/${i}"\ + for file in $RES; do\ + fgen_file "%{perl_vendorlib}/${i}/$(basename ${file})"\ + done\ + else\ + fgen_dir "%{perl_vendorlib}/${i}"\ + fi\ + fi\ + fi\ +done\ +# add man pages\ +# if exist :)\ +if [ -d "${RPM_BUILD_ROOT}%{_mandir}" ]; then\ +fgen_file "%{_mandir}/man?/*"\ +fi\ +\ +# add packlist file\ +# generated fom perllocal.pod\ +if [ -f "${RPM_BUILD_ROOT}/var/adm/perl-modules/%{name}" ]; then\ + fgen_file "/var/adm/perl-modules/%{name}"\ +fi\ +\ +# check for files in %{_bindir}\ +if [ -d ${RPM_BUILD_ROOT}%{_bindir} ]; then\ + RES=`find "${RPM_BUILD_ROOT}%{_bindir}" -maxdepth 1 -type f`\ + if [ -n "$RES" ]; then\ + for file in $RES; do\ + fgen_file "%{_bindir}/$(basename ${file})"\ + done\ + fi\ +fi diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.systemd b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.systemd new file mode 100644 index 0000000..8aeafae --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.systemd @@ -0,0 +1,80 @@ +# -*- Mode: makefile; indent-tabs-mode: t -*- */ +# +# This file is part of systemd. +# +# Copyright 2012 Lennart Poettering +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# systemd is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with systemd; If not, see . + +# RPM macros for packages installing systemd unit files + +%_unitdir /usr/lib/systemd/system +%_unitdir_user /usr/lib/systemd/user +%_presetdir /usr/lib/systemd/system-preset +%_udevhwdbdir /usr/lib/udev/hwdb.d +%_udevrulesdir /usr/lib/udev/rules.d +%_journalcatalogdir /usr/lib/systemd/catalog +%_tmpfilesdir /usr/lib/tmpfiles.d +%_sysctldir /usr/lib/sysctl.d + +%systemd_requires \ +Requires(post): systemd \ +Requires(preun): systemd \ +Requires(postun): systemd \ +%{nil} + +%systemd_post() \ +if [ $1 -eq 1 ] ; then \ + # Initial installation \ + /usr/bin/systemctl preset %{?*} >/dev/null 2>&1 || : \ +fi \ +%{nil} + +%systemd_preun() \ +if [ $1 -eq 0 ] ; then \ + # Package removal, not upgrade \ + /usr/bin/systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \ + /usr/bin/systemctl stop %{?*} > /dev/null 2>&1 || : \ +fi \ +%{nil} + +%systemd_postun() \ +/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \ +%{nil} + +%systemd_postun_with_restart() \ +/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \ +if [ $1 -ge 1 ] ; then \ + # Package upgrade, not uninstall \ + /usr/bin/systemctl try-restart %{?*} >/dev/null 2>&1 || : \ +fi \ +%{nil} + +%udev_hwdb_update() \ +/usr/bin/udevadm hwdb --update >/dev/null 2>&1 || : \ +%{nil} + +%udev_rules_update() \ +/usr/bin/udevadm control --reload >/dev/null 2>&1 || : \ +%{nil} + +%journal_catalog_update() \ +/usr/bin/journalctl --update-catalog >/dev/null 2>&1 || : \ +%{nil} + + +%install_service() \ +mkdir -p %{buildroot}/%{_unitdir}/%{1} \ +ln -s ../%{2} %{buildroot}/%{_unitdir}/%{1}/%{2} \ +%{nil} diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.update-desktop-files b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.update-desktop-files new file mode 100644 index 0000000..88e8c36 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/etc/macros.update-desktop-files @@ -0,0 +1,6 @@ +# macro: %suse_update_desktop_file +# Used to add easily a category to .desktop files according to XDG +# standard. +%tizen_update_desktop_file(cinrud:D:N:C:G:) \ + /usr/lib/rpm/tizen_update_desktop_file.sh %{**} || exit 1 \ + %nil diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-compress b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-compress new file mode 100755 index 0000000..247779e --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-compress @@ -0,0 +1,55 @@ +#!/bin/sh + +# If using normal root, avoid changing anything. +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +cd "$RPM_BUILD_ROOT" + +# Compress man pages +COMPRESS="gzip -9 -n" +COMPRESS_EXT=.gz + +for d in ./usr/man/man* ./usr/man/*/man* ./usr/info \ + ./usr/share/man/man* ./usr/share/man/*/man* ./usr/share/info \ + ./usr/kerberos/man ./usr/X11R6/man/man* ./usr/lib/perl5/man/man* \ + ./usr/share/doc/*/man/man* ./usr/lib/*/man/man* +do + [ -d $d ] || continue + for f in `find $d -type f ! -name dir` + do + [ -f "$f" ] || continue + + case "$f" in + *.gz|*.Z) gunzip -f $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;; + *.bz2) bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;; + *.xz|*.lzma) unxz -f $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;; + *) b=$f;; + esac + + $COMPRESS $b /dev/null || { + inode=`ls -i $b | awk '{ print $1 }'` + others=`find $d -type f -inum $inode` + if [ -n "$others" ]; then + for afile in $others ; do + [ "$afile" != "$b" ] && rm -f $afile + done + $COMPRESS -f $b + for afile in $others ; do + [ "$afile" != "$b" ] && ln $b$COMPRESS_EXT $afile$COMPRESS_EXT + done + else + $COMPRESS -f $b + fi + } + done + + for f in `find $d -type l` + do + l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//'` + rm -f $f + b=`echo $f | sed -e 's/\.\(gz\|Z\|bz2\|xz\|lzma\)$//'` + ln -sf $l$COMPRESS_EXT $b$COMPRESS_EXT + done +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-bytecompile b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-bytecompile new file mode 100755 index 0000000..333ef94 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-bytecompile @@ -0,0 +1,75 @@ +#!/bin/bash +errors_terminate=$2 + +# If using normal root, avoid changing anything. +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +# If we don't have a python interpreter, avoid changing anything. +default_python=${1:-/usr/bin/python} +if [ ! -x "$default_python" ]; then + exit 0 +fi + +# Figure out how deep we need to descend. We could pick an insanely high +# number and hope it's enough, but somewhere, somebody's sure to run into it. +depth=`(find "$RPM_BUILD_ROOT" -type f -name "*.py" -print0 ; echo /) | \ + xargs -0 -n 1 dirname | sed 's,[^/],,g' | sort -u | tail -n 1 | wc -c` +if [ -z "$depth" -o "$depth" -le "1" ]; then + exit 0 +fi + +# .pyc/.pyo files embed a "magic" value, identifying the ABI version of Python +# bytecode that they are for. +# +# The files below RPM_BUILD_ROOT could be targetting multiple versions of +# python (e.g. a single build that emits several subpackages e.g. a +# python26-foo subpackage, a python31-foo subpackage etc) +# +# Support this by assuming that below each /usr/lib/python$VERSION/, all +# .pyc/.pyo files are to be compiled for /usr/bin/python$VERSION. +# +# For example, below /usr/lib/python2.6/, we're targetting /usr/bin/python2.6 +# and below /usr/lib/python3.1/, we're targetting /usr/bin/python3.1 + +shopt -s nullglob +for python_libdir in "$RPM_BUILD_ROOT"/usr/lib{,64}/python[0-9].[0-9]/ ; +do + python_binary=/usr/bin/$(basename $python_libdir) + real_libdir=${python_libdir/$RPM_BUILD_ROOT/} + echo "Bytecompiling .py files below $python_libdir using $python_binary" + + # Generate normal (.pyc) byte-compiled files. + $python_binary -c 'import compileall, sys; sys.exit(not compileall.compile_dir("'"$python_libdir"'", '"$depth"', "'"$real_libdir"'", force=1, quiet=1))' + if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then + # One or more of the files had a syntax error + exit 1 + fi + + # Generate optimized (.pyo) byte-compiled files. + $python_binary -O -c 'import compileall, sys; sys.exit(not compileall.compile_dir("'"$python_libdir"'", '"$depth"', "'"$real_libdir"'", force=1, quiet=1))' + if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then + # One or more of the files had a syntax error + exit 1 + fi +done + + +# Handle other locations in the filesystem using the default python +# implementation: + +# Generate normal (.pyc) byte-compiled files. +$default_python -c 'import compileall, re, sys; sys.exit (not compileall.compile_dir("'"$RPM_BUILD_ROOT"'", '"$depth"', "/", 1, re.compile(r"'"/bin/|/sbin/|/usr/lib(64)?/python[0-9]\.[0-9]"'"), quiet=1))' +if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then + # One or more of the files had a syntax error + exit 1 +fi + +# Generate optimized (.pyo) byte-compiled files. +$default_python -O -c 'import compileall, re, sys; sys.exit(not compileall.compile_dir("'"$RPM_BUILD_ROOT"'", '"$depth"', "/", 1, re.compile(r"'"/bin/|/sbin/|/usr/lib(64)?/python[0-9]\.[0-9]"'"), quiet=1))' > /dev/null +if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then + # One or more of the files had a syntax error + exit 1 +fi +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-hardlink b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-hardlink new file mode 100755 index 0000000..f887199 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-python-hardlink @@ -0,0 +1,19 @@ +#!/bin/sh + +# If using normal root, avoid changing anything. +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +# Hardlink identical *.pyc and *.pyo, originally from PLD's rpm-build-macros +# Modified to use sha1sum instead of cmp to avoid a diffutils dependency. +find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do + pyo="${pyc%c}o" + if [ -f "$pyo" ] ; then + csha="$(sha1sum -b "$pyc" | cut -d' ' -f 1)" && \ + osha="$(sha1sum -b "$pyo" | cut -d' ' -f 1)" && \ + if [ "$csha" = "$osha" ] ; then + ln -f "$pyc" "$pyo" + fi + fi +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip new file mode 100755 index 0000000..20e7c50 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip @@ -0,0 +1,21 @@ +#!/bin/sh +# If using normal root, avoid changing anything. +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +STRIP=${1:-strip} + +case `uname -a` in +Darwin*) exit 0 ;; +*) ;; +esac + +# Strip ELF binaries +for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \ + grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \ + grep -v ' shared object,' | \ + grep -v '/lib/modules/' | \ + sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do + $STRIP -g "$f" || : +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip-shared b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip-shared new file mode 100755 index 0000000..e06ee4b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-strip-shared @@ -0,0 +1,25 @@ +#!/bin/sh +# Conectiva brp - strip shared libraries. Based on Red Hat's brp-strip. +# Thu Apr 20 - Guilherme Manika +# Created file + +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +STRIP=${1:-strip} + +case `uname -a` in +Darwin*) exit 0 ;; +*) ;; +esac + +# Strip ELF shared objects +# Please note we don't restrict our search to executable files because +# our libraries are not (should not be, at least) +x. +for f in `find "$RPM_BUILD_ROOT" -type f -a -exec file {} \; | \ + grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \ + grep ' shared object,' | \ + sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do + $STRIP --strip-unneeded "$f" +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-tizen b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-tizen new file mode 100755 index 0000000..bf298d4 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/brp-tizen @@ -0,0 +1,13 @@ +#! /bin/sh + +# If using normal root, avoid changing anything: +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +for script in /usr/lib/rpm/brp-tizen.d/brp*; do + if test -x "$script"; then + echo "calling $script" + $script || exit 1 + fi +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-buildroot b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-buildroot new file mode 100755 index 0000000..0cfb34f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-buildroot @@ -0,0 +1,37 @@ +#! /bin/sh + +# Copyright (C) 2004 Enrico Scholz +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +test -z "$QA_SKIP_BUILD_ROOT" || exit 0 + +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +tmp=$(mktemp ${TMPDIR:-/tmp}/cbr.XXXXXX) +trap "rm -f $tmp" EXIT + +find "$RPM_BUILD_ROOT" \! \( \ + -name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \ + \) -type f -print0 | \ + LANG=C xargs -0r grep -F "$RPM_BUILD_ROOT" >$tmp + +test -s "$tmp" && { + cat "$tmp" + echo "Found '$RPM_BUILD_ROOT' in installed files; aborting" + exit 1 +} || : diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-files b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-files new file mode 100755 index 0000000..b397f1c --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-files @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Gets file list on standard input and RPM_BUILD_ROOT as first parameter +# and searches for omitted files (not counting directories). +# Returns it's output on standard output. +# +# filon@pld.org.pl + +RPM_BUILD_ROOT=$1 + +if [ ! -d "$RPM_BUILD_ROOT" ] ; then + cat > /dev/null + exit 1 +fi + +[ "$TMPDIR" ] || TMPDIR=/tmp +FILES_DISK=`mktemp $TMPDIR/rpmXXXXXX` +FILES_RPM=`mktemp $TMPDIR/rpmXXXXXX` + +find $RPM_BUILD_ROOT -type f -o -type l | LC_ALL=C sort > $FILES_DISK +LC_ALL=C sort > $FILES_RPM + +diff -d "$FILES_DISK" "$FILES_RPM" | grep "^< " | cut -c3- | +while read f; do + echo $f | sed -e "s#^$RPM_BUILD_ROOT# #g" +done + +rm -f $FILES_DISK +rm -f $FILES_RPM diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-prereqs b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-prereqs new file mode 100755 index 0000000..e6c9452 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-prereqs @@ -0,0 +1,17 @@ +#!/bin/bash + +bashit="/bin/bash --rpm-requires" + +# Make sure that this bash has the rpm-requires hack +$bashit < /dev/null 2>&1 > /dev/null || exit $? + +prereqs="`cat | $bashit | sort | uniq | sed -e 's/^bash(//' -e 's/)$//' -e 's/^executable(//' -e 's/)$//'`" +[ -z "$prereqs" ] && exit 0 + +for prereq in $prereqs +do + case $prereq in + /*) echo $prereq ;; + *) echo "`which $prereq`" ;; + esac +done | sort | uniq diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths new file mode 100755 index 0000000..b94630b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths @@ -0,0 +1,28 @@ +#! /bin/sh + +# Copyright (C) 2004 Enrico Scholz +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +test -z "$QA_SKIP_RPATHS" || { + echo $"WARNING: '\$QA_SKIP_RPATHS' is obsoleted by 'QA_RPATHS=[0-7]'" >&2 + exit 0 +} + +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + exit 0 +fi + +find "$RPM_BUILD_ROOT" -type f -print0 | xargs -0r /usr/lib/rpm/check-rpaths-worker diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths-worker b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths-worker new file mode 100755 index 0000000..7ea4fb4 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/check-rpaths-worker @@ -0,0 +1,156 @@ +#! /bin/bash + +# Copyright (C) 2004 Enrico Scholz +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +fail= +already_shown=0 + +# effect of this expression is obviously: +# * match paths beginning with: +# - $SOMETHING//.. +# - //.. +# * but not paths beginning with +# - $SOMETHING/.. +# - $SOMETHING/../../../..... +BADNESS_EXPR_32='\(\(\$[^/]\+\)\?\(/.*\)\?/\(\([^.][^/]*\)\|\(\.[^./][^/]*\)\|\(\.\.[^/]\+\)\)\)/\.\.\(/.*\)\?$' + +function showHint() +{ + test "$already_shown" -eq 0 || return + already_shown=1 + + cat <&2 +******************************************************************************* +* +* WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' +* to fail. To ignore these errors, you can set the '\$QA_RPATHS' +* environment variable which is a bitmask allowing the values +* below. The current value of QA_RPATHS is $(printf '0x%04x' $QA_RPATHS). +* +* 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor +* issue but are introducing redundant searchpaths without +* providing a benefit. They can also cause errors in multilib +* environments. +* 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute +* nor relative filenames and can therefore be a SECURITY risk +* 0x0004 ... insecure RPATHs; these are relative RPATHs which are a +* SECURITY risk +* 0x0008 ... the special '\$ORIGIN' RPATHs are appearing after other +* RPATHs; this is just a minor issue but usually unwanted +* 0x0010 ... the RPATH is empty; there is no reason for such RPATHs +* and they cause unneeded work while loading libraries +* 0x0020 ... an RPATH references '..' of an absolute path; this will break +* the functionality when the path before '..' is a symlink +* +* +* Examples: +* - to ignore standard and empty RPATHs, execute 'rpmbuild' like +* \$ QA_RPATHS=\$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm +* - to check existing files, set \$RPM_BUILD_ROOT and execute check-rpaths like +* \$ RPM_BUILD_ROOT= /usr/lib/rpm/check-rpaths +* +******************************************************************************* +EOF +} + +function msg() +{ + local val=$1 + local cmp=$2 + local msg= + local fail= + local code + + test $[ $val & $cmp ] -ne 0 || return 0 + + code=$(printf '%04x' $cmp) + if test $[ $val & ~$QA_RPATHS ] -eq 0; then + msg="WARNING" + else + showHint + msg="ERROR " + fail=1 + fi + + shift 2 + echo "$msg $code: $@" >&2 + + test -z "$fail" +} + +: ${QA_RPATHS:=0} +old_IFS=$IFS + +for i; do + pos=0 + rpath=$(readelf -d "$i" 2>/dev/null | LANG=C grep '(RPATH).*:') || continue + rpath=$(echo "$rpath" | LANG=C sed -e 's!.*(RPATH).*: \[\(.*\)\]!\1!p;d') + tmp=aux:$rpath:/lib/aux || : + IFS=: + set -- $tmp + IFS=$old_IFS + shift + + allow_ORIGIN=1 + for j; do + new_allow_ORIGIN=0 + + if test -z "$j"; then + badness=16 + elif expr match "$j" "$BADNESS_EXPR_32" >/dev/null; then + badness=32 + else + case "$j" in + (/lib/*|/usr/lib/*|/usr/X11R6/lib/*|/usr/local/lib/*) + badness=0;; + (/lib64/*|/usr/lib64/*|/usr/X11R6/lib64/*|/usr/local/lib64/*) + badness=0;; + + (\$ORIGIN|\${ORIGINX}|\$ORIGIN/*|\${ORIGINX}/*) + test $allow_ORIGIN -eq 0 && badness=8 || { + badness=0 + new_allow_ORIGIN=1 + } + ;; + (/*\$PLATFORM*|/*\${PLATFORM}*|/*\$LIB*|/*\${LIB}*) + badness=0;; + + (/lib|/usr/lib|/usr/X11R6/lib) + badness=1;; + (/lib64|/usr/lib64|/usr/X11R6/lib64) + badness=1;; + + (.*) + badness=4;; + (*) badness=2;; + esac + fi + + allow_ORIGIN=$new_allow_ORIGIN + + base=${i##$RPM_BUILD_ROOT} + msg "$badness" 1 "file '$base' contains a standard rpath '$j' in [$rpath]" || fail=1 + msg "$badness" 2 "file '$base' contains an invalid rpath '$j' in [$rpath]" || fail=1 + msg "$badness" 4 "file '$base' contains an insecure rpath '$j' in [$rpath]" || fail=1 + msg "$badness" 8 "file '$base' contains the \$ORIGIN rpath specifier at the wrong position in [$rpath]" || fail=1 + msg "$badness" 16 "file '$base' contains an empty rpath in [$rpath]" || fail=1 + msg "$badness" 32 "file '$base' contains an rpath referencing '..' of an absolute path [$rpath]" || fail=2 + let ++pos + done +done + +test -z "$fail" diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debugedit b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debugedit new file mode 100755 index 0000000000000000000000000000000000000000..37936e90707df7eda19eb3dafab78857437e27c8 GIT binary patch literal 37520 zcmeIbe|%KMxj%k3Szv)Q8*S8}w61j#5C{n%5TTloA4D4@VuH4!OGq{(HNTqdLa-pw zvjNUMu8kF~ZMnT^U;f~#x22UL6>7r|lVG_uAXTnfMN4(ppbe-HDYBpUd*+@9T9>UXz(;=9y=ndFGjCew^7eYYR(?91e$KK1oWlLa6r-PS*_h9buU=L-8mh zl?nKNr7|2*Oqx*EVWD4VVTFrArJ`nNz;aiyXZ z|JCWD6TAZ7OurTBKtJa(=`TXMmA_)-rDJ}0%GA2rWmD^_rqtCo1Y0v(8Z)QKG_Wqx z=igE;XtN%q$#~{XhokJ6-u~l{fBE>)VZVRt&Q<#sAKjTc<3~5VkdHLx%!L~V$7ed+ zB)Cy|uZJ56 z=YhKpt_W^6+>LP8z?sj@X29@oGko%12v-J287+Y0vq*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--git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debuginfo.prov b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debuginfo.prov new file mode 100755 index 0000000..4d99257 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/debuginfo.prov @@ -0,0 +1,12 @@ +#!/bin/sh + +while read instfile ; do + case $instfile in + */usr/lib/debug/.build-id/*.debug) + if [ -f "$instfile" ] ; then + BUILDID=$(echo $instfile | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]*\)/\([0-9a-f]*\)\.debug|\1\2|p') + echo "debuginfo(build-id) = $BUILDID" + fi + ;; + esac +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/desktop-file.prov b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/desktop-file.prov new file mode 100755 index 0000000..5b159ae --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/desktop-file.prov @@ -0,0 +1,23 @@ +#!/bin/sh +# +# Transform desktop mimetype info into RPM mimehandler(type) provides +# +# Author: Richard Hughes +# Based on other provides scripts from RPM + +OLD_IFS="$IFS" +while read instfile ; do + case "$instfile" in + *.desktop) + if ! grep -q '^Type=Application$' "$instfile"; then continue; fi + if ! grep -q '^Exec=' "$instfile"; then continue; fi + mime=`grep '^MimeType=' "$instfile" | cut -d'=' -f2` + IFS=';' + for type in $mime ; do + echo 'mimehandler('$type')' + done + ;; + esac +done +IFS=$OLD_IFS + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/elfdeps b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/elfdeps new file mode 100755 index 0000000000000000000000000000000000000000..9f1005d2c82c16cf8e367aaeaa48df2ab17135f4 GIT binary patch literal 17532 zcmeHPeRx#WnLm>ZI6%w<3>r0+(GE1UAtn+vSX>j5V88$a1WGIIWXMc1DU-}}<_?BR zEp#Tx^g1?esHIy1MYL#J_mQq2oj_~@Do|FP{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%v5j4dZ=I;X+|=Trk-}j0b#=Ch zitexysOad9SFDS7;wE*cUsMEw+N!NH>lQ4Uqxd?6lnVM{K~W*s5n|l%L+!YJy&hF> z>_&Z>m_AZOMKlm1LsZ~CS|A!3$Mr@<#TVP~V^rwnMLMYm7vL&z!;8f*0i>2l2#Joc zQXvy~GTqLh<& z-@$MpZ3JUWa~(1aIlcq)Z~1OR2(cmOLz>$J>f`yxZpih3jI9FYNS_Dc6Ui{;_|D9) zdz+EA%56d(-*hR*bCU?7qLKfe>_v78K z8)>6n=97K|;+YE5d?&BQ>-SEiS+CIsB*iyDd{d_!&t+bOToclUKFab1<|U9J$8(%g zG>Ydtl;fMaA@@Aew3YeXJ2l|o>ElQnfpQFg02y+8=Z`?Hl}6}+KB4SckRivt*%2HA zG-$8-Qqo9vnB@2lRE)b{#y1=kH0m|{&Z_t>RR*~}3h2R*;|D#gmvZv|On_WSmtkbc zH6m@u@vOn^!daWC9fsT_2=N4ieav@I{$C0P4_Tw>_mSqw2Ictfy8my;{Q`W}OF6z1 zANm_|v%zOyP>%1q{68f4!72T~KpWVHm#GZfp=y8SNF;1T!a??!(jpY9VvFc){ literal 0 HcmV?d00001 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/debuginfo.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/debuginfo.attr new file mode 100644 index 0000000..91fd995 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/debuginfo.attr @@ -0,0 +1,2 @@ +%__debuginfo_provides %{_rpmconfigdir}/debuginfo.prov +%__debuginfo_path ^/usr/lib/debug/ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/desktop.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/desktop.attr new file mode 100644 index 0000000..f6882be --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/desktop.attr @@ -0,0 +1,2 @@ +%__desktop_provides %{_rpmconfigdir}/desktop-file.prov +%__desktop_path ^%{_datadir}/applications/.*\\.desktop$ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elf.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elf.attr new file mode 100644 index 0000000..49de068 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elf.attr @@ -0,0 +1,5 @@ +%__elf_provides %{_rpmconfigdir}/elfdeps --provides %{?__filter_GLIBC_PRIVATE:--filter-private} +%__elf_requires %{_rpmconfigdir}/elfdeps --requires %{?__filter_GLIBC_PRIVATE:--filter-private} +%__elf_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*executable +%__elf_flags exeonly +%__elf_exclude_path ^/usr/lib/debug/ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elflib.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elflib.attr new file mode 100644 index 0000000..a8aafa6 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/elflib.attr @@ -0,0 +1,4 @@ +%__elflib_provides %{_rpmconfigdir}/elfdeps --assume-exec --provides %{?__filter_GLIBC_PRIVATE:--filter-private} +%__elflib_requires %{_rpmconfigdir}/elfdeps --assume-exec --requires %{?__filter_GLIBC_PRIVATE:--filter-private} +%__elflib_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*shared object +%__elflib_exclude_path ^/usr/lib/debug/ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/firmware.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/firmware.attr new file mode 100644 index 0000000..2d577aa --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/firmware.attr @@ -0,0 +1,2 @@ +%__firmware_provides %{_rpmconfigdir}/firmware.prov +%__firmware_path /lib/firmware/ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/font.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/font.attr new file mode 100644 index 0000000..e908b80 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/font.attr @@ -0,0 +1,3 @@ +%__font_provides %{_rpmconfigdir}/fontconfig.prov +%__font_requires %{nil} +%__font_magic [Ff]ont?( (program|collection))?( (text|data)) diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ksyms.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ksyms.attr new file mode 100644 index 0000000..8dbf16b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ksyms.attr @@ -0,0 +1,4 @@ +%__ksyms_provides %{_rpmconfigdir}/find-provides.ksyms %name +%__ksyms_requires %{_rpmconfigdir}/find-requires.ksyms %name +%__ksyms_supplements %{_rpmconfigdir}/find-supplements.ksyms %name +%__ksyms_path (/lib/modules/.*\.ko(\.gz)?)|(/boot/vmlinu[xz].*)$ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/libtool.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/libtool.attr new file mode 100644 index 0000000..ed5cb8c --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/libtool.attr @@ -0,0 +1,3 @@ +%__libtool_provides %{_rpmconfigdir}/libtooldeps.sh --provides %{buildroot} %{name} +%__libtool_requires %{_rpmconfigdir}/libtooldeps.sh --requires %{buildroot} %{name} +%__libtool_path ^%{_libdir}/.*\.la$ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/mono.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/mono.attr new file mode 100644 index 0000000..98dc8d9 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/mono.attr @@ -0,0 +1,3 @@ +%__mono_provides %{_rpmconfigdir}/mono-find-provides %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir} +%__mono_requires %{_rpmconfigdir}/mono-find-requires %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir} +%__mono_magic Mono/.Net assembly diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ocaml.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ocaml.attr new file mode 100644 index 0000000..5fd0870 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/ocaml.attr @@ -0,0 +1,3 @@ +%__ocaml_provides %{_rpmconfigdir}/ocaml-find-provides.sh +%__ocaml_requires %{_rpmconfigdir}/ocaml-find-requires.sh +%__ocaml_magic ^(Objective caml|OCaml) .*$ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perl.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perl.attr new file mode 100644 index 0000000..89383c2 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perl.attr @@ -0,0 +1,4 @@ +# disabled for now +#%__perl_requires %{_rpmconfigdir}/perl.req +%__perl_magic ^.*[Pp]erl .*$ +%__perl_flags exeonly diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perllib.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perllib.attr new file mode 100644 index 0000000..9972354 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/perllib.attr @@ -0,0 +1,4 @@ +%__perllib_provides %{_rpmconfigdir}/perl.prov +#disabled for now +#%__perllib_requires %{_rpmconfigdir}/perl.req +%__perllib_magic ^Perl[[:digit:]] module source.* diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/pkgconfig.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/pkgconfig.attr new file mode 100644 index 0000000..1b4240d --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/pkgconfig.attr @@ -0,0 +1,3 @@ +%__pkgconfig_provides %{_rpmconfigdir}/pkgconfigdeps.sh --provides +%__pkgconfig_requires %{_rpmconfigdir}/pkgconfigdeps.sh --requires +%__pkgconfig_path ^((%{_libdir}|%{_datadir})/pkgconfig/.*\.pc|%{_bindir}/pkg-config)$ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/python.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/python.attr new file mode 100644 index 0000000..0f3c2cc --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/python.attr @@ -0,0 +1,4 @@ +%__python_provides %{_rpmconfigdir}/pythondeps.sh --provides +%__python_requires %{_rpmconfigdir}/pythondeps.sh --requires +%__python_path ^((/usr/lib(64)?/python[[:digit:]]\\.[[:digit:]]/.*\\.(py[oc]?|so))|(%{_bindir}/python[[:digit:]]\\.[[:digit:]]))$ +%__python_magic [Pp]ython.*(executable|byte-compiled) diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/script.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/script.attr new file mode 100644 index 0000000..79f4d73 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/script.attr @@ -0,0 +1,3 @@ +%__script_requires %{_rpmconfigdir}/script.req +%__script_magic ^.* script[, ].*$ +%__script_flags exeonly diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/sysvinit.attr b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/sysvinit.attr new file mode 100644 index 0000000..81810e5 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fileattrs/sysvinit.attr @@ -0,0 +1,2 @@ +%__sysvinit_provides %{_rpmconfigdir}/sysvinitdeps.sh --provides +%__sysvinit_path ^/etc/init\.d/ diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-debuginfo.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-debuginfo.sh new file mode 100755 index 0000000..c73f06b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-debuginfo.sh @@ -0,0 +1,439 @@ +#!/bin/bash +#find-debuginfo.sh - automagically generate debug info and file list +#for inclusion in an rpm spec file. +# +# Usage: find-debuginfo.sh [--strict-build-id] [-g] [-r] +# [-o debugfiles.list] +# [[-l filelist]... [-p 'pattern'] -o debuginfo.list] +# [builddir] +# +# The -g flag says to use strip -g instead of full strip on DSOs. +# The --strict-build-id flag says to exit with failure status if +# any ELF binary processed fails to contain a build-id note. +# The -r flag says to use eu-strip --reloc-debug-sections. +# +# A single -o switch before any -l or -p switches simply renames +# the primary output file from debugfiles.list to something else. +# A -o switch that follows a -p switch or some -l switches produces +# an additional output file with the debuginfo for the files in +# the -l filelist file, or whose names match the -p pattern. +# The -p argument is an grep -E -style regexp matching the a file name, +# and must not use anchors (^ or $). +# +# All file names in switches are relative to builddir (. if not given). +# + +# With -g arg, pass it to strip on libraries. +strip_g=false + +# with -r arg, pass --reloc-debug-sections to eu-strip. +strip_r=false + +# Barf on missing build IDs. +strict=false + +BUILDDIR=. +out=debugfiles.list +nout=0 +while [ $# -gt 0 ]; do + case "$1" in + --strict-build-id) + strict=true + ;; + -g) + strip_g=true + ;; + -o) + if [ -z "${lists[$nout]}" -a -z "${ptns[$nout]}" ]; then + out=$2 + else + outs[$nout]=$2 + ((nout++)) + fi + shift + ;; + -l) + lists[$nout]="${lists[$nout]} $2" + shift + ;; + -p) + ptns[$nout]=$2 + shift + ;; + -r) + strip_r=true + ;; + *) + BUILDDIR=$1 + shift + break + ;; + esac + shift +done + +i=0 +while ((i < nout)); do + outs[$i]="$BUILDDIR/${outs[$i]}" + l='' + for f in ${lists[$i]}; do + l="$l $BUILDDIR/$f" + done + lists[$i]=$l + ((++i)) +done + +LISTFILE="$BUILDDIR/$out" +SOURCEFILE="$BUILDDIR/debugsources.list" +LINKSFILE="$BUILDDIR/debuglinks.list" + +> "$SOURCEFILE" +> "$LISTFILE" +> "$LINKSFILE" + +debugdir="${RPM_BUILD_ROOT}/usr/lib/debug" + +strip_to_debug() +{ + local r= + $strip_r && r=--reloc-debug-sections + case $2 in + *.ko) + # don't attempt to create a minimal backtrace binary for + # kernel modules as this just causes the stripping process + # to be skipped entirely + eu-strip --remove-comment $r -f "$1" "$2" || exit + ;; + *) + eu-strip --remove-comment -g -f "$1" "$2" || exit + esac + chmod 444 "$1" || exit +} + +# Make a relative symlink to $1 called $3$2 +shopt -s extglob +link_relative() +{ + local t="$1" f="$2" pfx="$3" + local fn="${f#/}" tn="${t#/}" + local fd td d + + while fd="${fn%%/*}"; td="${tn%%/*}"; [ "$fd" = "$td" ]; do + fn="${fn#*/}" + tn="${tn#*/}" + done + + d="${fn%/*}" + if [ "$d" != "$fn" ]; then + d="${d//+([!\/])/..}" + tn="${d}/${tn}" + fi + + mkdir -p "$(dirname "$pfx$f")" && ln -snf "$tn" "$pfx$f" +} + +# Make a symlink in /usr/lib/debug/$2 to $1 +debug_link() +{ + local l="/usr/lib/debug$2" + local t="$1" + echo >> "$LINKSFILE" "$l $t" + + # this should correspond to what brp-symlink is doing + case $t in + /usr*) + link_relative "$t" "$l" "$RPM_BUILD_ROOT" + ;; + *) + mkdir -p "$(dirname "$RPM_BUILD_ROOT$l")" && \ + ln -snf "$t" "$RPM_BUILD_ROOT$l" + ;; + esac +} + +# Provide .2, .3, ... symlinks to all filename instances of this build-id. +make_id_dup_link() +{ + # See https://bugzilla.redhat.com/show_bug.cgi?id=641377 for the reasoning, + # but it has seveal drawbacks as we would need to split the .1 suffixes into + # different subpackages and it's about impossible to predict the number + # -> perhaps later + return + local id="$1" file="$2" idfile + + local n=1 + while true; do + idfile=".build-id/${id:0:2}/${id:2}.$n" + [ $# -eq 3 ] && idfile="${idfile}$3" + if [ ! -L "$RPM_BUILD_ROOT/usr/lib/debug/$idfile" ]; then + break + fi + n=$[$n+1] + done + debug_link "$file" "/$idfile" +} + +# Compare two binaries but ignore the .note.gnu.build-id section +elfcmp() +{ + local tmp1=$(mktemp -t ${1##*/}.XXXXXX) + local tmp2=$(mktemp -t ${2##*/}.XXXXXX) + + objcopy -R .note.gnu.build-id -R .gnu_debuglink $1 $tmp1 + objcopy -R .note.gnu.build-id -R .gnu_debuglink $2 $tmp2 + cmp -s $tmp1 $tmp2 + local res=$? + rm -f $tmp1 $tmp2 + return $res +} + +# Make a build-id symlink for id $1 with suffix $3 to file $2. +make_id_link() +{ + local id="$1" file="$2" + local idfile=".build-id/${id:0:2}/${id:2}" + [ $# -eq 3 ] && idfile="${idfile}$3" + local root_idfile="$RPM_BUILD_ROOT/usr/lib/debug/$idfile" + + if [ ! -L "$root_idfile" ]; then + debug_link "$file" "/$idfile" + return + fi + + make_id_dup_link "$@" + + [ $# -eq 3 ] && return 0 + + local other=$(readlink -m "$root_idfile") + other=${other#$RPM_BUILD_ROOT} + if cmp -s "$RPM_BUILD_ROOT$other" "$RPM_BUILD_ROOT$file" || + elfcmp "$RPM_BUILD_ROOT$other" "$RPM_BUILD_ROOT$file" ; then + # Two copies. Maybe one has to be setuid or something. + echo >&2 "*** WARNING: identical binaries are copied, not linked:" + echo >&2 " $file" + echo >&2 " and $other" + else + # This is pathological, break the build. + echo >&2 "*** ERROR: same build ID in nonidentical files!" + echo >&2 " $file" + echo >&2 " and $other" + exit 2 + fi +} + +get_debugfn() +{ + dn=$(dirname "${1#$RPM_BUILD_ROOT}") +# Do not strip existing .debug suffixes + bn=$(basename "$1").debug + + debugdn=${debugdir}${dn} + debugfn=${debugdn}/${bn} +} + +set -o pipefail + +strict_error=ERROR +$strict || strict_error=WARNING + +# Strip ELF binaries (and no static libraries) +find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm +111 -or -name "*.so*" -or -name "*.ko" \) ! -name "*.a" -print0 | sort -z | +xargs --no-run-if-empty -0 stat -c '%h %D_%i %n' | +while read nlinks inum f; do + case $(objdump -h $f 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in + *debuglink*) continue ;; + *debug*) ;; + *gnu.version*) + echo "WARNING: "`echo $f | sed -e "s,^$RPM_BUILD_ROOT/*,/,"`" is already stripped!" + continue + ;; + *) continue ;; + esac + get_debugfn "$f" + [ -f "${debugfn}" ] && continue + + # If this file has multiple links, keep track and make + # the corresponding .debug files all links to one file too. + if [ $nlinks -gt 1 ]; then + eval linked=\$linked_$inum + if [ -n "$linked" ]; then + eval id=\$linkedid_$inum + make_id_dup_link "$id" "$dn/$(basename $f)" + make_id_dup_link "$id" "/usr/lib/debug$dn/$bn" .debug + link=$debugfn + get_debugfn "$linked" + echo "hard linked $link to $debugfn" + mkdir -p "$(dirname "$link")" && ln -nf "$debugfn" "$link" + continue + else + eval linked_$inum=\$f + echo "file $f has $[$nlinks - 1] other hard links" + fi + fi + + echo "extracting debug info from $f" + id=$($(DEBUGEDIT=$(which debugedit 2>/dev/null); \ + echo ${DEBUGEDIT:-/usr/lib/rpm/debugedit}) -b "$RPM_BUILD_DIR" \ + -d /usr/src/debug -i -l "$SOURCEFILE" "$f") || exit + if [ $nlinks -gt 1 ]; then + eval linkedid_$inum=\$id + fi + if [ -z "$id" ]; then + echo >&2 "*** ${strict_error}: No build ID note found in $f" + $strict && exit 2 + fi + + [ -x /usr/bin/gdb-add-index ] && /usr/bin/gdb-add-index "$f" > /dev/null 2>&1 + + # A binary already copied into /usr/lib/debug doesn't get stripped, + # just has its file names collected and adjusted. + case "$dn" in + /usr/lib/debug/*) + [ -z "$id" ] || make_id_link "$id" "$dn/$(basename $f)" + continue ;; + esac + + mkdir -p "${debugdn}" + if [ -e "${BUILDDIR}/Kconfig" ] ; then + mode=$(stat -c %a "$f") + chmod +w "$f" + objcopy --only-keep-debug $f $debugfn || : + ( + shopt -s extglob + strip_option="--strip-all" + case "$f" in + *.ko) + strip_option="--strip-debug" ;; + *$STRIP_KEEP_SYMTAB*) + if test -n "$STRIP_KEEP_SYMTAB"; then + strip_option="--strip-debug" + fi + ;; + esac + if test "$NO_DEBUGINFO_STRIP_DEBUG" = true ; then + strip_option= + fi + objcopy --add-gnu-debuglink=$debugfn -R .comment -R .GCC.command.line $strip_option $f + chmod $mode $f + ) || : + else + if test -w "$f"; then + strip_to_debug "${debugfn}" "$f" + else + chmod u+w "$f" + strip_to_debug "${debugfn}" "$f" + chmod u-w "$f" + fi + fi + + if [ -n "$id" ]; then + make_id_link "$id" "$dn/$(basename $f)" + make_id_link "$id" "/usr/lib/debug$dn/$bn" .debug + fi +done || exit + +# We used to make a .debug symlink for each symlink whose target +# has a .debug file to that file. This is not necessary because +# the debuglink section contains only the destination of those links. +# Creating those links anyway results in debuginfo packages for +# devel packages just because of the .so symlinks in them. + +if [ -s "$SOURCEFILE" ]; then + mkdir -p "${RPM_BUILD_ROOT}/usr/src/debug" + LC_ALL=C sort -z -u "$SOURCEFILE" | grep -E -v -z '(|)$' | + (cd "$RPM_BUILD_DIR"; cpio -pd0mL "${RPM_BUILD_ROOT}/usr/src/debug") + # stupid cpio creates new directories in mode 0700, fixup + find "${RPM_BUILD_ROOT}/usr/src/debug" -type d -print0 | + xargs --no-run-if-empty -0 chmod a+rx + find "${RPM_BUILD_ROOT}/usr/src/debug" -type f -print0 | + xargs --no-run-if-empty -0 chmod a+r +fi + +if [ -d "${RPM_BUILD_ROOT}/usr/lib" -o -d "${RPM_BUILD_ROOT}/usr/src" ]; then + ((nout > 0)) || + test ! -d "${RPM_BUILD_ROOT}/usr/lib" || + (cd "${RPM_BUILD_ROOT}/usr/lib"; test ! -d debug || find debug -type d) | + sed 's,^,%dir /usr/lib/,' >> "$LISTFILE" + + (cd "${RPM_BUILD_ROOT}/usr" + test ! -d lib/debug || find lib/debug ! -type d + ) | sed 's,^,/usr/,' >> "$LISTFILE" +fi + +: > "$SOURCEFILE" +if [ -d "${RPM_BUILD_ROOT}/usr/src" ]; then + (cd "${RPM_BUILD_ROOT}/usr" + test ! -d src/debug || find src/debug -mindepth 1 -maxdepth 1 + ) | sed 's,^,/usr/,' >> "$SOURCEFILE" +fi + +# Append to $1 only the lines from stdin not already in the file. +append_uniq() +{ + grep -F -f "$1" -x -v >> "$1" +} + +# Helper to generate list of corresponding .debug files from a file list. +filelist_debugfiles() +{ + local extra="$1" + shift + sed 's/^%[a-z0-9_][a-z0-9_]*([^)]*) *// +s/^%[a-z0-9_][a-z0-9_]* *// +/^$/d +'"$extra" "$@" +} + +# Write an output debuginfo file list based on given input file lists. +filtered_list() +{ + local out="$1" + shift + test $# -gt 0 || return + grep -F -f <(filelist_debugfiles 's,^.*$,/usr/lib/debug&.debug,' "$@") \ + -x $LISTFILE >> $out + sed -n -f <(filelist_debugfiles 's/[\\.*+#]/\\&/g +h +s,^.*$,s# &$##p,p +g +s,^.*$,s# /usr/lib/debug&.debug$##p,p +' "$@") "$LINKSFILE" | append_uniq "$out" +} + +# Write an output debuginfo file list based on an grep -E -style regexp. +pattern_list() +{ + local out="$1" ptn="$2" + test -n "$ptn" || return + grep -E -x -e "$ptn" "$LISTFILE" >> "$out" + sed -n -r "\#^$ptn #s/ .*\$//p" "$LINKSFILE" | append_uniq "$out" +} + +# +# When given multiple -o switches, split up the output as directed. +# +i=0 +while ((i < nout)); do + > ${outs[$i]} + filtered_list ${outs[$i]} ${lists[$i]} + pattern_list ${outs[$i]} "${ptns[$i]}" + grep -Fvx -f ${outs[$i]} "$LISTFILE" > "${LISTFILE}.new" + mv "${LISTFILE}.new" "$LISTFILE" + ((++i)) +done +if ((nout > 0)); then + # Now add the right %dir lines to each output list. + (cd "${RPM_BUILD_ROOT}"; find usr/lib/debug -type d) | + sed 's#^.*$#\\@^/&/@{h;s@^.*$@%dir /&@p;g;}#' | + LC_ALL=C sort -ur > "${LISTFILE}.dirs.sed" + i=0 + while ((i < nout)); do + sed -n -f "${LISTFILE}.dirs.sed" "${outs[$i]}" | sort -u > "${outs[$i]}.new" + cat "${outs[$i]}" >> "${outs[$i]}.new" + mv -f "${outs[$i]}.new" "${outs[$i]}" + ((++i)) + done + sed -n -f "${LISTFILE}.dirs.sed" "${LISTFILE}" | sort -u > "${LISTFILE}.new" + cat "$LISTFILE" >> "${LISTFILE}.new" + mv "${LISTFILE}.new" "$LISTFILE" +fi diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-lang.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-lang.sh new file mode 100755 index 0000000..413fb35 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-lang.sh @@ -0,0 +1,264 @@ +#!/bin/sh +#findlang - automagically generate list of language specific files +#for inclusion in an rpm spec file. +#This does assume that the *.mo files are under .../locale/... +#Run with no arguments gets a usage message. + +#findlang is copyright (c) 1998 by W. L. Estes + +#Redistribution and use of this software are hereby permitted for any +#purpose as long as this notice and the above copyright notice remain +#in tact and are included with any redistribution of this file or any +#work based on this file. + +# 2004-06-20 Arkadiusz Miśkiewicz +# * merge PLD changes, kde, all-name (mkochano,pascalek@PLD) +# 1999-10-19 Artur Frysiak +# * added support for GNOME help files +# * start support for KDE help files + +usage () { +cat <&2 +elif [ ! -d $1 ] ; then + echo $0: $1: no such directory + exit 1 +else TOP_DIR="`echo $1|sed -e 's:/$::'`" +fi +shift + +if [ -z "$1" ] ; then usage +else NAME=$1 +fi +shift + +GNOME= +KDE= +QT=# +MAN=# +MO= +MO_NAME=$NAME.lang +ALL_NAME=# +NO_ALL_NAME= +ONLY_C=# +NO_C=# + +while test $# -gt 0 ; do + case "${1}" in + --with-gnome ) + GNOME= + shift + ;; + --with-kde ) + KDE= + shift + ;; + --without-gnome ) + GNOME=# + shift + ;; + --without-kde ) + KDE=# + shift + ;; + --with-qt ) + QT= + shift + ;; + --with-man ) + MAN= + shift + ;; + --without-mo ) + MO=# + shift + ;; + --all-name ) + ALL_NAME= + NO_ALL_NAME=# + shift + ;; + --with-only-C ) + ONLY_C= + shift + ;; + --without-C ) + NO_C= + shift + ;; + * ) + MO_NAME=${1} + shift + ;; + esac +done + +if ! test -s $MO_NAME ; then + echo "%defattr (644, root, root, 755)" > $MO_NAME +fi +MO_NAME_NEW=$MO_NAME.tmp.$$ +rm -f $MO_NAME_NEW + +# remove languages we do not yet support - but give out statistics +find "$TOP_DIR/usr/share/locale/" -maxdepth 1 -type d | sed 's:'"$TOP_DIR"/usr/share/locale/'::; /^$/d' | while read dir; do + if ! rpm -ql filesystem | egrep -q "/usr/share/locale/$dir"$; then + find $TOP_DIR/usr/share/locale/$dir -name *.mo | sed 's:'"$TOP_DIR"'::' | while read file; do + echo -n "removing translation $file: " + msgunfmt "$TOP_DIR/$file" | msgfmt --statistics -o /dev/null - + done + rm -rf $TOP_DIR/usr/share/locale/$dir + fi +done +find $TOP_DIR/usr/share/help/ -maxdepth 1 -type d | sed 's:'"$TOP_DIR"/usr/share/help/'::; /^$/d' | while read dir; do + if ! rpm -ql filesystem | egrep -q "/usr/share/help/$dir"$; then + echo "removing help translation /usr/share/help/$dir" + rm -rf $TOP_DIR/usr/share/help/$dir + fi +done + +find "$TOP_DIR" -type f -o -type l|sed ' +s:'"$TOP_DIR"':: +'"$ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3: +'"$NO_ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' > $MO_NAME_NEW + +find "$TOP_DIR" -type d|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\([^/]*\)\(/'"$NAME"'\)$:%lang(\2) %doc \1\2\3\4/: +'"$ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\([^/]*\)\(/[a-zA-Z0-9.\_\-]\+\)$:%lang(\2) %doc \1\2\3\4/: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW + +find "$TOP_DIR" -type d|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'$\):%lang(C) %dir %doc \1: +'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'/[a-zA-Z0-9.\_\-]/.\+\):: +'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'\/\)\([^/_]\+\):%lang(\2) %doc \1\2: +'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+$\):%lang(C) %dir %doc \1: +'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]/.\+\):: +'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+\/\)\([^/_]\+\):%lang(\2) %doc \1\2: +s:%lang(.*) .*/gnome/help/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+/.*:: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW + +find "$TOP_DIR" -type d|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'$\):%dir \1: +'"$ALL_NAME$GNOME"'s:\(.*/omf/[a-zA-Z0-9.\_\-]\+$\):%dir \1: +s:^\([^%].*\):: +/^$/d' >> $MO_NAME_NEW + +find "$TOP_DIR" -type f|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'/'"$NAME"'-\([^/.]\+\)\.omf\):%lang(\2) \1: +'"$ALL_NAME$GNOME"'s:\(.*/omf/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+-\([^/.]\+\)\.omf\):%lang(\2) \1: +s:^[^%].*:: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW + +KDE3_HTML=`kde-config --expandvars --install html 2>/dev/null` +if [ x"$KDE3_HTML" != x -a -d "$TOP_DIR$KDE3_HTML" ]; then +find "$TOP_DIR$KDE3_HTML" -type d|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\):: +'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3: +'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\):: +'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW +fi + +KDE4_HTML=`kde4-config --expandvars --install html 2>/dev/null` +if [ x"$KDE4_HTML" != x -a -d "$TOP_DIR$KDE4_HTML" ]; then +find "$TOP_DIR$KDE4_HTML" -type d|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\):: +'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3: +'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\):: +'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW +fi + +find "$TOP_DIR" -type f -o -type l|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$QT"'s:\(.*/'"$NAME"'_\([a-zA-Z]\{2\}\([_@].*\)\?\)\.qm$\):%lang(\2) \1: +'"$ALL_NAME$QT"'s:\(.*/[^/_]\+_\([a-zA-Z]\{2\}[_@].*\)\.qm$\):%lang(\2) \1: +'"$ALL_NAME$QT"'s:\(.*/[^/_]\+_\([a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1: +'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\{2\}[_@].*\)\.qm$\):%lang(\2) \1: +'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1: +s:^[^%].*:: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW + +find "$TOP_DIR" -type d|sed ' +s:'"$TOP_DIR"':: +'"$ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+/\):: +'"$ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+$\):%lang(\2) \1*: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW + +find "$TOP_DIR" -type f -o -type l|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+/'"$NAME"'\.[a-z0-9].*\):%lang(\2) \1*: +s:^\([^%].*\):: +'"$ONLY_C"'/%lang(C)/!d +'"$NO_C"'/%lang(C)/d +s:%lang(C) :: +/^$/d' >> $MO_NAME_NEW + +if ! grep -q / $MO_NAME_NEW; then + echo "No translations found for ${NAME} in ${TOP_DIR}" + rm -f $MO_NAME_NEW + exit 1 +fi + +sort -u $MO_NAME_NEW >> $MO_NAME +rm -f $MO_NAME_NEW + +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides new file mode 100755 index 0000000..99e58c4 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides @@ -0,0 +1,104 @@ +#!/bin/bash + +# This script reads filenames from STDIN and outputs any relevant provides +# information that needs to be included in the package. +IFS=$'\n' +filelist=($(cat)) + +debuginfolist=($(printf "%s\n" "${filelist[@]}" | grep "/usr/lib/debug/")) +filelist=($(printf "%s\n" "${filelist[@]}" | grep -v "/usr/lib/debug/")) + +solist=($(printf "%s\n" "${filelist[@]}" | grep "\\.so" | grep -v "^/lib/ld.so" | \ + tr '\n' '\0' | xargs -0 -r file -L | grep "ELF.*shared object" | \ + cut -d: -f1)) +pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/bin/python.\..$')) +tcllist= +monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$")) +firmwarelist=($(printf "%s\n" "${filelist[@]}" | grep "/lib/firmware/")) +pkgconfiglist=($(printf "%s\n" "${filelist[@]}" | egrep '\.pc$')) +fontlist=($(printf "%s\n" "${filelist[@]}" | egrep -i "/usr/share/fonts/.*\.(ttf|otf|pfa)$")) + +# +# --- Alpha does not mark 64bit dependencies +case `uname -m` in + alpha*) mark64=false ;; + *) mark64=true ;; +esac + +# +# --- Library sonames and weak symbol versions (from glibc). +for f in "${solist[@]}"; do + soname=$(objdump -p "$f" | awk '/SONAME/ {print $2}') + [ -n "$soname" -a -L "$f" ] && continue + [ -z "$soname" ] && soname="${f##*/}" + + if $mark64 && file -L "$f" 2>/dev/null | grep "ELF 64-bit" >/dev/null; then + lib64="()(64bit)" slib64="(64bit)" + else + lib64= slib64= + fi + echo "$soname$lib64" + objdump -p "$f" | awk ' + BEGIN { START=0 ; } + /Version definitions:/ { START=1; } + /^[0-9]/ && (START==1) { print $4; } + /^$/ { START=0; } + ' | \ + while read symbol ; do + echo "$soname($symbol)$slib64" + done +done | sort -u + +# +# --- Perl modules. +[ -x /usr/lib/rpm/perl.prov ] && + printf "%s\n" "${filelist[@]}" | grep '\.pm$' | /usr/lib/rpm/perl.prov | sort -u + +# +# --- Python modules. +[ -x /usr/lib/rpm/pythondeps.sh -a -n "$pythonlist" ] && + printf "%s\n" "${pythonlist[@]}" | /usr/lib/rpm/pythondeps.sh -P | sort -u + +# +# --- Tcl modules. +[ -x /usr/lib/rpm/tcl.prov -a -n "$tcllist" ] && + printf "%s\n" "${tcllist[@]}" | /usr/lib/rpm/tcl.prov | sort -u + +# +# --- firmware files +[ -x /usr/lib/rpm/firmware.prov -a -n "$firmwarelist" ] && + printf "%s\n" "${firmwarelist[@]}" | /usr/lib/rpm/firmware.prov | sort -u + +# +# --- debuginfo files +[ -x /usr/lib/rpm/debuginfo.prov -a -n "$debuginfolist" ] && + printf "%s\n" "${debuginfolist[@]}" | /usr/lib/rpm/debuginfo.prov | sort -u + +# +# --- Mono exes/dlls +: ${MONO_PREFIX=/usr} +if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then + printf "%s\n" "${monolist[@]}" | MONO_PATH=$MONO_PREFIX/lib${MONO_PATH:+:$MONO_PATH} prefix=$MONO_PREFIX $MONO_PREFIX/bin/mono-find-provides || echo "WARNING: MONO RPM PROVIDES WERE NOT GENERATED FOR THIS BUILD!!" 1>&2 +fi + +# +# --- pkgconfig provides +[ -x /usr/lib/rpm/pkgconfigdeps.sh -a -n "$pkgconfiglist" ] && + printf "%s\n" "${pkgconfiglist[@]}" | /usr/lib/rpm/pkgconfigdeps.sh -P | sort -u + +# +# --- font provides +[ -x /usr/lib/rpm/fontconfig.prov -a -n "$fontlist" ] && + printf "%s\n" "${fontlist[@]}" | /usr/lib/rpm/fontconfig.prov | sort -u + +# +# --- Kernel module exported symbols +[ -x /usr/lib/rpm/find-provides.ksyms ] && + printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/find-provides.ksyms "$@" + +# +# --- GStreamer provides, codecs +[ -x /usr/lib/rpm/gstreamer-provides ] && + printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/gstreamer-provides | sort -u + +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides.ksyms b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides.ksyms new file mode 100755 index 0000000..c8f2ccd --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-provides.ksyms @@ -0,0 +1,41 @@ +#! /bin/sh + +IFS=$'\n' + +case "$1" in +kernel-module-*) ;; # Fedora kernel module package names start with + # kernel-module. +kernel*) kernel_flavor=${1#kernel-} ;; +esac + +trap 'rm -f "$tmp"' EXIT +tmp=$(mktemp) +while read f; do + test -e "$f" || continue + case "$f" in + *.debug) + continue + ;; + */lib/modules/*/*.ko | */lib/modules/*/*.ko.gz | */boot/vmlinu[xz]*) + ;; + *) + continue + esac + unzip=false + case "$f" in + *.gz | */boot/vmlinuz*) + unzip=true + esac + if $unzip && gzip -cd "$f" >"$tmp"; then + f=$tmp + fi + flavor=$(/usr/sbin/modinfo -F vermagic "$f") + flavor=${flavor%% *} + flavor=${flavor##*-} + if test -z "$flavor"; then + flavor=$kernel_flavor + fi + nm "$f" \ + | sed -r -ne "s/^0*([0-9a-f]+) A __crc_(.+)/ksym($flavor:\\2) = \\1/p" +done \ +| sort -u diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-requires b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-requires new file mode 100755 index 0000000..cc19f5f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-requires @@ -0,0 +1,155 @@ +#!/bin/bash + +# +# Auto-generate requirements for executables (both ELF and a.out) and library +# sonames, script interpreters, and perl modules. +# + +ulimit -c 0 + +# +# --- Set needed to 0 for traditional find-requires behavior. +needed=1 +if [ X"$1" = Xldd ]; then + needed=0 +elif [ X"$1" = Xobjdump ]; then + needed=1 +fi + +# +# --- Grab the file manifest and classify files. +#filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` +filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/')) +exelist=($(printf "%s\0" "${filelist[@]}" | xargs -0 -r file | \ + grep -Ev ":.* (commands|script)[, ]" | \ + grep ":.*executable" | cut -d: -f1)) +scriptlist=($(printf "%s\0" "${filelist[@]}" | xargs -0 -r file | \ + grep -E ":.* (commands|script)[, ]" | cut -d: -f1)) +liblist=($(printf "%s\0" "${filelist[@]}" | xargs -0 -r file | \ + grep ":.*shared object" | cut -d : -f1)) + +interplist=() +perllist=() +pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/lib[^/]*/python.\..')) +tcllist=() +monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)(\\.config)?\$")) +pkgconfiglist=($(printf "%s\n" "${filelist[@]}" | egrep '\.pc$')) + +# +# --- Alpha does not mark 64bit dependencies +case `uname -m` in + alpha*) mark64="" ;; + *) mark64="()(64bit)" ;; +esac + +if [ "$needed" -eq 0 ]; then +# +# --- Executable dependency sonames. + for f in "${exelist[@]}"; do + [ -r "$f" -a -x "$f" ] || continue + lib64=`if file -L "$f" 2>/dev/null | \ + grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi` + ldd "$f" | awk '/=>/ { + if ($1 !~ /libNoVersion.so/ && $1 !~ /4[um]lib.so/ && $1 !~ /linux-gate.so/) { + gsub(/'\''"/,"\\&",$1); + printf "%s'$lib64'\n", $1 + } + }' + done | xargs -r -n 1 basename | sort -u + +# +# --- Library dependency sonames. + for f in "${liblist[@]}"; do + [ -r "$f" ] || continue + lib64=`if file -L "$f" 2>/dev/null | \ + grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi` + ldd "$f" | awk '/=>/ { + if ($1 !~ /libNoVersion.so/ && $1 !~ /4[um]lib.so/ && $1 !~ /linux-gate.so/) { + gsub(/'\''"/,"\\&",$1); + printf "%s'$lib64'\n", $1 + } + }' + done | xargs -r -n 1 basename | sort -u +fi + +# +# --- Script interpreters. +for f in "${scriptlist[@]}"; do + [ -r "$f" -a -x "$f" ] || continue + interp=`head -n 1 "$f" | sed -ne 's/^\#\![ ]*//p' | cut -d" " -f1` + interplist=("${interplist[@]}" "$interp") + case $interp in + */perl) perllist=("${perllist[@]}" "$f") ;; + esac +done +[ -n "$interplist" ] && { printf "%s\n" "${interplist[@]}" | sort -u ; } + +# +# --- Add perl module files to perllist. +for f in "${filelist[@]}"; do + [ -r "$f" -a "${f%.pm}" != "${f}" ] && perllist=("${perllist[@]}" "$f") +done + +# +# --- Weak symbol versions (from glibc). +[ -n "$mark64" ] && mark64="(64bit)" +for f in "${liblist[@]}" "${exelist[@]}" ; do + [ -r "$f" ] || continue + lib64=`if file -L "$f" 2>/dev/null | \ + grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi` + objdump -p "$f" | awk 'BEGIN { START=0; LIBNAME=""; needed='$needed'; } + /^$/ { START=0; } + /^Dynamic Section:$/ { START=1; } + (START==1) && /NEEDED/ { + if (needed) { + if ("'$lib64'" != "") { + sub(/$/, "()'$lib64'", $2) ; + } + print $2 ; + } + } + (START==2) && /^[A-Za-z]/ { START=3; } + /^Version References:$/ { START=2; } + (START==2) && /required from/ { + sub(/:/, "", $3); + LIBNAME=$3; + } + (START==2) && (LIBNAME!="") && ($4!="") { + print LIBNAME "(" $4 ")'$lib64'"; + } + ' +done | sort -u + +# +# --- Perl modules. +#[ -x /usr/lib/rpm/perl.req -a -n "$perllist" ] && \ +# printf "%s\n" "${perllist[@]}" | /usr/lib/rpm/perl.req | sort -u + +# +# --- Python modules. +[ -x /usr/lib/rpm/pythondeps.sh -a -n "$pythonlist" ] && \ + printf "%s\n" "${pythonlist[@]}" | /usr/lib/rpm/pythondeps.sh -R | sort -u + +# +# --- Tcl modules. +[ -x /usr/lib/rpm/tcl.req -a -n "$tcllist" ] && \ + printf "%s\n" "${tcllist[@]}" | /usr/lib/rpm/tcl.req | sort -u + +# +# --- Mono exes/dlls +: ${MONO_PREFIX=/usr} +if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then + printf "%s\n" "${monolist[@]}" | MONO_PATH=$MONO_PREFIX/lib${MONO_PATH:+:$MONO_PATH} prefix=$MONO_PREFIX $MONO_PREFIX/bin/mono-find-requires || echo "WARNING: MONO RPM REQUIRES WERE NOT GENERATED FOR THIS BUILD!!" 1>&2 +fi + +# +# --- pkgconfig requires +[ -x /usr/lib/rpm/pkgconfigdeps.sh -a -n "$pkgconfiglist" ] && + printf "%s\n" "${pkgconfiglist[@]}" | /usr/lib/rpm/pkgconfigdeps.sh -R | sort -u + +# +# --- Kernel module imported symbols +[ -x ${0%/*}/find-requires.ksyms ] && + printf "%s\n" "${filelist[@]}" | ${0%/*}/find-requires.ksyms "$@" + +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements new file mode 100755 index 0000000..fe03e3a --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements @@ -0,0 +1,14 @@ +#!/bin/bash + +# This script reads filenames from STDIN and outputs any relevant provides +# information that needs to be included in the package. +IFS=$'\n' +filelist=($(cat)) + +# +# --- Kernel module hardware identifiers +# (e.g., modalias(pci:v0000109Ed00000878sv00000070sd0000FF01bc*sc*i*) +[ -x /usr/lib/rpm/find-supplements.ksyms ] && + printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/find-supplements.ksyms "$@" + +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements.ksyms b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements.ksyms new file mode 100755 index 0000000..1b94c1e --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/find-supplements.ksyms @@ -0,0 +1,117 @@ +#! /bin/sh + +SPECFILE=${RPMBUILD_SPECFILE:-/usr/src/packages/SOURCES/$1.spec} +IFS=$'\n' +PACKAGE=$1 + +case "$1" in +kernel-module-*) ;; # Fedora kernel module package names start with + # kernel-module. +kernel*) is_kernel_package=1 ;; +esac + +if ! [ -z "$is_kernel_package" ]; then + cat > /dev/null + exit 0 +fi + +print_modaliases() { + declare class=$1 variants=$2 pos=$3 + if [ -n "$variants" ]; then + echo "${class:0:pos}[$variants]${class:pos+1}" + else + [ -z "$class" ] || echo "$class" + fi +} + +combine_modaliases() { + declare tag class variants pos n + read class + while read tag; do + for ((n=0; n<${#class}; n++)); do + if [ "*" != "${class:n:1}" -a \ + "${class:0:n}" = "${tag:0:n}" -a \ + "${class:n+1}" = "${tag:n+1}" ] && + ( [ -z "$pos" ] || [ $n = $pos ] ); then + variants="${variants:-${class:n:1}}${tag:n:1}" + pos=$n + break + fi + done + if [ $n -eq ${#class} ]; then + print_modaliases "$class" "$variants" "$pos" + variants= + pos= + class=$tag + fi + done + print_modaliases "$class" "$variants" "$pos" +} + +# Encode all characters other than [*:a-zA-Z0-9] in stdin as %XX. +# (This includes the % character itself, which becomes %25.) +hexenc() { + local line hex + + while read line; do + set -- "" "$line" + while [[ "$2" =~ ([*:a-zA-Z0-9]*)([^*:a-zA-Z0-9])(.*) ]]; do + hex=$(echo -n "${BASH_REMATCH[2]}" | hexdump -e '"%X"') + set -- "$1${BASH_REMATCH[1]}%$hex" "${BASH_REMATCH[3]}" + done + echo "$1$2" + done +} + +aliases_of_filelist() { + modlist=$(mktemp) + have_module=1 + for module in $(grep -E '/lib/modules/.+\.ko$'); do + vermagic=$(/sbin/modinfo -F vermagic "$module") + krel=${vermagic%% *} + if ! test -x /sbin/modinfo; then + echo "ERROR: add module-init-tools to BuildRequires" >&2 + exit 1 + fi + have_module=0 + /sbin/modinfo -F alias "$module" \ + | hexenc \ + | sed -nre "s,(.+:.+),modalias(kernel-${krel##*-}:\\1),p" | tee -a $modlist + done + if ! test -s "$modlist" && test $have_module = 0; then + echo "packageand(kernel-${krel##*-}:$PACKAGE)" + fi + rm -f $modlist +} + +aliases_of_specfile_macro() { + declare regex + + regex=$( + set -o noglob + set -- $(sed -ne 's:^%supplements_kernel_module[ \t]::p' \ + $SPECFILE) + while [ $# -ge 1 ]; do + regex=$(echo "$1" \ + | sed -e 's:[.]:\\.:g' \ + -e 's:?:.:g' \ + -e 's:\*:.*:g' \ + -e 's:\\:\\\\:g') + echo -n "^$regex\$" + [ $# -ge 2 ] && echo -n "|" + shift + done + ) + + if [ -n "$regex" ]; then + awk ' + $1 == "alias" && $3 ~ regex { print $2 } + ' regex="$regex" /lib/modules/*/modules.alias + fi +} + +( aliases_of_filelist + aliases_of_specfile_macro "$1" +) \ +| sort -u \ +| combine_modaliases diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/firmware.prov b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/firmware.prov new file mode 100755 index 0000000..12f8336 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/firmware.prov @@ -0,0 +1,8 @@ +#!/bin/sh +# Add firmware files in /lib/firmware into RPM provides + +while read instfile ; do + case $instfile in + */lib/firmware/*) test -f "$instfile" && echo "firmware(${instfile##*/lib/firmware/})" ;; + esac +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fontconfig.prov b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fontconfig.prov new file mode 100755 index 0000000..bfb6ea0 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/fontconfig.prov @@ -0,0 +1,24 @@ +#!/bin/bash +# +# Script to install in: +# /usr/lib/rpm/redhat/find-provides.d +# +# Transform font files into RPM provides +# Requires fontconfig >= 2.6.90 +# +# Author: Behdad Esfahbod +# Based on other provides scripts from RPM +# + +fcquery=/usr/bin/fc-query + +if [ ! -x $fcquery ]; then + cat > /dev/null + exit 0 +fi + +# filter out anything outside main fontconfig path +grep /usr/share/fonts/ | +while read fn; do + $fcquery --format '%{=pkgkit}' "${fn}" 2> /dev/null +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/libtooldeps.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/libtooldeps.sh new file mode 100755 index 0000000..d8937c8 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/libtooldeps.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +[ $# -ge 2 ] || { + cat > /dev/null + exit 0 +} + +case $1 in +-P|--provides) + shift + RPM_BUILD_ROOT="$1" + while read possible + do + case "$possible" in + *.la) + if grep -iq '^# Generated by ltmain.sh' "$possible" 2> /dev/null ; then + possible="`echo ${possible} | sed -e s,${RPM_BUILD_ROOT}/,/,`" + echo "libtool($possible)" + fi + ;; + esac + done + ;; +-R|--requires) + while read possible ; do + case "$possible" in + *.la) + for dep in `grep '^dependency_libs='"$possible" 2> /dev/null | \ + sed -e "s,^dependency_libs='\(.*\)',\1,g"` + do + case "$dep" in + /*.la) + echo "libtool($dep)" + ;; + esac + done + ;; + esac + done + ;; +esac +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros new file mode 100644 index 0000000..4b8f339 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros @@ -0,0 +1,1187 @@ +#/*! \page config_macros Default configuration: /usr/lib/rpm/macros +# \verbatim +# +# This is a global RPM configuration file. All changes made here will +# be lost when the rpm package is upgraded. Any per-system configuration +# should be added to /etc/rpm/macros, while per-user configuration should +# be added to ~/.rpmmacros. +# +#============================================================================== +# Macro naming conventions (preliminary): +# +# Macros that begin with an underscore are "local" in the sense that +# they (if used) will not be exported in rpm headers. Some macros +# that don't start with an underscore (but look like they should) +# are compatible with macros generated by rpm-2.5.x and will be made +# more consistent in a future release. +# + +#============================================================================== +# ---- A macro that expands to nothing. +# +%nil %{!?nil} + +#============================================================================== +# ---- filesystem macros. +# +%_usr %{_buildPrefix}/usr +%_usrsrc %{_usr}/src +%_var %{_buildPrefix}/var + +#============================================================================== +# ---- Generally useful path macros. +# +%__7zip /usr/bin/7za +%__awk gawk +%__bzip2 /bin/bzip2 +%__cat /bin/cat +%__chgrp /bin/chgrp +%__chmod /bin/chmod +%__chown /bin/chown +%__cp /bin/cp +%__cpio /bin/cpio +%__file /bin/file +%__gpg /usr/bin/gpg +%__grep /bin/grep +%__gzip /bin/gzip +%__id /bin/id +%__id_u %{__id} -u +%__install /bin/install +%__ln_s ln -s +%__lrzip /usr/bin/lrzip +%__lzip /usr/bin/lzip +# Deprecated, use %__xz instead. +%__lzma %__xz --format=lzma +%__xz /bin/xz +%__make oe_runmake +%__mkdir /bin/mkdir +%__mkdir_p /bin/mkdir -p +%__mv /bin/mv +%__patch /bin/patch +%__perl /bin/perl +%__python /usr/bin/python +%__restorecon /sbin/restorecon +%__rm /bin/rm +%__rsh /usr/bin/rsh +%__sed /bin/sed +%__semodule /usr/bin/semodule +%__ssh /usr/bin/ssh +%__tar /bin/tar +%__unzip /usr/bin/unzip +%__git /usr/bin/git +%__hg /usr/bin/hg +%__bzr /usr/bin/bzr +%__quilt /usr/bin/quilt + +#Add for yocto +%fdupes fdupes +#============================================================================== +# ---- Build system path macros. +# +%__ar ar +%__as as +%__cc \${HOST_SYS}-gcc +%__cpp \${HOST_SYS}-gcc -E +%__cxx \${HOST_SYS}-g++ +%__ld ld +%__nm /bin/nm +%__objcopy /bin/objcopy +%__objdump /bin/objdump +%__ranlib ranlib +%__remsh %{__rsh} +%__strip \${HOST_SYS}-strip + +# XXX avoid failures if tools are not installed when rpm is built. +%__libtoolize libtoolize +%__aclocal aclocal +%__autoheader autoheader +%__automake automake +%__autoconf autoconf + +#============================================================================== +# Conditional build stuff. + +# Check if symbol is defined. +# Example usage: %if %{defined with_foo} && %{undefined with_bar} ... +%defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}} +%undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} + +# Shorthand for %{defined with_...} +%with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} +%without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} + +# Handle conditional builds. %bcond_with is for case when feature is +# default off and needs to be activated with --with ... command line +# switch. %bcond_without is for the dual case. +# +# %bcond_with foo defines symbol with_foo if --with foo was specified on +# command line. +# %bcond_without foo defines symbol with_foo if --without foo was *not* +# specified on command line. +# +# For example (spec file): +# +# (at the beginning) +# %bcond_with extra_fonts +# %bcond_without static +# (and later) +# %if %{with extra_fonts} +# ... +# %else +# ... +# %endif +# %if ! %{with static} +# ... +# %endif +# %ifdef %{with static} +# ... +# %endif +# %{?with_static: ... } +# %{!?with_static: ... } +# %{?with_extra_fonts: ... } +# %{!?with_extra_fonts: ... } + +# +# The bottom line: never use without_foo, _with_foo nor _without_foo, only +# with_foo. This way changing default set of bconds for given spec is just +# a matter of changing single line in it and syntax is more readable. +%bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} +%bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} +# +#============================================================================== +# ---- Required rpmrc macros. +# Macros that used to be initialized as a side effect of rpmrc parsing. +# These are the default values that can be overridden by other +# (e.g. per-platform, per-system, per-packager, per-package) macros. +# +# The directory where rpm's configuration and scripts live +%_rpmconfigdir /usr/share/spec2yocto/macro + +# The directory where sources/patches will be unpacked and built. +%_builddir %{_topdir}/BUILD + +# The interpreter used for build scriptlets. +%_buildshell /bin/sh + +# The path to the bzip2 executable (legacy, use %{__bzip2} instead). +%_bzip2bin %{__bzip2} + +# The location of the rpm database file(s). +%_dbpath %{_var}/lib/rpm + +# The location of the rpm database file(s) after "rpm --rebuilddb". +%_dbpath_rebuild %{_dbpath} + +%_keyringpath %{_dbpath}/pubkeys/ + +# +# Path to script that creates debug symbols in a /usr/lib/debug +# shadow tree. +# +# A spec file can %%define _find_debuginfo_opts to pass options to +# the script. See the script for details. +# +%__debug_install_post \ + %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\ +%{nil} + +# Template for debug information sub-package. +%debug_package \ +%global __debug_package 1\ +%package debugsource\ +Summary: Debug sources for package %{name}\ +Group: Development/Debug\ +AutoReqProv: 0\ +%description debugsource\ +This package provides debug sources for package %{name}.\ +Debug sources are useful when developing applications that use this\ +package or when debugging this package.\ +%files debugsource -f debugsources.list\ +%defattr(-,root,root)\ +%{nil} + +%_defaultdocdir %{_datadir}/doc/packages +%_defaultlicensedir %{_datadir}/licenses +%_docdir_fmt %%{NAME} + +# The path to the gzip executable (legacy, use %{__gzip} instead). +%_gzipbin %{__gzip} + +# The Unix time of the latest kept changelog entry in binary packages. +# Any older entry is not packaged in binary packages. +%_changelog_trimtime 0 + +# The directory where newly built binary packages will be written. +%_rpmdir %{_topdir}/RPMS + +# A template used to generate the output binary package file name +# (legacy). +%_rpmfilename %{_build_name_fmt} + +# The directory where sources/patches from a source package will be +# installed. This is also where sources/patches are found when building. +%_sourcedir %{_topdir}/SOURCES + +# The directory where the spec file from a source package will be +# installed. +%_specdir %{_topdir}/SPECS + +# The directory where newly built source packages will be written. +%_srcrpmdir %{_topdir}/SRPMS + +# The directory where buildroots will be created. +%_buildrootdir %{_topdir}/BUILDROOT + +# Build root path, where %install installs the package during build. +%buildroot %{_buildrootdir}/%{name}-%{version}-%{release}.%{_arch} + +# Directory where temporaray files can be created. +%_tmppath %{_var}/tmp + +# Path to top of build area. +%_topdir %{expand:%%global _topdir %{lua:if posix.access(rpm.expand("%{_usrsrc}/packages"), "w") then print "%{_usrsrc}/packages" else print "%{getenv:HOME}/rpmbuild" end} \ +}%_topdir + +# The path to the unzip executable (legacy, use %{__unzip} instead). +%_unzipbin %{__unzip} + +#============================================================================== +# ---- Optional rpmrc macros. +# Macros that are initialized as a side effect of rpmrc and/or spec +# file parsing. +# +# The sub-directory (relative to %{_builddir}) where sources are compiled. +# This macro is set after processing %setup, either explicitly from the +# value given to -n or the default name-version. +# +#%buildsubdir + +# Configurable distribution information, same as Distribution: tag in a +# specfile. +# +#%distribution + +# Configurable distribution URL, same as DistURL: tag in a specfile. +# The URL will be used to supply reliable information to tools like +# rpmfind. +# +# Note: You should not configure with disturl (or build packages with +# the DistURL: tag) unless you are willing to supply content in a +# yet-to-be-determined format at the URL specified. +# +#%disturl + +# Configurable bug URL, same as BugURL: tag in a specfile. +# The URL will be used to supply reliable information to where +# to file bugs. +# +#%bugurl + +# Boolean (i.e. 1 == "yes", 0 == "no") that controls whether files +# marked as %doc should be installed. +#%_excludedocs + +# The port and machine name of a FTP proxy host running TIS firewall. +# +#%_ftpport +#%_ftpproxy + +# The signature to use and the location of configuration files for +# signing packages with GNU gpg. +# +#%_gpg_name +#%_gpg_path + +# The port and machine name of an HTTP proxy host. +# +#%_httpport +#%_httpproxy + +# The PATH put into the environment before running %pre/%post et al. +# +%_install_script_path /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin + +# A colon separated list of desired locales to be installed; +# "all" means install all locale specific files. +# +%_install_langs all + +# The value of CLASSPATH in build scriptlets (iff configured). +# +#%_javaclasspath all + +# Import packaging conventions from jpackage.org (prefixed with _ +# to avoid name collisions). +# +%_javadir %{_datadir}/java +%_javadocdir %{_datadir}/javadoc + +# A colon separated list of paths where files should *not* be installed. +# Usually, these are network file system mount points. +# +#%_netsharedpath + +# (experimental) +# The type of pattern match used on rpmdb iterator selectors: +# "default" simple glob-like regex, periods will be escaped, +# splats will have period prepended, full "^...$" match +# required. Also, file path tags will use glob(7). +# "strcmp" compare strings +# "regex" regex(7) patterns using regcomp(3)/regexec(3) +# "glob" glob(7) patterns using fnmatch(3) +# +%_query_selector_match default + +# Configurable packager information, same as Packager: in a specfile. +# +#%packager + +# Compression type and level for source/binary package payloads. +# "w9.gzdio" gzip level 9 (default). +# "w9.bzdio" bzip2 level 9. +# "w7.xzdio" xz level 7, xz's default. +# "w7.lzdio" lzma-alone level 7, lzma's default +# +#%_source_payload w9.gzdio +%_binary_payload w5.lzdio + +# Algorithm to use for generating file checksum digests on build. +# If not specified or 0, MD5 is used. +# WARNING: non-MD5 is backwards incompatible, don't enable lightly! +# The supported algorithms may depend on NSS version, as of NSS +# 3.11.99.5 the following are supported: +# 1 MD5 (default) +# 2 SHA1 +# 8 SHA256 +# 9 SHA384 +# 10 SHA512 +# +#%_source_filedigest_algorithm 1 +#%_binary_filedigest_algorithm 1 + +# Configurable vendor information, same as Vendor: in a specfile. +# +#%vendor + +# Default fuzz level for %patch in spec file. +%_default_patch_fuzz 0 + +# Default patch flags +#%_default_patch_flags -s + +#============================================================================== +# ---- Build configuration macros. +# +# Script gets packaged file list on input and buildroot as first parameter. +# Returns list of unpackaged files, i.e. files in $RPM_BUILD_ROOT not packaged. +# +# Note: Disable (by commenting out) for legacy compatibility. +%__check_files %{_rpmconfigdir}/check-files %{buildroot} + +# +# Should unpackaged files in a build root terminate a build? +# +# Note: The default value should be 0 for legacy compatibility. +%_unpackaged_files_terminate_build 1 + +# +# Should missing %doc files in the build directory terminate a build? +# +# Note: The default value should be 0 for legacy compatibility. +%_missing_doc_files_terminate_build 1 + +# +# Should binaries in noarch packages terminate a build? +%_binaries_in_noarch_packages_terminate_build 1 + +# +# Should rpm try to download missing sources at build-time? +# Enabling this is dangerous as long as rpm has no means to validate +# the integrity of the download with a digest or signature. +%_disable_source_fetch 1 + +# +# Program to call for each successfully built and written binary package. +# The package name is passed to the program as a command-line argument. +# +#%_build_pkgcheck %{_bindir}/rpmlint + +# +# Program to call for the whole binary package set after build. +# The package set is passed to the program via command-line arguments. +# +#%_build_pkgcheck_set %{_bindir}/rpmlint + +# +# Program to call for successfully built and written SRPM. +# The package name is passed to the program as a command-line argument. +# +#%_build_pkgcheck_srpm %{_bindir}/rpmlint + +# +# Should the build of packages fail if package checker (if defined) returns +# non-zero exit status? +# +#%_nonzero_exit_pkgcheck_terminate_build 1 + +# +# Should an ELF file processed by find-debuginfo.sh having no build ID +# terminate a build? This is left undefined to disable it and defined to +# enable. +# +#%_missing_build_ids_terminate_build 1 + +# +# Use internal dependency generator rather than external helpers? +%_use_internal_dependency_generator 1 + +# +# Filter GLIBC_PRIVATE Provides: and Requires: +%_filter_GLIBC_PRIVATE 0 + +# Directories whose contents should be considered as documentation. +%__docdir_path %{_datadir}/doc:%{_datadir}/man:%{_datadir}/info:%{_datadir}/gtk-doc/html:%{?_docdir}:%{?_mandir}:%{?_infodir}:%{?_javadocdir}:/usr/doc:/usr/man:/usr/info:/usr/X11R6/man + +# maxnum,cuttime,minnum +# 2009/03/01 (SLES11 GA) +%_binarychangelogtrim 0,1235862000,10 + +# +# Path to scripts to autogenerate package dependencies, +# +%__set_helper_env %{lua: +posix.setenv("RPMBUILD_SPECFILE",rpm.expand("%?_specfile")); +posix.setenv("RPMBUILD_SOURCEDIR",rpm.expand("%?_sourcedir")); +} +# Note: Used iff _use_internal_dependency_generator is zero. +#%__find_provides %{_rpmconfigdir}/rpmdeps --provides +#%__find_requires %{_rpmconfigdir}/rpmdeps --requires +%__find_provides %{__set_helper_env}%{_rpmconfigdir}/find-provides %name +%__find_requires %{__set_helper_env}%{_rpmconfigdir}/find-requires %name +#%__find_conflicts ??? +#%__find_obsoletes ??? +%__find_supplements %{__set_helper_env}%{_rpmconfigdir}/find-supplements %name +#%__find_enhances ??? + +# +# Path to file attribute classifications for automatic dependency +# extraction, used when _use_internal_dependency_generator +# is used (on by default). Files can have any number of attributes +# attached to them, and dependencies are separately extracted for +# each attribute. +# +# To define a new file attribute called "myattr", add a file named +# "myattr" to this directory, defining the requires and/or provides +# finder script(s) + magic and/or path pattern regex(es). +# provides finder and +# %__myattr_requires path + args to requires finder script for +# %__myattr_provides path + args to provides finder script for +# %__myattr_magic libmagic classification match regex +# %__myattr_path path based classification match regex +# %__myattr_flags flags to control behavior (just "exeonly" for now) +# %__myattr_exclude_magic exclude by magic regex +# %__myattr_exclude_path exclude by path regex +# +%_fileattrsdir %{_rpmconfigdir}/fileattrs + +#============================================================================== +# ---- Database configuration macros. +# Macros used to configure Berkley db parameters. +# +# rpmdb macro configuration values are a colon (or white space) separated +# list of tokens, with an optional '!' negation to explicitly disable bit +# values, or a "=value" if a parameter. A per-tag value is used (e.g. +# %_dbi_config_Packages) if defined, otherwise a per-rpmdb default +# (e.g. %_dbi_config). +# +# Here's a short list of the tokens, with a guess of whether the option is +# useful: +# (nothing) currently used in rpm, known to work. +# "+++" under development, will be supported in rpm eventually. +# "???" I have no clue, you're mostly on your own. +# +# If you do find yourself inclined to fiddle, here's what I see (shrug): +# 1) Only the value of mp_size has any serious impact on overall performance, +# and you will need ~256Kb to handle a typical machine install. +# 2) Only the Packages hash, because of the size of the values (i.e. headers), +# will ever need tuning. Diddle the pagesize if you're interested, although +# I believe that you will find pagesize=512 "best". +# 3) Adding nofsync increases speed, but risks total data loss. Fiddle shared +# and/or mp_size instead. +# +# token works? Berkeley db flag or value +#================================================== +#---------------------- DBENV tunable values: +# mmapsize=16Mb DBENV->set_mp_mmapsize +# cachesize=1Mb DBENV->set_cachesize, DB->set_cachesize +#---------------------- DB->open bits: +# nommap ??? DB_NOMMAP +#----------------------- rpmdb specific configuration: +# lockdbfd (always on for Packages) Use fcntl(2) locking ? +# nofsync Disable fsync(2) call performed after db3 writes? +# + +# Misc BDB tuning options +%__dbi_other mp_mmapsize=128Mb mp_size=1Mb + +%_dbi_config %{?__dbi_other} nofsync + +# "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd". +%_dbi_config_Packages %{?__dbi_other} lockdbfd + +#============================================================================== +# ---- GPG/PGP/PGP5 signature macros. +# Macro(s) to hold the arguments passed to GPG/PGP for package +# signing and verification. +# +%__gpg_check_password_cmd %{__gpg} \ + gpg --batch --no-verbose --passphrase-fd 3 -u "%{_gpg_name}" -so - + +%__gpg_sign_cmd %{__gpg} \ + gpg --batch --no-verbose --no-armor --passphrase-fd 3 \ + %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} \ + --no-secmem-warning \ + -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename} + +# XXX rpm >= 4.1 verifies signatures internally +#%__gpg_verify_cmd %{__gpg} \ +# gpg --batch --no-verbose --verify --no-secmem-warning \ +# %{__signature_filename} %{__plaintext_filename} +# +# XXX rpm-4.1 verifies prelinked libraries using a prelink undo helper. +# Normally this macro is defined in /etc/rpm/macros.prelink, installed +# with the prelink package. If the macro is undefined, then prelinked +# shared libraries contents are MD5 digest verified (as usual), rather +# than MD5 verifying the output of the prelink undo helper. +# +# Note: The 2nd token is used as argv[0] and "library" is a +# placeholder that will be deleted and replaced with the appropriate +# library file path. +#%__prelink_undo_cmd /usr/sbin/prelink prelink -y library + +# Horowitz Key Protocol server configuration +# +%_hkp_keyserver http://pgp.mit.edu +%_hkp_keyserver_query %{_hkp_keyserver}:11371/pks/lookup?op=get&search=0x + +#============================================================================== +# ---- Transaction macros. +# Macro(s) used to parameterize transactions. +# +# The output binary package file name template used when building +# binary packages. +# +# XXX Note: escaped %% for use in headerSprintf() +%_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm + +# Verify digest/signature flags for various rpm modes: +# 0x30300 (_RPMVSF_NODIGESTS) --nohdrchk if set, don't check digest(s) +# 0xc0c00 (_RPMVSF_NOSIGNATURES) --nosignature if set, don't check signature(s) +# 0xf0000 (_RPMVSF_NOPAYLOAD) --nolegacy if set, check header+payload (if possible) +# 0x00f00 (_RPMVSF_NOHEADER) --nohdrchk if set, don't check rpmdb headers +# +# For example, the value 0xf0c00 (=0xf0000+0xc0c00) disables legacy +# digest/signature checking, disables signature checking, but attempts +# digest checking, also when retrieving headers from the database. +# +# You also can do: +# >>> hex(rpm._RPMVSF_NOSIGNATURES) +# '0xc0c00' +# or: +# >>> hex(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NOPAYLOAD) +# '0xf0c00' +# at the python prompt for example, after "import rpm". +# +# The checking overhead is ~11ms per header for digests/signatures; +# each header from the database is checked only when first encountered +# for each database open. +# +# Note: the %_vsflags_erase applies to --upgrade/--freshen modes as +# well as --erase. +# +%__vsflags 0xf0000 +%_vsflags_build %{__vsflags} +%_vsflags_erase %{__vsflags} +%_vsflags_install %{__vsflags} +%_vsflags_query %{__vsflags} +%_vsflags_rebuilddb 0xc0c00 +%_vsflags_verify %{__vsflags} + +# +# Default output format string for rpm -qa +# +# XXX Note: escaped %% for use in headerFormat() +%_query_all_fmt %%{nvra} + +# +# Default path to the file used for transaction fcntl lock. +%_rpmlock_path %{_dbpath}/.rpm.lock + +# +# ISA dependency marker, none for noarch and name-bitness for others +%_isa %{?__isa:(%{__isa})}%{!?__isa:%{nil}} + +# +# Define per-arch and per-os defaults. Normally overridden by per-target macros. +%__arch_install_post %{nil} +%__os_install_post %{___build_post} + +# Macro to fix broken permissions in sources +%_fixperms %{__chmod} -Rf a+rX,u+w,g-w,o-w + +#============================================================================== +# ---- Scriptlet template templates. +# Global defaults used for building scriptlet templates. +# + +%___build_shell %{?_buildshell:%{_buildshell}}%{!?_buildshell:/bin/sh} +%___build_args -e +%___build_cmd %{?_sudo:%{_sudo} }%{?_remsh:%{_remsh} %{_remhost} }%{?_remsudo:%{_remsudo} }%{?_remchroot:%{_remchroot} %{_remroot} }%{___build_shell} %{___build_args} +%___build_pre \ + RPM_SOURCE_DIR=\"%{u2p:%{_sourcedir}}\"\ + RPM_BUILD_DIR=\"%{u2p:%{_builddir}}\"\ + RPM_OPT_FLAGS=\"%{optflags}\"\ + RPM_ARCH=\"%{_arch}\"\ + RPM_OS=\"%{_os}\"\ + export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\ + RPM_DOC_DIR=\"%{_docdir}\"\ + export RPM_DOC_DIR\ + RPM_PACKAGE_NAME=\"%{name}\"\ + RPM_PACKAGE_VERSION=\"%{version}\"\ + RPM_PACKAGE_RELEASE=\"%{release}\"\ + export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\ + LANG=C\ + export LANG\ + unset CDPATH DISPLAY ||:\ + %{?buildroot:RPM_BUILD_ROOT=\"%{u2p:%{buildroot}}\"\ + export RPM_BUILD_ROOT}\ + %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\ + export CLASSPATH}\ + \ + %{verbose:set -x}%{!verbose:exec > /dev/null}\ + umask 022\ + cd \"%{u2p:%{_builddir}}\"\ + + +#%___build_body %{nil} +%___build_post exit 0 + +%___build_template #!%{___build_shell}\ +%{___build_pre}\ +%{nil} + +#%{___build_body}\ +#%{___build_post}\ +#%{nil} + +#============================================================================== +# ---- Scriptlet templates. +# Macro(s) that expand to a command and script that is executed. +# CAVEAT: All macro expansions must fit in a BUFSIZ (8192 byte) buffer. +# +%__spec_prep_shell %{___build_shell} +%__spec_prep_args %{___build_args} +%__spec_prep_cmd %{___build_cmd} +%__spec_prep_pre %{___build_pre} +%__spec_prep_body %{___build_body} +%__spec_prep_post %{___build_post} +%__spec_prep_template #!%{__spec_prep_shell}\ +%{__spec_prep_pre}\ +%{nil} + +#%{__spec_prep_body}\ +#%{__spec_prep_post}\ +#%{nil} + +%__spec_build_shell %{___build_shell} +%__spec_build_args %{___build_args} +%__spec_build_cmd %{___build_cmd} +%__spec_build_pre %{___build_pre} +%__spec_build_body %{___build_body} +%__spec_build_post %{___build_post} +%__spec_build_template #!%{__spec_build_shell}\ +%{__spec_build_pre}\ +%{nil} + +#%{__spec_build_body}\ +#%{__spec_build_post}\ +#%{nil} + +%__spec_install_shell %{___build_shell} +%__spec_install_args %{___build_args} +%__spec_install_cmd %{___build_cmd} +%__spec_install_pre %{___build_pre} +%__spec_install_body %{___build_body} +%__spec_install_post\ +%{?__debug_package:%{__debug_install_post}}\ +%{__arch_install_post}\ +%{__os_install_post}\ +%{nil} +%__spec_install_template #!%{__spec_install_shell}\ +%{__spec_install_pre}\ +%{nil} + +#%{__spec_install_body}\ +#%{__spec_install_post}\ +#%{nil} + +%__spec_check_shell %{___build_shell} +%__spec_check_args %{___build_args} +%__spec_check_cmd %{___build_cmd} +%__spec_check_pre %{___build_pre} +%__spec_check_body %{___build_body} +%__spec_check_post %{___build_post} +%__spec_check_template #!%{__spec_check_shell}\ +%{__spec_check_pre}\ +%{nil} + +#%{__spec_check_body}\ +#%{__spec_check_post}\ +#%{nil} + +#%__spec_autodep_shell %{___build_shell} +#%__spec_autodep_args %{___build_args} +#%__spec_autodep_cmd %{___build_cmd} +#%__spec_autodep_pre %{___build_pre} +#%__spec_autodep_body %{___build_body} +#%__spec_autodep_post %{___build_post} +#%__spec_autodep_template #!%{__spec_autodep_shell}\ +#%{__spec_autodep_pre}\ +#%{nil} + +#%{__spec_autodep_body}\ +#%{__spec_autodep_post}\ +#%{nil} + +%__spec_clean_shell %{___build_shell} +%__spec_clean_args %{___build_args} +%__spec_clean_cmd %{___build_cmd} +%__spec_clean_pre %{___build_pre} +%__spec_clean_body %{___build_body} +%__spec_clean_post %{___build_post} +%__spec_clean_template #!%{__spec_clean_shell}\ +%{__spec_clean_pre}\ +%{nil} + +#%{__spec_clean_body}\ +#%{__spec_clean_post}\ +#%{nil} + +%__spec_rmbuild_shell %{___build_shell} +%__spec_rmbuild_args %{___build_args} +%__spec_rmbuild_cmd %{___build_cmd} +%__spec_rmbuild_pre %{___build_pre} +%__spec_rmbuild_body %{___build_body} +%__spec_rmbuild_post %{___build_post} +%__spec_rmbuild_template #!%{__spec_rmbuild_shell}\ +%{__spec_rmbuild_pre}\ +%{nil} + +#%{__spec_rmbuild_body}\ +#%{__spec_rmbuild_post}\ +#%{nil} + +# XXX We don't expand pre/post install scriptlets (yet). +#%__spec_pre_pre %{nil} +#%__spec_pre_post %{nil} +#%__spec_post_pre %{nil} +#%__spec_post_post %{nil} +#%__spec_preun_pre %{nil} +#%__spec_preun_post %{nil} +#%__spec_postun_pre %{nil} +#%__spec_postun_post %{nil} +#%__spec_triggerpostun_pre %{nil} +#%__spec_triggerpostun_post %{nil} +#%__spec_triggerun_pre %{nil} +#%__spec_triggerun_post %{nil} +#%__spec_triggerin_pre %{nil} +#%__spec_triggerin_post %{nil} + +#============================================================================== +# ---- configure macros. +# Macro(s) slavishly copied from autoconf's config.status. +# +%_buildPrefix %{nil} +%_prefix %{_buildPrefix}/usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datadir %{_prefix}/share +%_sysconfdir %{_buildPrefix}/etc +%_sharedstatedir %{_prefix}/com +%_localstatedir %{_prefix}/var +%_lib lib +%_libdir %{_exec_prefix}/%{_lib} +%_includedir %{_prefix}/include +%_infodir %{_datadir}/info +%_mandir %{_datadir}/man + +#============================================================================== +# ---- config.guess platform macros. +# Macro(s) similar to the tokens used by configure. +# +%_build %{_host} +%_build_alias %{_host_alias} +%_build_cpu %{_host_cpu} +%_build_vendor %{_host_vendor} +%_build_os %{_host_os} +%_host i686-tizen-linux-gnu +%_host_alias i686-tizen-linux-gnu%{nil} +%_host_cpu i686 +%_host_vendor tizen +%_host_os linux +%_target %{_host} +%_target_alias %{_host_alias} +%_target_cpu %{_host_cpu} +%_target_vendor %{_host_vendor} +%_target_os %{_host_os} + +#============================================================================== +# ---- specfile macros. +# Macro(s) here can be used reliably for reproducible builds. +# (Note: Above is the goal, below are the macros under development) +# +# The configure macro runs autoconf configure script with platform specific +# directory structure (--prefix, --libdir etc) and compiler flags +# such as CFLAGS. +# +# The configure macro should be invoked as %configure (rather than %{configure}) +# because the rest of the arguments will be expanded using %*. +# +%_configure autotools_do_configure2 +%configure \ + CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ + CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ + FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ + %{_configure} --host=%{_host} --build=%{_build} \\\ + --program-prefix=%{?_program_prefix} \\\ + --disable-dependency-tracking \\\ + --prefix=%{_prefix} \\\ + --exec-prefix=%{_exec_prefix} \\\ + --bindir=%{_bindir} \\\ + --sbindir=%{_sbindir} \\\ + --sysconfdir=%{_sysconfdir} \\\ + --datadir=%{_datadir} \\\ + --includedir=%{_includedir} \\\ + --libdir=%{_libdir} \\\ + --libexecdir=%{_libexecdir} \\\ + --localstatedir=%{_localstatedir} \\\ + --sharedstatedir=%{_sharedstatedir} \\\ + --mandir=%{_mandir} \\\ + --infodir=%{_infodir} \\\ + --disable-dependency-tracking + +#------------------------------------------------------------------------------ +# The make install analogue of %configure for modern autotools: +%make_install %{__make} install DESTDIR=%{?buildroot} + +#------------------------------------------------------------------------------ +# Former make install analogue, kept for compatibility and for old/broken +# packages that don't support DESTDIR properly. +%makeinstall \ + %{__make} \\\ + prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\ + exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\ + bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\ + sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\ + sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \\\ + datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\ + includedir=%{?buildroot:%{buildroot}}%{_includedir} \\\ + libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\ + libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \\\ + localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \\\ + sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \\\ + mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\ + infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\ + install + +#------------------------------------------------------------------------------ +# The GNUconfigure macro does the following: +# update config.guess and config.sub. +# regenerate all autoconf/automake files +# optionally change to a directory (make the directory if requested). +# run configure with correct prefix, platform, and CFLAGS. +# optionally restore current directory. +# +# Based on autogen.sh from GNOME and orginal GNUconfigure +# +%GNUconfigure(MCs:) \ + CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS; \ + LDFLAGS="${LDFLAGS:-%{-s:-s}}" ; export LDFLAGS; \ + %{-C:_mydir="`pwd`"; %{-M: %{__mkdir} -p %{-C*};} cd %{-C*}} \ + dirs="`find ${_mydir} -name configure.in -print`"; export dirs; \ + for coin in `echo ${dirs}` \ +do \ + dr=`dirname ${coin}`; \ +if test -f ${dr}/NO-AUTO-GEN; then \ + : \ +else \ + macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < ${coin}`; \ + ( cd ${dr}; \ + aclocalinclude="${ACLOCAL_FLAGS}"; \ + for k in ${macrodirs}; do \ + if test -d ${k}; then \ + aclocalinclude="${aclocalinclude} -I ${k}"; \ + ##else \ + ## echo "**Warning**: No such directory \`${k}'. Ignored." \ + fi \ + done \ + if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then \ + if grep "sed.*POTFILES" configure.in >/dev/null; then \ + : do nothing -- we still have an old unmodified configure.in \ + else \ + test -r ${dr}/aclocal.m4 || touch ${dr}/aclocal.m4; \ + echo "no" | gettextize --force --copy; \ + test -r ${dr}/aclocal.m4 && %{__chmod} u+w ${dr}/aclocal.m4; \ + fi \ + fi \ + if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then \ + %{__libtoolize} --force --copy; \ + fi \ + aclocal ${aclocalinclude}; \ + if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then \ + %{__autoheader}; \ + fi \ + echo "Running automake --gnu ${am_opt} ..."; \ + %{__automake} --add-missing --gnu ${am_opt}; \ + %{__autoconf}; \ + ); \ + fi \ +done \ + %{-C:${_mydir}}%{!-C:.}/configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} %* ; \ + %{-C:cd ${_mydir}; unset _mydir} + +%patches %{lua: for i, p in ipairs(patches) do print(p.." ") end} +%sources %{lua: for i, s in ipairs(sources) do print(s.." ") end} + +#------------------------------------------------------------------------------ +# Useful perl macros (from Artur Frysiak ) +# +# For example, these can be used as (from ImageMagick.spec from PLD site) +# [...] +# BuildPrereq: perl +# [...] +# %package perl +# Summary: libraries and modules for access to ImageMagick from perl +# Group: Development/Languages/Perl +# Requires: %{name} = %{version} +# %requires_eq perl +# [...] +# %install +# rm -fr $RPM_BUILD_ROOT +# install -d $RPM_BUILD_ROOT/%{perl_sitearch} +# [...] +# %files perl +# %defattr(644,root,root,755) +# %{perl_sitearch}/Image +# %dir %{perl_sitearch}/auto/Image +# +%requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") +%perl_sitearch %(eval "`%{__perl} -V:installsitearch`"; echo $installsitearch) +%perl_sitelib %(eval "`%{__perl} -V:installsitelib`"; echo $installsitelib) +%perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) +%perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) +%perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib) +%perl_privlib %(eval "`%{__perl} -V:installprivlib`"; echo $installprivlib) + +#------------------------------------------------------------------------------ +# Useful python macros for determining python version and paths +# +%python_sitelib %_libdir/python2.7/site-packages +%python_sitearch %_libdir/python2.7/site-packages +%python_version 2.7 + +# More useful perl macros (from Raul Dias ) +# +%perl_version %(perl -V:version | sed "s!.*='!!;s!'.*!!") +%perl_man1ext %(perl -V:man1ext | sed "s!.*='!!;s!'.*!!") +%perl_man3ext %(perl -V:man3ext | sed "s!.*='!!;s!'.*!!") +%perl_man1dir %(perl -V:man1dir | sed "s!.*='!!;s!'.*!!") +%perl_man3dir %(perl -V:man3dir | sed "s!.*='!!;s!'.*!!") +%perl_installman1dir %(perl -V:installman1dir | sed "s!.*='!!;s!'.*!!") +%perl_installman3dir %(perl -V:installman3dir | sed "s!.*='!!;s!'.*!!") +%perl_installarchlib %(perl -V:installarchlib | sed "s!.*='!!;s!'.*!!") +%perl_prefix %{buildroot} + +#------------------------------------------------------------------------------ +# Python specific macro definitions (originally from PLD). +# +%py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND) +%py_prefix %(python -c "import sys; print sys.prefix" 2>/dev/null || echo PYTHON-NOT-FOUND) +%py_libdir %{py_prefix}/%{_lib}/python%{py_ver} +%py_incdir %{py_prefix}/include/python%{py_ver} +%py_sitedir %{py_libdir}/site-packages +%py_compile(O) \ +find %1 -name '*.pyc' -exec rm -f {} \\; \ +python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ +%{-O: \ +find %1 -name '*.pyo' -exec rm -f {} \\; \ +python -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ +} +%py_requires(d) \ +%define minver %py_ver \ +%define maxver %(python -c "import sys; a,b=sys.version_info[:2]; print '%%d.%%d'%%(a,b+1)" 2>/dev/null || echo PYTHON-NOT-FOUND) \ +BuildRequires: python %{-d:python-devel} \ +PreReq: python >= %minver, python < %maxver + + +#------------------------------------------------------------------------------ +# arch macro for all Intel i?86 compatibile processors +# (Note: This macro (and it's analogues) will probably be obsoleted when +# rpm can use regular expressions against target platforms in macro +# conditionals. +# +%ix86 i386 i486 i586 i686 pentium3 pentium4 athlon geode + +#------------------------------------------------------------------------------ +# arch macro for all supported ARM processors +%arm armv3l armv4b armv4l armv4tl armv5b armv5l armv5teb armv5tel armv5tejl armv6l armv7l armv7hl +%arml armv3l armv4l armv5l armv5tel armv6l armv7l armv7hl +%armb armv4b armv5b armv5teb + +#------------------------------------------------------------------------------ +# arch macro for all supported Sparc processors +%sparc sparc sparcv8 sparcv9 sparcv9v sparc64 sparc64v + +#------------------------------------------------------------------------------ +# arch macro for all supported Alpha processors +%alpha alpha alphaev56 alphaev6 alphaev67 + +#------------------------------------------------------------------------------ +# arch macro for all supported PowerPC 64 processors +%power64 ppc64 ppc64p7 + +#------------------------------------------------------------------------ +# Use in %install to generate locale specific file lists. For example, +# +# %install +# ... +# %find_lang %{name} +# ... +# %files -f %{name}.lang +# +%find_lang %{_rpmconfigdir}/find-lang.sh %{buildroot} +%no_lang_C --without-C + + +# Commands + opts to use for retrieving remote files +# Proxy opts can be set through --httpproxy/--httpport popt aliases, +# for any special local needs use %__urlhelper_localopts in system-wide +# or per-user macro configuration. +%__urlhelpercmd /usr/bin/curl +%__urlhelperopts --silent --show-error --fail --location -o +%__urlhelper_proxyopts %{?_httpproxy:--proxy %{_httpproxy}%{?_httpport::%{_httpport}}}%{!?_httpproxy:%{nil}} +%_urlhelper %{__urlhelpercmd} %{?__urlhelper_localopts} %{?__urlhelper_proxyopts} %{__urlhelperopts} + +#------------------------------------------------------------------------------ +# Collection specific macros +%__plugindir %{_libdir}/rpm-plugins +%__collection_font %{__plugindir}/exec.so /usr/bin/fc-cache +%__collection_java %{__plugindir}/exec.so /usr/bin/rebuild-gcj-db +%__collection_sepolicy %{__plugindir}/sepolicy.so +%__collection_sepolicy_flags 1 + +#------------------------------------------------------------------------------ +# transaction specific macros +%__transaction_plugins msm +%__plugindir %{_libdir}/rpm-plugins +%__transaction_msm %{__plugindir}/msm.so + +#------------------------------------------------------------------------------ +# Macros for further automated spec %setup and patch application + +# default to plain patch +%__scm patch +# meh, figure something saner +%__scm_username rpm-build +%__scm_usermail +%__scm_author %{__scm_username} %{__scm_usermail} + +# Plain patch (-m is unused) +%__scm_setup_patch(q) %{nil} +%__scm_apply_patch(qp:m:)\ +%{__patch} %{-p:-p%{-p*}} %{-q:-s} + +# Mercurial (aka hg) +%__scm_setup_hg(q)\ +%{__hg} init %{-q} .\ +%{__hg} add %{-q} .\ +%{__hg} commit %{-q} --user "%{__scm_author}" -m "%{name}-%{version} base" + +%__scm_apply_hg(qp:m:)\ +%{__hg} import - %{-p:-p%{-p*}} %{-q} -m %{-m*} --user "%{__scm_author}" + +# Git +%__scm_setup_git(q)\ +%{__git} init %{-q}\ +%{__git} config user.name "%{__scm_username}"\ +%{__git} config user.email "%{__scm_usermail}"\ +%{__git} add .\ +%{__git} commit %{-q} -a\\\ + --author "%{__scm_author}" -m "%{name}-%{version} base" + +%__scm_apply_git(qp:m:)\ +%{__git} apply %{-p:-p%{-p*}} -\ +%{__git} commit %{-q} -a -m %{-m*} --author "%{__scm_author}" + +# Quilt +%__scm_setup_quilt(q) %{nil} +%__scm_apply_quilt(qp:m:)\ +%{__quilt} import %{-p:-p%{-p*}} %{1} && %{__quilt} push + +# Bzr +%__scm_setup_bzr(q)\ +%{__bzr} init %{-q}\ +%{__bzr} whoami --branch "%{__scm_author}"\ +%{__bzr} add .\ +%{__bzr} commit %{-q} -m "%{name}-%{version} base" + +# bzr doesn't seem to have its own command to apply patches? +%__scm_apply_bzr(qp:m:)\ +%{__patch} %{-p:-p%{-p*}} %{-q:-s}\ +%{__bzr} commit %{-q} -m %{-m*} + +# Single patch application +%apply_patch(qp:m:)\ +%{uncompress:%{1}} | %{expand:%__scm_apply_%{__scm} %{-q} %{-p:-p%{-p*}} %{-m:-m%{-m*}}} + +# Automatically apply all patches +%autopatch(vp:)\ +%{lua:\ +for i, p in ipairs(patches) do\ + print(rpm.expand("%apply_patch -m %{basename:"..p.."} "..rpm.expand("%{!-v:-q} %{-p:-p%{-p*}} ")..p.."\\n"))\ +end} + +# One macro to (optionally) do it all. +# -S Sets the used patch application style, eg '-S git' enables +# usage of git repository and per-patch commits. +# -N Disable automatic patch application +# -p Use -p for patch application +%autosetup(a:b:cDn:TvNS:p:)\ +%setup %{-a} %{-b} %{-c} %{-D} %{-n} %{-T} %{!-v:-q}\ +%{-S:%global __scm %{-S*}}\ +%{-S:%{expand:%__scm_setup_%{-S*} %{!-v:-q}}}\ +%{!-N:%autopatch %{-v} %{-p:-p%{-p*}}} + +# \endverbatim +#*/ + + +#------------------------------------------------------------------------ +# standard build service macros +# +%ext_info .gz +%ext_man .gz + +%info_add() test -x /sbin/install-info -a -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \ +%{nil} + +%info_del() test -x /sbin/install-info -a ! -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --quiet --delete --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \ +%{nil} + +%user_group_add() \ +/usr/sbin/groupadd -o -r %{1} 2>/dev/null || :\ +/usr/sbin/useradd -o -r -g %{1} -d %{2} -s %{3} -c %{4} %{1} 2>/dev/null || :\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.perl b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.perl new file mode 100644 index 0000000..0370411 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.perl @@ -0,0 +1,12 @@ +# Perl specific macro definitions. +# To make use of these macros insert the following line into your spec file: +# %include %{_rpmconfigdir}/macros.perl + +%define __find_requires %{_rpmconfigdir}/find-perl-requires +%define __find_provides %{_rpmconfigdir}/find-perl-provides + +%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib) +%define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch) +%define perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib) +%define perl_privlib %(eval "`perl -V:installprivlib`"; echo $installprivlib) + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.php b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.php new file mode 100644 index 0000000..cf20728 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.php @@ -0,0 +1,9 @@ +# Perl specific macro definitions. +# To make use of these macros insert the following line into your spec file: +# %include %{_rpmconfigdir}/macros.php + +%define __find_requires %{_rpmconfigdir}/find-php-requires +%define __find_provides %{_rpmconfigdir}/find-php-provides + +%define php_pear_dir %{_datadir}/pear + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.python b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.python new file mode 100644 index 0000000..ea1f200 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/macros.python @@ -0,0 +1,18 @@ +# Python specific macro definitions. +# To make use of these macros insert the following line into your spec file: +# %include %{_rpmconfigdir}/macros.python + +# python main version +%define py_ver %(echo `python -c "import sys; sys.stdout.write(sys.version[:3])"`) + +# directories +%define py_prefix %(echo `python -c "import sys; sys.stdout.write(sys.prefix)"`) +%define py_libdir %{py_prefix}/lib/python%{py_ver} +%define py_incdir /usr/include/python%{py_ver} +%define py_sitedir %{py_libdir}/site-packages +%define py_dyndir %{py_libdir}/lib-dynload + +# pure python modules compilation +%define py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])" + +%define py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])" diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-provides b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-provides new file mode 100755 index 0000000..9348457 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-provides @@ -0,0 +1,42 @@ +#!/bin/bash +# +# mono-find-provides +# +# Authors: +# Ben Maurer (bmaurer@ximian.com) +# +# (C) 2005 Novell (http://www.novell.com) +# +# Args: builddir buildroot libdir + +IFS=$'\n' +filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/')) +monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$")) + +# If monodis is in the package being installed, use that one +# This is to support building mono +build_bindir="$2/usr/bin" +build_libdir="$2$3" + +if [ -x $build_bindir/monodis ]; then + monodis="$build_bindir/monodis" + export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} +elif [ -x /usr/bin/monodis ]; then + monodis="/usr/bin/monodis" +else + exit 0; +fi + +export MONO_SHARED_DIR=$1 + +for i in "${monolist[@]}"; do + ($monodis --assembly $i | awk ' + BEGIN { LIBNAME=""; VERSION=""; } + /^Version:/ { VERSION=$2 } + /^Name:/ { LIBNAME=$2 } + END { + if (VERSION && LIBNAME) + print "mono(" LIBNAME ") = " VERSION + } + ') 2>/dev/null +done diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-requires b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-requires new file mode 100755 index 0000000..ea58cae --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/mono-find-requires @@ -0,0 +1,86 @@ +#!/bin/bash +# +# mono-find-requires +# +# Authors: +# Ben Maurer (bmaurer@ximian.com) +# +# (C) 2005 Novell (http://www.novell.com) +# +# Args: builddir buildroot libdir + +IFS=$'\n' +filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/')) +monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$")) + +# If monodis is in the package being installed, use that one +# This is to support building mono +build_bindir="$2/usr/bin" +build_libdir="$2$3" + +if [ -x $build_bindir/monodis ]; then + monodis="$build_bindir/monodis" + export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} +elif [ -x /usr/bin/monodis ]; then + monodis="/usr/bin/monodis" +else + exit 0; +fi + +export MONO_SHARED_DIR=$1 + +REQUIRES=$( + for i in "${monolist[@]}"; do + ($monodis --assemblyref $i | awk ' + BEGIN { START=0; LIBNAME=""; VERSION=""; } + (START==0) && /^[0-9]+: Version=/ { + START=1; + sub(/Version=/, "", $2); + VERSION=$2 + } + + (START==1) && /^\tName=/ { + sub(/Name=/, "", $1); + LIBNAME=$1 + + print "mono(" LIBNAME ") = " VERSION + START=0 + } + ') 2> /dev/null + done +) + +PROVIDES=$( + for i in "${monolist[@]}"; do + ($monodis --assembly $i | awk ' + BEGIN { LIBNAME=""; VERSION=""; } + /^Version:/ { VERSION=$2 } + /^Name:/ { LIBNAME=$2 } + END { + if (VERSION && LIBNAME) + print "mono(" LIBNAME ") = " VERSION + } + ') 2>/dev/null + done +) +# +# This is a little magic trick to get all REQUIRES that are not +# in PROVIDES. While RPM functions correctly when such deps exist, +# they make the metadata a bit bloated. +# + +# Filter out dups from both lists +REQUIRES=$(echo "$REQUIRES" | sort | uniq) +PROVIDES=$(echo "$PROVIDES" | sort | uniq) + +# +# Get a list of elements that exist in exactly one of PROVIDES or REQUIRES +# +UNIQ=$(echo "$PROVIDES +$REQUIRES" | sort | uniq -u) + +# +# Of those, only chose the ones that are in REQUIRES +# +echo "$UNIQ +$REQUIRES" | sort | uniq -d diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-provides.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-provides.sh new file mode 100755 index 0000000..985709e --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-provides.sh @@ -0,0 +1,56 @@ +#!/bin/sh - +# OCaml-specific "find-provides" for RPM. +# By Richard W.M. Jones +# $Id: ocaml-find-provides.sh,v 1.2 2007/09/06 11:49:59 rjones Exp $ + +#set -x + +# Usage: +# (1) If you don't want the module to depend on the exact compiler +# version then use ocaml-find-requires.sh -c, but this is not something +# you should do normally. +# +# (2) For any modules which you want to ignore, use '-i Modulename'. + +OCAMLOBJINFO=ocamlobjinfo +TEMP=`getopt -o i:f: -n ocaml-find-provides.sh -- "$@"` +if [ $? != 0 ]; then echo "ocaml-find-provides.sh: failed" >&2; exit 1; fi +eval set -- "$TEMP" + +ignore_modules=nOTREAL + +while true; do + case "$1" in + -i) ignore_modules="$2 $ignore_modules"; shift 2;; + -f) OCAMLOBJINFO="$2"; shift 2;; + --) shift; break;; + *) echo "ocaml-find-provides.sh: option error at $1"; exit 1;; + esac +done + +# Get the list of files. +files=`sed "s/['\"]/\\\&/g"` + +# Get list of .cmi, .cmo and .cma files. +files=`echo $files | tr '[:blank:]' '\n' | grep '\.cm[ioa]$'` + +if [ -z "$files" ]; then exit 0; fi + +# Get the list of modules exported by the files. +modules=`$OCAMLOBJINFO $files | + grep -E '(Unit|Module) name: ' | + awk '{print $3}'` + +# Turn list of modules into a regexp that matches the module names. +modules_re=`echo $modules | sed 's/ /|/g'` +ignore_modules_re=`echo $ignore_modules | sed 's/ /|/g'` + +# Get a list of the modules these file(s) provide. +$OCAMLOBJINFO $files | +grep -Eo '[0-9a-f]{32}[[:space:]]+[A-Za-z0-9_]+' | +grep -E '[0-9a-f]{32}[[:space:]]+'"($modules_re)\$" | +while read md5sum module; do + echo "ocaml($module) = $md5sum" +done | +grep -Ev "$ignore_modules_re" | +sort -u diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-requires.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-requires.sh new file mode 100755 index 0000000..e10e627 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/ocaml-find-requires.sh @@ -0,0 +1,68 @@ +#!/bin/sh - +# OCaml-specific "find-requires" for RPM. +# By Richard W.M. Jones +# $Id: ocaml-find-requires.sh,v 1.5 2009/10/04 22:34:51 rjones Exp $ + +#set -x + +# Usage: +# (1) If you don't want the module to depend on the exact compiler +# version then use ocaml-find-requires.sh -c, but this is not something +# you should do normally. +# +# (2) For any modules which you want to ignore, use '-i Modulename'. + +OCAMLOBJINFO=ocamlobjinfo +TEMP=`getopt -o ci:f: -n ocaml-find-requires.sh -- "$@"` +if [ $? != 0 ]; then echo "ocaml-find-requires.sh: failed" >&2; exit 1; fi +eval set -- "$TEMP" + +emit_compiler_version=yes +ignore_modules=nOTREAL + +while true; do + case "$1" in + -c) emit_compiler_version=; shift;; + -i) ignore_modules="$2 $ignore_modules"; shift 2;; + -f) OCAMLOBJINFO="$2"; shift 2;; + --) shift; break;; + *) echo "ocaml-find-requires.sh: option error at $1"; exit 1;; + esac +done + +# Get the list of files. +files=`sed "s/['\"]/\\\&/g"` + +# Use ordinary find-requires first. +# echo $files | tr '[:blank:]' '\n' | /usr/lib/rpm/find-requires + +# Get list of .cmi, .cmo and .cma files. +files=`echo $files | tr '[:blank:]' '\n' | grep '\.cm[ioa]$'` + +if [ -z "$files" ]; then exit 0; fi + +# Get the list of modules exported by the file(s). +modules=`$OCAMLOBJINFO $files | + grep -E '(Unit|Module) name: ' | + awk '{print $3}'` + +# Turn list of modules into a regexp that matches the module names. +modules_re=`echo $modules | sed 's/ /|/g'` +ignore_modules_re=`echo $ignore_modules | sed 's/ /|/g'` + +# Get a list of the modules these file(s) depend on. +$OCAMLOBJINFO $files | +grep -Eo '[0-9a-f]{32}[[:space:]]+[A-Za-z0-9_]+' | +grep -Ev '[0-9a-f]{32}[[:space:]]+'"($modules_re)\$" | +while read md5sum module; do + echo "ocaml($module) = $md5sum" +done | +grep -Ev "$ignore_modules_re" | +grep -Ev "^ocaml\((Annot|Asttypes|Outcometree|Cmo_format|Parsetree)\) =" | +sort -u + +if [ -n "$emit_compiler_version" ]; then + # Every OCaml program depends on the version of the + # runtime which was used to compile it. + echo "ocaml(runtime) = `ocamlrun -version | awk '{print $NF}' | sed 's/\+.*//'`" +fi diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.prov b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.prov new file mode 100755 index 0000000..a6d8856 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.prov @@ -0,0 +1,202 @@ +#!/usr/bin/perl + +# RPM (and it's source code) is covered under two separate licenses. + +# The entire code base may be distributed under the terms of the GNU +# General Public License (GPL), which appears immediately below. +# Alternatively, all of the source code in the lib subdirectory of the +# RPM source code distribution as well as any code derived from that +# code may instead be distributed under the GNU Library General Public +# License (LGPL), at the choice of the distributor. The complete text +# of the LGPL appears at the bottom of this file. + +# This alternative is allowed to enable applications to be linked +# against the RPM library (commonly called librpm) without forcing +# such applications to be distributed under the GPL. + +# Any questions regarding the licensing of RPM should be addressed to +# Erik Troan . + +# a simple script to print the proper name for perl libraries. + +# To save development time I do not parse the perl grammmar but +# instead just lex it looking for what I want. I take special care to +# ignore comments and pod's. + +# it would be much better if perl could tell us the proper name of a +# given script. + +# The filenames to scan are either passed on the command line or if +# that is empty they are passed via stdin. + +# If there are lines in the file which match the pattern +# (m/^\s*\$VERSION\s*=\s+/) +# then these are taken to be the version numbers of the modules. +# Special care is taken with a few known idioms for specifying version +# numbers of files under rcs/cvs control. + +# If there are strings in the file which match the pattern +# m/^\s*\$RPM_Provides\s*=\s*["'](.*)['"]/i +# then these are treated as additional names which are provided by the +# file and are printed as well. + +# I plan to rewrite this in C so that perl is not required by RPM at +# build time. + +# by Ken Estes Mail.com kestes@staff.mail.com + +if ("@ARGV") { + foreach (@ARGV) { + process_file($_); + } +} else { + + # notice we are passed a list of filenames NOT as common in unix the + # contents of the file. + + foreach (<>) { + process_file($_); + } +} + + +foreach $module (sort keys %require) { + if (length($require{$module}) == 0) { + print "perl($module)\n"; + } else { + + # I am not using rpm3.0 so I do not want spaces arround my + # operators. Also I will need to change the processing of the + # $RPM_* variable when I upgrade. + + print "perl($module) = $require{$module}\n"; + } +} + +exit 0; + + + +sub process_file { + + my ($file) = @_; + chomp $file; + + if (!open(FILE, $file)) { + warn("$0: Warning: Could not open file '$file' for reading: $!\n"); + return; + } + + my ($package, $version, $incomment, $inover) = (); + + while () { + + # skip the documentation + + # we should not need to have item in this if statement (it + # properly belongs in the over/back section) but people do not + # read the perldoc. + + if (m/^=(head[1-4]|pod|for|item)/) { + $incomment = 1; + } + + if (m/^=(cut)/) { + $incomment = 0; + $inover = 0; + } + + if (m/^=(over)/) { + $inover = 1; + } + + if (m/^=(back)/) { + $inover = 0; + } + + if ($incomment || $inover) { + next; + } + + # skip the data section + if (m/^__(DATA|END)__$/) { + last; + } + + # not everyone puts the package name of the file as the first + # package name so we report all namespaces except some common + # false positives as if they were provided packages (really ugly). + + if (m/^\s*package\s+([_:a-zA-Z0-9]+)\s*;/) { + $package = $1; + undef $version; + if ($package eq 'main') { + undef $package; + } else { + # If $package already exists in the $require hash, it means + # the package definition is broken up over multiple blocks. + # In that case, don't stomp a previous $VERSION we might have + # found. (See BZ#214496.) + $require{$package} = undef unless (exists $require{$package}); + } + } + + # after we found the package name take the first assignment to + # $VERSION as the version number. Exporter requires that the + # variable be called VERSION so we are safe. + + # here are examples of VERSION lines from the perl distribution + + #FindBin.pm:$VERSION = $VERSION = sprintf("%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/); + #ExtUtils/Install.pm:$VERSION = substr q$Revision: 1.9 $, 10; + #CGI/Apache.pm:$VERSION = (qw$Revision: 1.9 $)[1]; + #DynaLoader.pm:$VERSION = $VERSION = "1.03"; # avoid typo warning + #General.pm:$Config::General::VERSION = 2.33; + # + # or with the new "our" pragma you could (read will) see: + # + # our $VERSION = '1.00' + if ($package && m/^\s*(our\s+)?\$(\Q$package\E::)?VERSION\s*=\s+/) { + + # first see if the version string contains the string + # '$Revision' this often causes bizarre strings and is the most + # common method of non static numbering. + + if (m/\$Revision: (\d+[.0-9]+)/) { + $version = $1; + } elsif (m/['"]?(\d+[.0-9]+)['"]?/) { + + # look for a static number hard coded in the script + + $version = $1; + } + $require{$package} ||= $version; + } + + # Allow someone to have a variable that defines virtual packages + # The variable is called $RPM_Provides. It must be scoped with + # "our", but not "local" or "my" (just would not make sense). + # + # For instance: + # + # $RPM_Provides = "blah bleah" + # + # Will generate provides for "blah" and "bleah". + # + # Each keyword can appear multiple times. Don't + # bother with datastructures to store these strings, + # if we need to print it print it now. + + if (m/^\s*(our\s+)?\$RPM_Provides\s*=\s*["'](.*)['"]/i) { + foreach $_ (split(/\s+/, $2)) { + print "$_\n"; + } + } + + } + + close(FILE) || + die("$0: Could not close file: '$file' : $!\n"); + + return; +} diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.req b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.req new file mode 100755 index 0000000..cd2cbde --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/perl.req @@ -0,0 +1,287 @@ +#!/usr/bin/perl + +# RPM (and its source code) is covered under two separate licenses. + +# The entire code base may be distributed under the terms of the GNU +# General Public License (GPL), which appears immediately below. +# Alternatively, all of the source code in the lib subdirectory of the +# RPM source code distribution as well as any code derived from that +# code may instead be distributed under the GNU Library General Public +# License (LGPL), at the choice of the distributor. The complete text +# of the LGPL appears at the bottom of this file. + +# This alternatively is allowed to enable applications to be linked +# against the RPM library (commonly called librpm) without forcing +# such applications to be distributed under the GPL. + +# Any questions regarding the licensing of RPM should be addressed to +# Erik Troan . + +# a simple makedepend like script for perl. + +# To save development time I do not parse the perl grammar but +# instead just lex it looking for what I want. I take special care to +# ignore comments and pod's. + +# It would be much better if perl could tell us the dependencies of a +# given script. + +# The filenames to scan are either passed on the command line or if +# that is empty they are passed via stdin. + +# If there are strings in the file which match the pattern +# m/^\s*\$RPM_Requires\s*=\s*["'](.*)['"]/i +# then these are treated as additional names which are required by the +# file and are printed as well. + +# I plan to rewrite this in C so that perl is not required by RPM at +# build time. + +# by Ken Estes Mail.com kestes@staff.mail.com + +$HAVE_VERSION = 0; +eval { require version; $HAVE_VERSION = 1; }; + + +if ("@ARGV") { + foreach (@ARGV) { + process_file($_); + } +} else { + + # notice we are passed a list of filenames NOT as common in unix the + # contents of the file. + + foreach (<>) { + process_file($_); + } +} + + +foreach $perlver (sort keys %perlreq) { + print "perl >= $perlver\n"; +} +foreach $module (sort keys %require) { + if (length($require{$module}) == 0) { + print "perl($module)\n"; + } else { + + # I am not using rpm3.0 so I do not want spaces around my + # operators. Also I will need to change the processing of the + # $RPM_* variable when I upgrade. + + print "perl($module) >= $require{$module}\n"; + } +} + +exit 0; + + + +sub add_require { + my ($module, $newver) = @_; + my $oldver = $require{$module}; + if ($oldver) { + $require{$module} = $newver + if ($HAVE_VERSION && $newver && version->new($oldver) < $newver); + } + else { + $require{$module} = $newver; + } +} + +sub process_file { + + my ($file) = @_; + chomp $file; + + if (!open(FILE, $file)) { + warn("$0: Warning: Could not open file '$file' for reading: $!\n"); + return; + } + + while () { + + # skip the "= <<" block + + if (m/^\s*\$(?:.*)\s*=\s*<<\s*(["'`])(.+?)\1/ || + m/^\s*\$(.*)\s*=\s*<<(\w+)\s*;/) { + $tag = $2; + while () { + chomp; + ( $_ eq $tag ) && last; + } + $_ = ; + } + + # skip q{} quoted sections - just hope we don't have curly brackets + # within the quote, nor an escaped hash mark that isn't a comment + # marker, such as occurs right here. Draw the line somewhere. + if ( m/^.*\Wq[qxwr]?\s*([{([#|\/])[^})\]#|\/]*$/ && ! m/^\s*(require|use)\s/ ) { + $tag = $1; + $tag =~ tr/{\(\[\#|\//})]#|\//; + $tag = quotemeta($tag); + while () { + ( $_ =~ m/$tag/ ) && last; + } + } + + # skip the documentation + + # we should not need to have item in this if statement (it + # properly belongs in the over/back section) but people do not + # read the perldoc. + + if (/^=(head[1-4]|pod|for|item)/) { + /^=cut/ && next while ; + } + + if (/^=over/) { + /^=back/ && next while ; + } + + # skip the data section + if (m/^__(DATA|END)__$/) { + last; + } + + # Each keyword can appear multiple times. Don't + # bother with datastructures to store these strings, + # if we need to print it print it now. + # + # Again allow for "our". + if (m/^\s*(our\s+)?\$RPM_Requires\s*=\s*["'](.*)['"]/i) { + foreach $_ (split(/\s+/, $2)) { + print "$_\n"; + } + } + + my $modver_re = qr/[.0-9]+/; + + if ( + +# ouch could be in a eval, perhaps we do not want these since we catch +# an exception they must not be required + +# eval { require Term::ReadLine } or die $@; +# eval "require Term::Rendezvous;" or die $@; +# eval { require Carp } if defined $^S; # If error/warning during compilation, + + + (m/^(\s*) # we hope the inclusion starts the line + (require|use)\s+(?!\{) # do not want 'do {' loops + # quotes around name are always legal + ['"]?([^; '"\t#]+)['"]?[\t; ] + # the syntax for 'use' allows version requirements + # the latter part is for "use base qw(Foo)" and friends special case + \s*($modver_re|(qw\s*[(\/'"]\s*|['"])[^)\/"'\$]*?\s*[)\/"'])? + /x) + ) { + my ($whitespace, $statement, $module, $version) = ($1, $2, $3, $4); + + # we only consider require statements that are flushed against + # the left edge. any other require statements give too many + # false positives, as they are usually inside of an if statement + # as a fallback module or a rarely used option + + ($whitespace ne "" && $statement eq "require") && next; + + # if there is some interpolation of variables just skip this + # dependency, we do not want + # do "$ENV{LOGDIR}/$rcfile"; + + ($module =~ m/\$/) && next; + + # skip if the phrase was "use of" -- shows up in gimp-perl, et al. + next if $module eq 'of'; + + # if the module ends in a comma we probably caught some + # documentation of the form 'check stuff,\n do stuff, clean + # stuff.' there are several of these in the perl distribution + + ($module =~ m/[,>]$/) && next; + + # if the module name starts in a dot it is not a module name. + # Is this necessary? Please give me an example if you turn this + # back on. + + # ($module =~ m/^\./) && next; + + # if the module starts with /, it is an absolute path to a file + if ($module =~ m(^/)) { + print "$module\n"; + next; + } + + # sometimes people do use POSIX qw(foo), or use POSIX(qw(foo)) etc. + # we can strip qw.*$, as well as (.*$: + $module =~ s/qw.*$//; + $module =~ s/\(.*$//; + + # if the module ends with .pm, strip it to leave only basename. + $module =~ s/\.pm$//; + + # some perl programmers write 'require URI/URL;' when + # they mean 'require URI::URL;' + + $module =~ s/\//::/; + + # trim off trailing parentheses if any. Sometimes people pass + # the module an empty list. + + $module =~ s/\(\s*\)$//; + + if ( $module =~ m/^v?([0-9._]+)$/ ) { + # if module is a number then both require and use interpret that + # to mean that a particular version of perl is specified + + my $ver = $1; + if ($ver =~ /5.00/) { + $perlreq{"0:$ver"} = 1; + next; + } + else { + $perlreq{"1:$ver"} = 1; + next; + } + + }; + + # ph files do not use the package name inside the file. + # perlmodlib documentation says: + + # the .ph files made by h2ph will probably end up as + # extension modules made by h2xs. + + # so do not expend much effort on these. + + + # there is no easy way to find out if a file named systeminfo.ph + # will be included with the name sys/systeminfo.ph so only use the + # basename of *.ph files + + ($module =~ m/\.ph$/) && next; + + # use base|parent qw(Foo) dependencies + if ($statement eq "use" && ($module eq "base" || $module eq "parent")) { + add_require($module, undef); + if ($version =~ /^qw\s*[(\/'"]\s*([^)\/"']+?)\s*[)\/"']/) { + add_require($_, undef) for split(' ', $1); + } + elsif ($version =~ /(["'])([^"']+)\1/) { + add_require($2, undef); + } + next; + } + $version = undef unless $version =~ /^$modver_re$/o; + + add_require($module, $version); + } + + } + + close(FILE) || + die("$0: Could not close file: '$file' : $!\n"); + + return; +} diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pkgconfigdeps.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pkgconfigdeps.sh new file mode 100755 index 0000000..270dd74 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pkgconfigdeps.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +pkgconfig=/usr/bin/pkg-config +test -x $pkgconfig || { + cat > /dev/null + exit 0 +} + +[ $# -ge 1 ] || { + cat > /dev/null + exit 0 +} + +$pkgconfig --atleast-pkgconfig-version="0.24" || { + cat > /dev/null + exit 0 +} + +case $1 in +-P|--provides) + while read filename ; do + case "${filename}" in + *.pc) + # Query the dependencies of the package. + DIR="`dirname ${filename}`" + export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig" + $pkgconfig --print-provides "$filename" 2> /dev/null | while read n r v ; do + [ -n "$n" ] || continue + # We have a dependency. Make a note that we need the pkgconfig + # tool for this package. + echo -n "pkgconfig($n) " + [ -n "$r" ] && [ -n "$v" ] && echo -n "$r" "$v" + echo + done + ;; + esac + done + ;; +-R|--requires) + while read filename ; do + case "${filename}" in + *.pc) + i="`expr $i + 1`" + [ $i -eq 1 ] && echo "$pkgconfig" + DIR="`dirname ${filename}`" + export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig" + $pkgconfig --print-requires --print-requires-private "$filename" 2> /dev/null | while read n r v ; do + [ -n "$n" ] || continue + echo -n "pkgconfig($n) " + [ -n "$r" ] && [ -n "$v" ] && echo -n "$r" "$v" + echo + done + esac + done + ;; +esac +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alpha-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alpha-linux/macros new file mode 100644 index 0000000..00605bf --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alpha-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch alpha +%_build_arch alpha +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee + +%__isa_name alpha +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev5-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev5-linux/macros new file mode 100644 index 0000000..df18139 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev5-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch alpha +%_build_arch alpha +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee -mtune=ev5 + +%__isa_name alpha +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev56-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev56-linux/macros new file mode 100644 index 0000000..cd8a020 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev56-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch alpha +%_build_arch alpha +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee -mtune=ev56 + +%__isa_name alpha +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev6-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev6-linux/macros new file mode 100644 index 0000000..fb1e5f6 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev6-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch alpha +%_build_arch alpha +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee -mtune=ev6 + +%__isa_name alpha +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev67-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev67-linux/macros new file mode 100644 index 0000000..ce9744b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphaev67-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch alpha +%_build_arch alpha +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee -mtune=ev67 + +%__isa_name alpha +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphapca56-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphapca56-linux/macros new file mode 100644 index 0000000..5e59936 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/alphapca56-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch alpha +%_build_arch alpha +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee -mtune=pca56 + +%__isa_name alpha +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/amd64-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/amd64-linux/macros new file mode 100644 index 0000000..40f6bdf --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/amd64-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch x86_64 +%_build_arch x86_64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g + +%__isa_name x86 +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv3l-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv3l-linux/macros new file mode 100644 index 0000000..4b018c0 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv3l-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv3 + +%__isa_name armv3l +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4b-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4b-linux/macros new file mode 100644 index 0000000..804fcf7 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4b-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv4 + +%__isa_name armv4b +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4l-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4l-linux/macros new file mode 100644 index 0000000..e871111 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv4l-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv4 + +%__isa_name armv4l +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tejl-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tejl-linux/macros new file mode 100644 index 0000000..d8ea5bd --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tejl-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv5te + +%__isa_name armv5tejl +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tel-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tel-linux/macros new file mode 100644 index 0000000..8b04045 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv5tel-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv5te + +%__isa_name armv5tel +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv6l-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv6l-linux/macros new file mode 100644 index 0000000..52e5971 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv6l-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv6 + +%__isa_name armv6l +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7hl-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7hl-linux/macros new file mode 100644 index 0000000..6f83208 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7hl-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv7-a -mfloat-abi=hard -mthumb -mabi=aapcs-linux + +%__isa_name armv7hl +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7l-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7l-linux/macros new file mode 100644 index 0000000..9f61879 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/armv7l-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch arm +%_build_arch arm +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -march=armv7 + +%__isa_name armv7l +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/athlon-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/athlon-linux/macros new file mode 100644 index 0000000..5629a98 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/athlon-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=athlon + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/geode-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/geode-linux/macros new file mode 100644 index 0000000..557e6d3 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/geode-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -Os -g -m32 -march=geode + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i386-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i386-linux/macros new file mode 100644 index 0000000..22e9562 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i386-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=i486 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i486-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i486-linux/macros new file mode 100644 index 0000000..22e9562 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i486-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=i486 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i586-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i586-linux/macros new file mode 100644 index 0000000..e40bb06 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i586-linux/macros @@ -0,0 +1,71 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# + +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} + +%_sharedstatedir %{_prefix}/com + +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include + +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i686-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i686-linux/macros new file mode 100644 index 0000000..490dc78 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/i686-linux/macros @@ -0,0 +1,71 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# + +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} + +%_sharedstatedir %{_prefix}/com + +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include + +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia32e-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia32e-linux/macros new file mode 100644 index 0000000..40f6bdf --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia32e-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch x86_64 +%_build_arch x86_64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g + +%__isa_name x86 +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia64-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia64-linux/macros new file mode 100644 index 0000000..3826484 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ia64-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ia64 +%_build_arch ia64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name ia +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 2 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/noarch-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/noarch-linux/macros new file mode 100644 index 0000000..1fc7caf --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/noarch-linux/macros @@ -0,0 +1,67 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch noarch +%_build_arch noarch +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} + + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# + +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} + +%_sharedstatedir %{_prefix}/com + +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include + +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium3-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium3-linux/macros new file mode 100644 index 0000000..df10727 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium3-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=pentium3 + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium4-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium4-linux/macros new file mode 100644 index 0000000..6a0ebdf --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/pentium4-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch i386 +%_build_arch i386 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -march=pentium4 + +%__isa_name x86 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc-linux/macros new file mode 100644 index 0000000..bbe5e29 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc +%_build_arch ppc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name ppc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc32dy4-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc32dy4-linux/macros new file mode 100644 index 0000000..d6a862f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc32dy4-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc +%_build_arch ppc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 + +%__isa_name ppc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64-linux/macros new file mode 100644 index 0000000..760ba05 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc64 +%_build_arch ppc64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name ppc +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64iseries-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64iseries-linux/macros new file mode 100644 index 0000000..576894d --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64iseries-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc64 +%_build_arch ppc64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -g + +%__isa_name ppc +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64p7-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64p7-linux/macros new file mode 100644 index 0000000..81ef1da --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64p7-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc64 +%_build_arch ppc64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O3 -mtune=power7 -mcpu=power7 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name ppc +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64pseries-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64pseries-linux/macros new file mode 100644 index 0000000..576894d --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc64pseries-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc64 +%_build_arch ppc64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -g + +%__isa_name ppc +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8260-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8260-linux/macros new file mode 100644 index 0000000..d6a862f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8260-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc +%_build_arch ppc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 + +%__isa_name ppc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8560-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8560-linux/macros new file mode 100644 index 0000000..d6a862f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppc8560-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc +%_build_arch ppc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 + +%__isa_name ppc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppciseries-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppciseries-linux/macros new file mode 100644 index 0000000..d6a862f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppciseries-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc +%_build_arch ppc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 + +%__isa_name ppc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppcpseries-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppcpseries-linux/macros new file mode 100644 index 0000000..d6a862f --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/ppcpseries-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch ppc +%_build_arch ppc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 + +%__isa_name ppc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390-linux/macros new file mode 100644 index 0000000..72e78d7 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch s390 +%_build_arch s390 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m31 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name s390 +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390x-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390x-linux/macros new file mode 100644 index 0000000..151bf94 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/s390x-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch s390x +%_build_arch s390x +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name s390 +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh-linux/macros new file mode 100644 index 0000000..05fbf05 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sh +%_build_arch sh +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -g + +%__isa_name sh +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh3-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh3-linux/macros new file mode 100644 index 0000000..c12315c --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh3-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sh3 +%_build_arch sh3 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g + +%__isa_name sh +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4-linux/macros new file mode 100644 index 0000000..277ca66 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sh4 +%_build_arch sh4 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee + +%__isa_name sh +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4a-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4a-linux/macros new file mode 100644 index 0000000..6f4313b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sh4a-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sh4a +%_build_arch sh4a +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -mieee + +%__isa_name sh +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc-linux/macros new file mode 100644 index 0000000..cb1e8d0 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sparc +%_build_arch sparc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -mtune=ultrasparc + +%__isa_name sparc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64-linux/macros new file mode 100644 index 0000000..137b121 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sparc64 +%_build_arch sparc64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m64 -mtune=ultrasparc + +%__isa_name sparc +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64v-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64v-linux/macros new file mode 100644 index 0000000..c070cc8 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparc64v-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sparc64 +%_build_arch sparc64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m64 -mtune=niagara + +%__isa_name sparc +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv8-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv8-linux/macros new file mode 100644 index 0000000..f4cc42b --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv8-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sparc +%_build_arch sparc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -mtune=ultrasparc -mv8 + +%__isa_name sparc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9-linux/macros new file mode 100644 index 0000000..cb1e8d0 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sparc +%_build_arch sparc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -mtune=ultrasparc + +%__isa_name sparc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9v-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9v-linux/macros new file mode 100644 index 0000000..689ef5a --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/sparcv9v-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch sparc +%_build_arch sparc +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m32 -mtune=niagara + +%__isa_name sparc +%__isa_bits 32 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 0 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib +%_libdir %{_prefix}/lib +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/x86_64-linux/macros b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/x86_64-linux/macros new file mode 100644 index 0000000..5603f19 --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/platform/x86_64-linux/macros @@ -0,0 +1,73 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch x86_64 +%_build_arch x86_64 +%_vendor tizen +%_os linux +%_gnu -gnu +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables + +%__isa_name x86 +%__isa_bits 64 +%__isa %{__isa_name}-%{__isa_bits} + +# The default transaction color. This value is a set of bits to +# determine file and dependency affinity for this arch. +# 0 uncolored (i.e. use only arch as install hint) +# 1 Elf32 permitted +# 2 Elf64 permitted +%_transaction_color 3 + +#============================================================================== +# ---- configure macros. +# +%_prefix /usr +%_exec_prefix %{_prefix} +%_bindir %{_exec_prefix}/bin +%_sbindir %{_exec_prefix}/sbin +%_libexecdir %{_exec_prefix}/libexec +%_datarootdir %{_prefix}/share +%_datadir %{_datarootdir} +%_sysconfdir /etc +%_sharedstatedir %{_prefix}/com +%_localstatedir /var +%_lib lib64 +%_libdir %{_prefix}/lib64 +%_includedir %{_prefix}/include +%_oldincludedir /usr/include +%_infodir /usr/share/info +%_mandir /usr/share/man +%_initddir %{_sysconfdir}/init.d +# Deprecated misspelling, present for backwards compatibility. +%_initrddir %{_initddir} + +%_defaultdocdir %{_datadir}/doc + +%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ + [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + +#============================================================================== +# ---- Build policy macros. +# +#--------------------------------------------------------------------- +# Expanded at end of %install scriptlet. +# + +%__arch_install_post %{nil} + +%__os_install_post \ + %{_rpmconfigdir}/brp-compress \ + %{_rpmconfigdir}/brp-strip %{__strip} \ +%{nil} + +%__spec_install_post\ + %{?__debug_package:%{__debug_install_post}}\ + %{__arch_install_post}\ + %{__os_install_post}\ +%{nil} + diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pythondeps.sh b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pythondeps.sh new file mode 100755 index 0000000..10a060a --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/pythondeps.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +[ $# -ge 1 ] || { + cat > /dev/null + exit 0 +} + +case $1 in +-P|--provides) + shift + # Match buildroot/payload paths of the form + # /PATH/OF/BUILDROOT/usr/bin/pythonMAJOR.MINOR + # generating a line of the form + # python(abi) = MAJOR.MINOR + # (Don't match against -config tools e.g. /usr/bin/python2.6-config) + grep "/usr/bin/python.\..$" \ + | sed -e "s|.*/usr/bin/python\(.\..\)|python(abi) = \1|" + ;; +-R|--requires) + shift + # Match buildroot paths of the form + # /PATH/OF/BUILDROOT/usr/lib/pythonMAJOR.MINOR/ and + # /PATH/OF/BUILDROOT/usr/lib64/pythonMAJOR.MINOR/ + # generating (uniqely) lines of the form: + # python(abi) = MAJOR.MINOR + grep "/usr/lib[^/]*/python.\../.*" \ + | sed -e "s|.*/usr/lib[^/]*/python\(.\..\)/.*|python(abi) = \1|g" \ + | sort | uniq + ;; +esac + +exit 0 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpm.supp b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpm.supp new file mode 100644 index 0000000..c5b2c7a --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpm.supp @@ -0,0 +1,38 @@ +# This is a valgrind suppression file for rpm. +# Rpm now processes /proc/self/auxv on Linux, but valgrind does not +# like that (see https://bugs.kde.org/show_bug.cgi?id=253519). To +# avoid the related false positives from valgrind, use this with +# 'valgrind --suppressions=rpm.supp [...]' when using it on rpm. + +{ + defaultMachine_strdup + Memcheck:Addr1 + ... + fun:strdup + ... + fun:defaultMachine +} + +{ + defaultMachine_memcpy1 + Memcheck:Addr1 + fun:*memcpy + ... + fun:defaultMachine +} + +{ + defaultMachine_memcpy2 + Memcheck:Addr2 + fun:*memcpy + ... + fun:defaultMachine +} + +{ + defaultMachine_memcpy4 + Memcheck:Addr4 + fun:*memcpy + ... + fun:defaultMachine +} diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmdeps b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmdeps new file mode 100755 index 0000000000000000000000000000000000000000..1d26210f341c3f4df751f15d3cb1d374bc70d1ef GIT binary patch literal 13080 zcmeHOe{fXSb-pVtu>4xd7!zSD@xxwhL0}P}*s@Js7D*tm09g`*jBy^z?n-aNYInW+ zL?oA)iY_?FvJ$xvCzIq4xsy0f>$W)YxK3yrVPRos=nPOdW)e3hV>?|1bwXkrQBIVzwGr@ftLl9q)HfK zrl`R0tztToD68s*4#+?T(ln%bLB*gJ;FkSfAL&M55@kr11SSOXlF|^8m|v7C`KeC{ zaq929KGMD-A?Ka(33Sy4&v`9{R*$$d-X-fM~1RK@5Jy#(!DXLeOkb z*?6iD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$9&5G`M)lJUl080H_Dnj<^oG-k&2u>v7N54ZQ)~Nyumu>gqEVmdCY(fo%( zm}mp(^0?+bfdaU$(m`j@cBfsqc0LEa0j&hC_2}fl@~9{M`LRISiMS40k9#bw$Gzt3 z(EFCFA6joF(zt`=7<11-KYuM_nL7S^#JRJj9``DzKSu9)$XN~bxCeUuWAv6lPTNtB zdmH|L1OKOic3@z=9N*u8bb0hQ%){YMsS=%3I1 tG26$v#oasW)Pa6wuTtm)mc`Hx(sAO^W!IlqFxRB=#B%&Ege#+t{tpf`lh*(M literal 0 HcmV?d00001 diff --git a/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmpopt-4.11.0.1 b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmpopt-4.11.0.1 new file mode 100644 index 0000000..169ef8d --- /dev/null +++ b/prometa-Tizen_ivi_3.0/rpm_tizen_macro/lib/rpmpopt-4.11.0.1 @@ -0,0 +1,222 @@ +#/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-4.11.0.1 +# \verbatim +# +# This file *should not be modified*. Local customizations +# belong in /etc/popt, not here. This file will be replaced +# whenever a new version of RPM is installed. +# +# Note: Not all popt aliases are documented. This is a decision on my +# part as to which are the more important aliases. Feel free to clip +# a copy of the alias/exec here and place in /etc/popt or ~/.popt with +# your own words added. It's easier than arguing about how many options +# fit on the head of an executable :-) +# + +rpm alias --scripts --qf '\ +%|PRETRANS?{pretrans scriptlet\ +%|PRETRANSPROG?{ (using[ %{PRETRANSPROG}])}|:\n%{PRETRANS}\n}:\ +{%|PRETRANSPROG?{pretrans program:[ %{PRETRANSPROG}]\n}|}|\ +\ +%|PREIN?{preinstall scriptlet\ +%|PREINPROG?{ (using[ %{PREINPROG}])}|:\n%{PREIN}\n}:\ +{%|PREINPROG?{preinstall program:[ %{PREINPROG}]\n}|}|\ +\ +%|POSTIN?{postinstall scriptlet\ +%|POSTINPROG?{ (using[ %{POSTINPROG}])}|:\n%{POSTIN}\n}:\ +{%|POSTINPROG?{postinstall program:[ %{POSTINPROG}]\n}|}|\ +\ +%|PREUN?{preuninstall scriptlet\ +%|PREUNPROG?{ (using[ %{PREUNPROG}])}|:\n%{PREUN}\n}:\ +{%|PREUNPROG?{preuninstall program:[ %{PREUNPROG}]\n}|}|\ +\ +%|POSTUN?{postuninstall scriptlet\ +%|POSTUNPROG?{ (using[ %{POSTUNPROG}])}|:\n%{POSTUN}\n}:\ +{%|POSTUNPROG?{postuninstall program:[ %{POSTUNPROG}]\n}|}|\ +\ +%|POSTTRANS?{posttrans scriptlet\ +%|POSTTRANSPROG?{ (using[ %{POSTTRANSPROG}])}|:\n%{POSTTRANS}\n}:\ +{%|POSTTRANSPROG?{posttrans program:[ %{POSTTRANSPROG}]\n}|}|\ +\ +%|VERIFYSCRIPT?{verify scriptlet\ +%|VERIFYSCRIPTPROG?{ (using[ %{VERIFYSCRIPTPROG}])}|:\n%{VERIFYSCRIPT}\n}:\ +{%|VERIFYSCRIPTPROG?{verify program:[ %{VERIFYSCRIPTPROG}]\n}|}|\ +' \ + --POPTdesc=$"list install/erase scriptlets from package(s)" + +rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \ + --pipe "grep -v \(none\) | grep '^. -L ' | sed 's/chmod .../chmod /' | sh" \ + --POPTdesc=$"set permissions of files in a package" + +rpm alias --setugids -q --qf \ + '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \ + --pipe "(echo 'ch() { chown -h -- \"$1\" \"$3\";chgrp -h -- \"$2\" \"$3\"; }';grep '^ch '|grep -v \(none\))|sh" \ + --POPTdesc=$"set user/group ownership of files in a package" + +rpm alias --conflicts --qf \ + "[%|VERBOSE?{%{CONFLICTFLAGS:deptype}: }:{}|%{CONFLICTNEVRS}\n]" \ + --POPTdesc=$"list capabilities this package conflicts with" +rpm alias --obsoletes --qf \ + "[%|VERBOSE?{%{OBSOLETEFLAGS:deptype}: }:{}|%{OBSOLETENEVRS}\n]" \ + --POPTdesc=$"list other packages removed by installing this package" +rpm alias --provides --qf \ + "[%|VERBOSE?{%{PROVIDEFLAGS:deptype}: }:{}|%{PROVIDENEVRS}\n]" \ + --POPTdesc=$"list capabilities that this package provides" + +rpm alias --requires --qf \ + "[%|VERBOSE?{%{REQUIREFLAGS:deptype}: }:{}|%{REQUIRENEVRS}\n]" \ + --POPTdesc=$"list capabilities required by package(s)" +rpm alias -R --requires + +rpm alias --suggests --qf \ + "[%|SUGGESTSFLAGS:depflag_strong?{}:{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" \ + --POPTdesc=$"list capabilities this package suggests" + +rpm alias --recommends --qf \ + "[%|SUGGESTSFLAGS:depflag_strong?{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" \ + --POPTdesc=$"list capabilities this package recommends" + +rpm alias --enhances --qf \ + "[%|ENHANCESFLAGS:depflag_strong?{}:{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" \ + --POPTdesc=$"list capabilities this package enhances" + +rpm alias --supplements --qf \ + "[%|ENHANCESFLAGS:depflag_strong?{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" \ + --POPTdesc=$"list capabilities this package supplements" + +rpm alias --info --qf '\ +Name : %{NAME}\n\ +%|EPOCH?{Epoch : %{EPOCH}\n}|\ +Version : %{VERSION}\n\ +Release : %{RELEASE}\n\ +Architecture: %{ARCH}\n\ +Install Date: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n\ +Group : %{GROUP}\n\ +Size : %{LONGSIZE}\n\ +%|LICENSE?{License : %{LICENSE}}|\n\ +Signature : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\ +Source RPM : %{SOURCERPM}\n\ +Build Date : %{BUILDTIME:date}\n\ +Build Host : %{BUILDHOST}\n\ +Relocations : %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\ +%|PACKAGER?{Packager : %{PACKAGER}\n}|\ +%|VENDOR?{Vendor : %{VENDOR}\n}|\ +%|URL?{URL : %{URL}\n}|\ +%|VCS?{VCS : %{VCS}\n}|\ +%|BUGURL?{Bug URL : %{BUGURL}\n}|\ +Summary : %{SUMMARY}\n\ +Description :\n%{DESCRIPTION}\n\ +Distribution: %{DISTRIBUTION}\n' \ + --POPTdesc=$"list descriptive information from package(s)" + +rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \ + --POPTdesc=$"list change logs for this package" + +rpm alias --xml --qf '[%{*:xml}\n]' \ + --POPTdesc=$"list metadata in xml" + +rpm alias --triggerscripts --qf '\ +[trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\ +%{TRIGGERSCRIPTS}\n]' +rpm alias --triggers --triggerscripts \ + --POPTdesc=$"list trigger scriptlets from package(s)" + +rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NVRA} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \ + --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \ + --POPTdesc=$"list package(s) by install time, most recent first" + +rpm alias --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \ + --POPTdesc=$"list duplicated packages" + +rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \ + --POPTdesc=$"list all files from each package" + +rpm alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \ + --POPTdesc=$"list file names with classes" + +rpm alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \ + --POPTdesc=$"list file names with colors" + +rpm alias --fscontext --qf '[%{FILENAMES}\n]' \ + --pipe "xargs ls --scontext | awk '{printf(\"%s %s\n\", $2, $1)}'" \ + --POPTdesc=$"list file names with security context from file system" + +rpm alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \ + --POPTdesc=$"list file names with provides" + +rpm alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \ + --POPTdesc=$"list file names with requires" + +rpm alias --filecaps --qf '[%{FILENAMES}\t%|FILECAPS?{%{FILECAPS}}|\n]' \ + --POPTdesc=$"list file names with POSIX1.e capabilities" + +# colon separated i18n domains to use as PO catalogue lookaside for +# retrieving header group/description/summary. +rpm alias --i18ndomains --define '_i18ndomains !#:+' + +#============================================================================== +# [--ftpport ] "port number of ftp server (or proxy)" +rpm alias --ftpport --define '_httpport !#:+' +# [--ftpproxy ] "hostname or IP of ftp proxy" +rpm alias --ftpproxy --define '_httpproxy !#:+' +# [--httpport ] "port number of http server (or proxy)" +rpm alias --httpport --define '_httpport !#:+' +# [--httpproxy ] "hostname or IP of http proxy" +rpm alias --httpproxy --define '_httpproxy !#:+' + +# Minimally preserve commonly used switches from cli split-up +rpm exec --addsign rpmsign --addsign +rpm exec --delsign rpmsign --delsign +rpm exec --resign rpmsign --resign +rpm exec --checksig rpmkeys --checksig +rpm exec -K rpmkeys --checksig +rpm exec --import rpmkeys --import +rpm exec --initdb rpmdb --initdb +rpm exec --rebuilddb rpmdb --rebuilddb +rpm exec --verifydb rpmdb --verifydb +rpm exec --specfile rpmspec -q + +#============================================================================== +rpmbuild alias --ftpport --define '_httpport !#:+' +rpmbuild alias --ftpproxy --define '_httpproxy !#:+' +rpmbuild alias --httpport --define '_httpport !#:+' +rpmbuild alias --httpproxy --define '_httpproxy !#:+' +rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \ + --POPTdesc=$"enable configure