Commit 0813c2fd authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: small fixes

parent b6fe62b2
...@@ -236,7 +236,7 @@ done ...@@ -236,7 +236,7 @@ done
ALLGRPREPLRULES="" ALLGRPREPLRULES=""
grprepl_list=$(print_grprepl_list) grprepl_list=$(print_grprepl_list)
for i in $LISTGROUP ; do for i in $LISTGROUP ; do
tolocal_anyrepl $i $grprepl_list || continue tolocal_anyrepl_group $i $grprepl_list || continue
#NRL="s!\(Group.*\)$REPLRULE1\( |,|\$\)!\1$REPLRULE2\2!g" #NRL="s!\(Group.*\)$REPLRULE1\( |,|\$\)!\1$REPLRULE2\2!g"
NRL="s!(Group.*)$ALTPKGNAME( |,|}|\$)!\1$TARGETPKGNAME\2!g" NRL="s!(Group.*)$ALTPKGNAME( |,|}|\$)!\1$TARGETPKGNAME\2!g"
[ -n "$VERBOSE" ] && echo && echo "Use group name rule $NRL from $USEDPKGREPL" [ -n "$VERBOSE" ] && echo && echo "Use group name rule $NRL from $USEDPKGREPL"
...@@ -296,8 +296,10 @@ mv $SPECNAME $SPECNAME.old && ...@@ -296,8 +296,10 @@ mv $SPECNAME $SPECNAME.old &&
repl_reqs | repl_groups | \ repl_reqs | repl_groups | \
awk_e1 | awk_e2 | awk_e3 | awk_section_build | \ awk_e1 | awk_e2 | awk_e3 | awk_section_build | \
sed -e "s|^BuildRequires: *\$||g" | \ sed -e "s|^BuildRequires: *\$||g" | \
sed -e "s|^BuildRequires(pre): *\$||g" | \
sed -e "s|^BuildPreReq: *\$||g" | \ sed -e "s|^BuildPreReq: *\$||g" | \
sed -e "s|^Requires: *\$||g" | \ sed -e "s|^Requires: *\$||g" | \
sed -e "s|^Requires(pre): *\$||g" | \
sed -e "s|^Conflicts: *\$||g" | \ sed -e "s|^Conflicts: *\$||g" | \
sed -e "s|^Provides: *\$||g" | \ sed -e "s|^Provides: *\$||g" | \
sed -e "s|^Obsoletes: *\$||g" | \ sed -e "s|^Obsoletes: *\$||g" | \
...@@ -322,6 +324,7 @@ if [ "$PKGVENDOR" != "alt" ] ; then ...@@ -322,6 +324,7 @@ if [ "$PKGVENDOR" != "alt" ] ; then
# not supported anywhere exclude ALT # not supported anywhere exclude ALT
subst "s|^BuildRequires(pre):|BuildRequires:|g" $SPECNAME subst "s|^BuildRequires(pre):|BuildRequires:|g" $SPECNAME
subst "s|^Requires(pre):|BuildRequires:|g" $SPECNAME
fi fi
if [ "$PKGVENDOR" != "alt" ] ; then if [ "$PKGVENDOR" != "alt" ] ; then
...@@ -329,6 +332,13 @@ if [ "$PKGVENDOR" != "alt" ] ; then ...@@ -329,6 +332,13 @@ if [ "$PKGVENDOR" != "alt" ] ; then
remove_bashism $SPECNAME remove_bashism $SPECNAME
fi fi
if [ -n "$VERBOSE" ] ; then
echo
echo "cat $SPECNAME"
cat $SPECNAME
fi
#TODO: #TODO:
#%if %{undefined buildroot} #%if %{undefined buildroot}
#BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot #BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
......
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