|
@@ -43,12 +43,15 @@ last_version() {
|
43
|
43
|
|
44
|
44
|
mkspec() {
|
45
|
45
|
local self_version
|
|
46
|
+ local cl_date
|
46
|
47
|
self_version="slop-build-copr $(git describe --tags)"
|
|
48
|
+ cl_date=$(LC_ALL=C date +"%a %b %d %Y")
|
47
|
49
|
sed -e "
|
48
|
|
- /^Version/ s|__SLOP_VERSION__|$Version|
|
49
|
|
- /^Release/ s|__SLOP_RELEASE__|$Release|
|
50
|
|
- /^Source0/ s|__SLOP_URLBASE__|$UrlBase|
|
51
|
|
- /^# spec file/ s|__SLOP_BUILDSCRIPT_VERSION__|$self_version|
|
|
50
|
+ s|__SLOP_VERSION__|$Version|
|
|
51
|
+ s|__SLOP_RELEASE__|$Release|
|
|
52
|
+ s|__SLOP_URLBASE__|$UrlBase|
|
|
53
|
+ s|__SLOP_BUILDSCRIPT_VERSION__|$self_version|
|
|
54
|
+ s|__SLOP_DATE__|$cl_date|
|
52
|
55
|
" <slop.spec.in
|
53
|
56
|
}
|
54
|
57
|
|