This request supersedes:
request 3138
(Show diff)
Overview
Request 3142 (accepted)
New release
- Created by mollekopf almost 2 years ago
- In state accepted
- Supersedes 3138
-
Open review for
Admin
-
Open review for
vanmeeuwen
-
Open review for
mollekopf
-
Open review for
kolab-developers
kolab-release.spec
Changed
x
1
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
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
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
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
Login required, please
login
in order to comment
Request History
mollekopf created request almost 2 years ago
New release
mollekopf accepted request almost 2 years ago