Browse Source

Add mock changelog

Alois Mahdal 6 years ago
parent
commit
c3e09b6dd0
2 changed files with 11 additions and 4 deletions
  1. 4
    0
      slop.spec.in
  2. 7
    4
      trigger_copr

+ 4
- 0
slop.spec.in View File

@@ -52,4 +52,8 @@ mv %{buildroot}/usr/lib/libslopy.so "%{buildroot}%{_libdir}"
52 52
 %{_libdir}/libslopy.so
53 53
 %{_mandir}/man1/slop.1.gz
54 54
 
55
+%changelog
56
+* __SLOP_DATE__ Alois Mahdal <netvor+slop@vornet.cz> - __SLOP_VERSION__-__SLOP_RELEASE__
57
+- Unofficial experimental RPM pseudo-release
58
+
55 59
 # spec file generated from __SLOP_BUILDSCRIPT_VERSION__

+ 7
- 4
trigger_copr View File

@@ -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