aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-11-12 12:03:23 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-11-12 12:03:23 +0100
commitb0f16104de78f3180bcf4e8652f74adc03fe3d5f (patch)
tree60f5c332c221a04822b8a7f7e3ed9e4bb3778be4
parent06e5590eefc2e199572da4823699a7aeb3c8dd8a (diff)
downloadlibrb-1.0.0-r1.tar.gz
librb-1.0.0-r1.tar.bz2
librb-1.0.0-r1.zip
pkg/rpm: fix debug info generation on opensusev1.0.0-r11.0.0-r1
-rw-r--r--pkg/rpm/create-pkg.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rpm/create-pkg.sh b/pkg/rpm/create-pkg.sh
index 5557f89..ec3bd75 100644
--- a/pkg/rpm/create-pkg.sh
+++ b/pkg/rpm/create-pkg.sh
@@ -43,11 +43,11 @@ sed -i "s/@{LIB_VERSION}/${lib_version}/" SPECS/${project}-${pkg_version}.spec
sed -i "s/@{ABI_VERSION}/${abi_version}/" SPECS/${project}-${pkg_version}.spec
-if cat /etc/os-release | grep "NAME=openSUSE Leap"
+if cat /etc/os-release | grep "openSUSE Leap"
then
# opensuse doesn't generate debug symbols by defaul, check spec file
# for comment
- sed -i 's/# __DEBUG_PACKAGE_/%debug_package/' \
+ sed -i 's/# __DEBUG_PACKAGE__/%debug_package/' \
SPECS/${project}-${pkg_version}.spec
fi