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
d84e48ac
Commit
d84e48ac
authored
Aug 28, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbs: add hacks for already backported releases
parent
17f914a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
rpmbps
bin/rpmbps
+16
-4
No files found.
bin/rpmbps
View file @
d84e48ac
...
...
@@ -118,9 +118,15 @@ if [ "$PKGVENDOR" = "alt" ] ; then
;;
esac
# Change release according to alt policy with extensions
# General rule: alwars alt(N-1).MM.(N)
docmd set_release
$SPECNAME
$(
get_txtrelease
$SPECNAME
)$(
decrement_release
$BASERELEASE
)
.
$MDISTR
.
$BASERELEASE
if
is_backported_release
$RELEASE
;
then
# TODO: do not use mask M00
docmd set_release
$SPECNAME
"
$(
echo
"
$RELEASE
"
|
sed
-e
"s|M[0-9][0-9][PCT]|
$MDISTR
|"
)
"
else
# Change release according to alt policy with extensions
# General rule: alwars alt(N-1).MM.(N)
docmd set_release
$SPECNAME
$(
get_txtrelease
$SPECNAME
)$(
decrement_release
$BASERELEASE
)
.
$MDISTR
.
$BASERELEASE
fi
ADDDEF
=
""
CLEANTEXT
=
""
# due new libtool, affected on ALT Linux
...
...
@@ -168,7 +174,13 @@ else
TXTRELEASE
=
$(
get_txtrelease
$SPECNAME
)
# HACK: Override release with KORINFTARGETRELEASE if set
[
-z
"
$KORINFTARGETRELEASE
"
]
||
TXTRELEASE
=
$KORINFTARGETRELEASE
docmd set_release
$SPECNAME
$TXTRELEASE$BASERELEASE$PKGVENDOR
if
is_backported_release
$RELEASE
;
then
# TODO: do not use mask M00
docmd set_release
$SPECNAME
$TXTRELEASE
"
$(
echo
"
$BASERELEASE
"
|
sed
-e
"s|M[0-9][0-9][PCT].*||"
)
"
$PKGVENDOR
else
docmd set_release
$SPECNAME
$TXTRELEASE$BASERELEASE$PKGVENDOR
fi
test
-z
"
$VERBOSE
"
||
echo
"Build package with release
$TXTRELEASE
"
ADDDEF
=
"%defattr(-, root, root)"
CLEANTEXT
=
""
...
...
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