Commit ff95b52a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: use epm print info instead of $DISTRINFO

parent 4997ef57
Allowed variables:
* $DISTRVENDOR (distro_info utility)
......@@ -6,7 +6,7 @@ SPEC="$2"
. $(dirname $0)/common.sh
if [ "$($DISTRVENDOR -a)" = "x86_64" ] ; then
if [ "$(epm print info -a)" = "x86_64" ] ; then
# 32 bit
rm -rfv $BUILDROOT/opt/Citrix/VDA/lib32
subst "s|.*/libctxXrandrhook.so.||" $SPEC
......
......@@ -32,5 +32,9 @@ if [ -n "$flag_python3" ] ; then
epm install --skip-installed rpm-build-python3
fi
# hack:
# TODO: check for tarball, detect root dir
#echo $BUILDROOT | grep -q "tar.*tmpdir/" && move_to_opt /liteide
# Set high Epoche to override repository package
subst "s|^\(Name: .*\)$|# Override repository package\nEpoch: 100\n\1|g" $SPEC
......@@ -25,6 +25,6 @@ for i in $BUILDROOT/$PRODUCTDIR/gmp-clearkey/0.1/lib*.so ; do
a= patchelf --set-rpath '$ORIGIN/../../' $i || continue
done
if [ "$($DISTRVENDOR -s)" = "alt" ] ; then
if [ "$(epm print info -s)" = "alt" ] ; then
epm --skip-installed install fontconfig glib2 libalsa libatk libcairo libcairo-gobject libdbus libdbus-glib libfreetype libgdk-pixbuf libgio libgtk+3 libharfbuzz libpango libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst
fi
......@@ -8,7 +8,7 @@ PRODUCT=pantum
. $(dirname $0)/common.sh
if [ "$($DISTRVENDOR -b)" = "64" ] ; then
if [ "$(epm print info -b)" = "64" ] ; then
remove_dir /usr/lib/sane
# keep /usr/lib64
else
......
......@@ -10,7 +10,7 @@ subst '1iAutoProv:no' $SPEC
subst '1iRequires: libpcsclite libudev0' $SPEC
if [ "$($DISTRVENDOR -a)" = "x86_64" ] ; then
if [ "$(epm print info -a)" = "x86_64" ] ; then
remove_file /usr/share/sphinx/gui/spnxreader/libspnxreader_i386.so
remove_file /usr/share/sphinx/gui/lib/libguinative_i386.so
subst "s|/usr/lib/i386-linux-gnu/libpcsclite.so|/usr/lib64/libpcsclite.so|" $BUILDROOT/usr/bin/spnxclient
......
......@@ -10,7 +10,7 @@ PRODUCTDIR=/opt/teams
. $(dirname $0)/common-chromium-browser.sh
if [ "$($DISTRVENDOR -e)" = "ALTLinux/p8" ] ; then
if [ "$(epm print info -e)" = "ALTLinux/p8" ] ; then
# drop unsupported binary
#subst '1i%filter_from_requires /^libm.so.6(GLIBC_2.27).*/d' $SPEC
rm -rf $BUILDROOT/usr/share/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/build/
......
......@@ -8,7 +8,7 @@ PRODUCTDIR=/opt/teamviewer
. $(dirname $0)/common.sh
if [ "$($DISTRVENDOR -a)" = "x86_64" ] ; then
if [ "$(epm print info -a)" = "x86_64" ] ; then
# 32 bit
rm -fv $BUILDROOT/opt/teamviewer/tv_bin/script/libdepend
subst "s|.*script/libdepend.*||" $SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment