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
0813c2fd
Commit
0813c2fd
authored
Aug 11, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbs: small fixes
parent
b6fe62b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
rpmbps
bin/rpmbps
+11
-1
No files found.
bin/rpmbps
View file @
0813c2fd
...
...
@@ -236,7 +236,7 @@ done
ALLGRPREPLRULES
=
""
grprepl_list
=
$(
print_grprepl_list
)
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.*)
$ALTPKGNAME
( |,|}|
\$
)!
\1
$TARGETPKGNAME
\2
!g"
[
-n
"
$VERBOSE
"
]
&&
echo
&&
echo
"Use group name rule
$NRL
from
$USEDPKGREPL
"
...
...
@@ -296,8 +296,10 @@ mv $SPECNAME $SPECNAME.old &&
repl_reqs | repl_groups |
\
awk_e1 | awk_e2 | awk_e3 | awk_section_build |
\
sed
-e
"s|^BuildRequires: *
\$
||g"
|
\
sed
-e
"s|^BuildRequires(pre): *
\$
||g"
|
\
sed
-e
"s|^BuildPreReq: *
\$
||g"
|
\
sed
-e
"s|^Requires: *
\$
||g"
|
\
sed
-e
"s|^Requires(pre): *
\$
||g"
|
\
sed
-e
"s|^Conflicts: *
\$
||g"
|
\
sed
-e
"s|^Provides: *
\$
||g"
|
\
sed
-e
"s|^Obsoletes: *
\$
||g"
|
\
...
...
@@ -322,6 +324,7 @@ if [ "$PKGVENDOR" != "alt" ] ; then
# not supported anywhere exclude ALT
subst
"s|^BuildRequires(pre):|BuildRequires:|g"
$SPECNAME
subst
"s|^Requires(pre):|BuildRequires:|g"
$SPECNAME
fi
if
[
"
$PKGVENDOR
"
!=
"alt"
]
;
then
...
...
@@ -329,6 +332,13 @@ if [ "$PKGVENDOR" != "alt" ] ; then
remove_bashism
$SPECNAME
fi
if
[
-n
"
$VERBOSE
"
]
;
then
echo
echo
"cat
$SPECNAME
"
cat
$SPECNAME
fi
#TODO:
#%if %{undefined buildroot}
#BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
...
...
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