Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 60a5884

Browse files
committed
Clean up repo rpm making it noarch and making the repo entry dynamic
1 parent e40c74a commit 60a5884

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

packaging/rpm/repo-el/SPECS/cloudberry-dev-repo.spec

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Summary: Cloudberry Database Repository Configuration
55
License: Apache-2.0
66
Group: Development/Tools
77
URL: https://github.com/cloudberrydb/cloudberrydb
8+
BuildArch: noarch
89

910
%description
1011
This package configures the Cloudberry Database repository on your
@@ -16,31 +17,18 @@ up-to-date with the latest developments.
1617

1718
%install
1819
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d/
19-
%if 0%{?rhel} == 8
2020
cat > %{buildroot}%{_sysconfdir}/yum.repos.d/cloudberry-dev.repo <<EOF
2121
[cloudberry-dev]
2222
name=Cloudberry Database Repository
23-
baseurl=https://cloudberry-rpm-dev-bucket.s3.amazonaws.com/repo/el8/x86_64/
23+
baseurl=https://cloudberry-rpm-dev-bucket.s3.amazonaws.com/repo/el%{rhel}/x86_64/
2424
enabled=1
2525
gpgcheck=1
26-
gpgkey=https://cloudberry-rpm-dev-bucket.s3.amazonaws.com/repo/el8/x86_64/RPM-GPG-KEY-cloudberry
26+
gpgkey=https://cloudberry-rpm-dev-bucket.s3.amazonaws.com/repo/el%{rhel}/x86_64/RPM-GPG-KEY-cloudberry
2727
EOF
28-
%endif
29-
30-
%if 0%{?rhel} == 9
31-
cat > %{buildroot}%{_sysconfdir}/yum.repos.d/cloudberry-dev.repo <<EOF
32-
[cloudberry-dev]
33-
name=Cloudberry Database Repository
34-
baseurl=https://cloudberry-rpm-dev-bucket.s3.amazonaws.com/repo/el9/x86_64/
35-
enabled=1
36-
gpgcheck=1
37-
gpgkey=https://cloudberry-rpm-dev-bucket.s3.amazonaws.com/repo/el9/x86_64/RPM-GPG-KEY-cloudberry
38-
EOF
39-
%endif
4028

4129
%files
4230
%{_sysconfdir}/yum.repos.d/cloudberry-dev.repo
4331

4432
%changelog
45-
* Thu Aug 20 2024 Ed Espino [email protected] - 1.6.0-15.4-1
46-
- Initial package with binary files under Apache 2.0 License
33+
* Thu Aug 21 2024 Ed Espino [email protected] - 1.0-1
34+
- Initial package with repository configuration

0 commit comments

Comments
 (0)