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
848d2359
Commit
848d2359
authored
Apr 27, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmcs: small fixes, fix replacement rules also
parent
83373db0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
rpmcs
bin/rpmcs
+7
-6
grprepl.alt.2.4
share/eterbuild/grprepl/grprepl.alt.2.4
+1
-0
grprepl.alt.4.0
share/eterbuild/grprepl/grprepl.alt.4.0
+1
-0
grprepl.rpm
share/eterbuild/grprepl/grprepl.rpm
+5
-3
No files found.
bin/rpmcs
View file @
848d2359
...
...
@@ -283,7 +283,7 @@ do
# s|%_sysconfdir/rc.d/init.d/|%_initrddir/|g
# s|%_sysconfdir/init.d/|%_initrddir/|g"
subst
"s|/etc/rc.d/init.d/|%_initrddir/|g"
subst
"s|/etc/rc.d/init.d/|%_initrddir/|g"
$i
subst
"s|%_sysconfdir/X11/fontpath.d|%_fontpathdir|g"
$i
...
...
@@ -394,7 +394,7 @@ do
echog
"DONE"
# TODO use perl -pe
echog
-n
"fix build requires..."
echog
"fix build requires..."
ALLREPLRULES
=
""
for
n
in
`
print_buildreq
$i
`
;
do
toalt_pkgrepl
$n
&&
ALLREPLRULES
=
"
$ALLREPLRULES
...
...
@@ -402,7 +402,7 @@ do
#echo REPLRULE: $REPLRULE
done
echog
-n
"fix package requires..."
echog
"fix package requires..."
ALLREPLRULES
=
""
for
n
in
`
print_pkgreq
$i
`
;
do
toalt_pkgrepl
$n
&&
ALLREPLRULES
=
"
$ALLREPLRULES
...
...
@@ -410,18 +410,19 @@ do
#echo REPLRULE: $REPLRULE
done
echog
-n
"fix groups..."
echog
"fix groups..."
for
n
in
`
print_grpreq
$i
`
;
do
toalt_grprepl
$n
&&
ALLREPLRULES
=
"
$ALLREPLRULES
s|(^Group.*)
$GRPREPLRULE1
|
\1
$GRPREPLRULE2
|g"
&&
test
-n
"
$VERBOSE
"
&&
echo
"Replace '
$GRPREPLRULE1
' with '
$GRPREPLRULE2
'"
#echo REPLRULE: $REPLRULE
done
#echo ALL: $ALLREPLRULES
# Replace package names in source spec
sed
-r
-e
"
$ALLREPLRULES
"
<
$i
>
$SPEC
||
{
warning
"Error with replacement"
;
cat
$i
>
$SPEC
;
}
echo
echo
"Total used replacement rules:
$ALLREPLRULES
"
# Restore changelog
cat
$SPEC
.tmpspecchangelog
>>
$SPEC
rm
-f
$i
$SPEC
.tmpspecchangelog
...
...
share/eterbuild/grprepl/grprepl.alt.2.4
View file @
848d2359
# ALT Linux Sisyphus -> ALT Linux 2.4
Development/Documentation|Development/C
share/eterbuild/grprepl/grprepl.alt.4.0
View file @
848d2359
# ALT Linux Sisyphus -> ALT Linux 4.0
Development/Tools|Development/Other
share/eterbuild/grprepl/grprepl.rpm
View file @
848d2359
# ALT group -> Other group
System/Libraries|System Environment/Libraries
System/Libraries/Python|Development/Python
Development/Other|Development/Libraries
...
...
@@ -6,6 +8,6 @@ Games/Other|X11/Applications/Games
Development/Libraries|Development/C
Databases|Applications/Databases
System/Kernel and hardware|System/Hardware
System
Environment/Base|System
/Base
Applications/Productivity|Office
Applications/Multimedia|Video
System
/Base|System Environment
/Base
Office|Applications/Productivity
Video|Applications/Multimedia
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