Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jiri Vanek
e61555f617 Adjsuted for rhel 2024-10-21 14:12:29 +02:00
3 changed files with 1 additions and 11 deletions

View file

@ -1,3 +0,0 @@
[adoptium-temurin-java-repository]
type=dnf

View file

@ -1,6 +1,6 @@
[adoptium-temurin-java-repository]
name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/fedora/$releasever/$basearch
baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/$releasever/$basearch
enabled=0
gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public

View file

@ -1,6 +1,5 @@
%global reponame %{name}.repo
%global repodir %{_sysconfdir}/yum.repos.d
%global thirdparty %{_prefix}/lib/fedora-third-party/conf.d
# 0/1 may vary in time, and is always enabled to 1 per FESCO exception
%global enabled_by_default 0
@ -12,14 +11,10 @@ Summary: Fedora package repository files for yum and dnf along with gpg publi
License: EPL-2.0
URL: https://adoptium.net/installation/linux/#_centosrhelfedora_instructions
Source0: LICENSE
Source1: %{name}.conf
Source2: %{reponame}
Source3: README.md
BuildArch: noarch
# fedora-third-party contains tools to work with 3rd party repos and owns fedora-third-party/conf.d/ directory
Requires: fedora-third-party
%description
This package adds configuration to add a remote repository
@ -35,13 +30,11 @@ cat %{SOURCE2} | sed "s/^enabled=0/enabled=%{enabled_by_default}/" > %{reponame
%install
install -D -m0644 %{SOURCE0} %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
install -D -m0644 %{SOURCE1} -t %{buildroot}%{thirdparty}/
install -D -m0644 %{reponame} -t %{buildroot}%{repodir}/
install -D -m0644 %{SOURCE3} -t %{buildroot}%{_docdir}/%{name}/
%files
%license LICENSE
%{thirdparty}/*
%config %{repodir}/%{reponame}
%doc README.md