Overview

Request 3142 (accepted)

New release

Submit package Kolab:16:Testing / kolab-release to package Kolab:16 / kolab-release

kolab-release.spec Changed
x
 
1
@@ -7,12 +7,16 @@
2
 %global dist_version %{fedora}
3
 %else
4
 %global dist_full_name Enterprise Linux
5
+%if 0%{?rhel} >= 9
6
+%global dist_version %{rhel}
7
+%else
8
 %if 0%{?centos_stream} >= 8
9
 %global dist_version %{rhel}_Stream
10
 %else
11
 %global dist_version %{rhel}
12
 %endif
13
 %endif
14
+%endif
15
 
16
 # Runtime settings
17
 %global desc %{dist_full_name} %{dist_version} Kolab %{repository_version}
18
@@ -31,7 +35,7 @@
19
 Requires:   %{repository_name}(release) = %{repository_version}
20
 
21
 %description
22
-Apheleia IT repository configuration files, such as YUM repository configuration files
23
+Apheleia IT repository configuration files, such as DNF repository configuration files
24
 
25
 %package -n %{repository_full_name}-release
26
 Summary:    Kolab Enterprise release files by Apheleia IT
27
@@ -53,7 +57,7 @@
28
 Provides:   %{repository_name}-community-release = %{version}
29
 
30
 %description -n %{repository_full_name}-release
31
-This package provides the repository configuration for Apheleia IT' Enterprise version of Kolab
32
+This package provides the repository configuration for Apheleia IT's Enterprise version of Kolab
33
 
34
 %prep
35
 
36
@@ -86,27 +90,35 @@
37
 %endif
38
 
39
     repository_name="%{repository_full_name}"
40
+    description="%{desc}"
41
 
42
     if  "$repo" == "testing" ; then
43
         reposuffix=":/Testing"
44
         repository_name="%{repository_full_name}-testing"
45
+        description="%{desc} Testing"
46
     fi
47
 
48
     if  "$repo" == "testing-candidate" ; then
49
         reposuffix=":/Testing:/Candidate"
50
         repository_name="%{repository_full_name}-testing-candidate"
51
+        description="%{desc} Testing Candidate"
52
     fi
53
 
54
-%if 0%{?fedora} > 0
55
-    repository_url="https://mirror.apheleia-it.ch/repos/Kolab:/16$reposuffix/Fedora_%{dist_version}$plesk_suffix"
56
+%if 0%{?rhel} >= 9
57
+    repository_url="https://mirror.apheleia-it.ch/repos/Kolab:/16$reposuffix/EL_%{dist_version}$plesk_suffix"
58
 %else
59
-    repository_url="https://mirror.apheleia-it.ch/repos/Kolab:/16$reposuffix/CentOS_%{dist_version}$plesk_suffix"
60
+    %if 0%{?fedora} > 0
61
+        repository_url="https://mirror.apheleia-it.ch/repos/Kolab:/16$reposuffix/Fedora_%{dist_version}$plesk_suffix"
62
+    %else
63
+        repository_url="https://mirror.apheleia-it.ch/repos/Kolab:/16$reposuffix/CentOS_%{dist_version}$plesk_suffix"
64
+    %endif
65
 %endif
66
     repository_url_src="$repository_url/src"
67
 
68
+
69
     cat %{SOURCE0} | \
70
         sed \
71
-                -e 's/@@desc@@/%{desc}/g' \
72
+                -e "s/@@desc@@/$description/g" \
73
                 -e "s/@@enabled@@/$enabled/g" \
74
                 -e "s|@@repository_url@@|$repository_url|g" \
75
                 -e "s|@@repository_url_src@@|$repository_url_src|g" \
76
Refresh
Refresh
Request History
mollekopf's avatar

mollekopf created request almost 2 years ago

New release


mollekopf's avatar

mollekopf accepted request almost 2 years ago