Commit 45058f46 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmcs: fix Group in correct place

parent 2572a7e7
......@@ -174,6 +174,12 @@ do
# Make backup copy
cp -f $SPEC ${SPEC}~ || fatal "Cannot find spec file '$SPEC'"
# Add group
if ! grep "^Group" $SPEC ; then
PACKAGT="Group: Unknown"
cat $SPEC | awk 'BEGIN{desk=0}{if(/^U[rR][lL]/&&desk==0){printf("%s\n", text);desk++};print}' text="$PACKAGT" >$SPEC.tmp && mv -f $SPEC.tmp $SPEC
fi
# Prepare for fix only before changelog part
i=$SPEC.tmpspecbeforechangelog
separate_changelog $SPEC $i $SPEC.tmpspecchangelog
......@@ -186,11 +192,6 @@ do
# Unused on ALT
subst "s|^Suggests:|#Suggests:|" $i
# Add group
if ! grep "^Group" $i ; then
PACKAGT="Group: Unknown"
cat $i | awk 'BEGIN{desk=0}{if(/^Url/&&desk==0){printf("%s\n", text);desk++};print}' text="$PACKAGT" >$i.tmp && mv -f $i.tmp $i
fi
# use in cases
# subst "s|%mdkversion||g" $i
......@@ -385,6 +386,7 @@ do
s|ruby setup.rb setup|%ruby_setup|g" $i
subst "s|^%__python setup.py build|%python_build|g" $i
subst 's|^CFLAGS="$RPM_OPT_FLAGS" python setup.py build|%python_build|g' $i
subst "s|^%__python setup.py install --root.%buildroot|%python_install|g" $i
subst "s|^%__python setup.py install --skip-build --root %buildroot|%python_install|g" $i
subst "s|^%__python setup.py install -O1 --skip-build --root %buildroot|%python_install|g" $i
......
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