Browse Source

Generalize token names

Alois Mahdal 6 years ago
parent
commit
173c526bc2
2 changed files with 10 additions and 10 deletions
  1. 5
    5
      slop.spec.in
  2. 5
    5
      trigger_copr

+ 5
- 5
slop.spec.in View File

1
 Name:       slop
1
 Name:       slop
2
-Version:    __SLOP_VERSION__
3
-Release:    __SLOP_RELEASE__%{?dist}
2
+Version:    __APP_VERSION__
3
+Release:    __APP_RELEASE__%{?dist}
4
 Summary:    Select Operation
4
 Summary:    Select Operation
5
 URL:        https://github.com/naelstrof/slop
5
 URL:        https://github.com/naelstrof/slop
6
 
6
 
7
 License:    GPLv3
7
 License:    GPLv3
8
-Source0:    __SLOP_URLBASE__/archive/v%{version}.tar.gz
8
+Source0:    __APP_URLBASE__/archive/v%{version}.tar.gz
9
 
9
 
10
 BuildRequires: gcc-c++
10
 BuildRequires: gcc-c++
11
 BuildRequires: cmake
11
 BuildRequires: cmake
53
 %{_mandir}/man1/slop.1.gz
53
 %{_mandir}/man1/slop.1.gz
54
 
54
 
55
 %changelog
55
 %changelog
56
-* __SLOP_DATE__ Alois Mahdal <netvor+slop@vornet.cz> - __SLOP_VERSION__-__SLOP_RELEASE__
56
+* __APP_DATE__ Alois Mahdal <netvor+slop@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
57
 - Unofficial experimental RPM pseudo-release
57
 - Unofficial experimental RPM pseudo-release
58
 
58
 
59
-# spec file generated from __SLOP_BUILDSCRIPT_VERSION__
59
+# spec file generated from __APP_BUILDSCRIPT_VERSION__

+ 5
- 5
trigger_copr View File

51
     self_version="slop-build-copr $(git describe --tags)"
51
     self_version="slop-build-copr $(git describe --tags)"
52
     cl_date=$(LC_ALL=C date +"%a %b %d %Y")
52
     cl_date=$(LC_ALL=C date +"%a %b %d %Y")
53
     sed -e "
53
     sed -e "
54
-        s|__SLOP_VERSION__|$Version|
55
-        s|__SLOP_RELEASE__|$Release|
56
-        s|__SLOP_URLBASE__|$UrlBase|
57
-        s|__SLOP_BUILDSCRIPT_VERSION__|$self_version|
58
-        s|__SLOP_DATE__|$cl_date|
54
+        s|__APP_VERSION__|$Version|
55
+        s|__APP_RELEASE__|$Release|
56
+        s|__APP_URLBASE__|$UrlBase|
57
+        s|__APP_BUILDSCRIPT_VERSION__|$self_version|
58
+        s|__APP_DATE__|$cl_date|
59
     " <slop.spec.in
59
     " <slop.spec.in
60
 }
60
 }
61
 
61