Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
45058f46
Commit
45058f46
authored
Aug 13, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmcs: fix Group in correct place
parent
2572a7e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
rpmcs
bin/rpmcs
+7
-5
No files found.
bin/rpmcs
View file @
45058f46
...
@@ -174,6 +174,12 @@ do
...
@@ -174,6 +174,12 @@ do
# Make backup copy
# Make backup copy
cp
-f
$SPEC
${
SPEC
}
~
||
fatal
"Cannot find spec file '
$SPEC
'"
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
# Prepare for fix only before changelog part
i
=
$SPEC
.tmpspecbeforechangelog
i
=
$SPEC
.tmpspecbeforechangelog
separate_changelog
$SPEC
$i
$SPEC
.tmpspecchangelog
separate_changelog
$SPEC
$i
$SPEC
.tmpspecchangelog
...
@@ -186,11 +192,6 @@ do
...
@@ -186,11 +192,6 @@ do
# Unused on ALT
# Unused on ALT
subst
"s|^Suggests:|#Suggests:|"
$i
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
# use in cases
# subst "s|%mdkversion||g" $i
# subst "s|%mdkversion||g" $i
...
@@ -385,6 +386,7 @@ do
...
@@ -385,6 +386,7 @@ do
s|ruby setup.rb setup|%ruby_setup|g"
$i
s|ruby setup.rb setup|%ruby_setup|g"
$i
subst
"s|^%__python setup.py build|%python_build|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 --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 --skip-build --root %buildroot|%python_install|g"
$i
subst
"s|^%__python setup.py install -O1 --skip-build --root %buildroot|%python_install|g"
$i
subst
"s|^%__python setup.py install -O1 --skip-build --root %buildroot|%python_install|g"
$i
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment